/* Datalib - Style minimal backend */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    color: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 50px;
}
.navbar-brand { font-weight: bold; font-size: 18px; margin-right: 30px; }
.navbar-menu { list-style: none; display: flex; gap: 20px; flex: 1; }
.navbar-menu a { color: #ecf0f1; text-decoration: none; }
.navbar-menu a:hover { color: #fff; text-decoration: underline; }
.navbar-user { color: #bdc3c7; font-size: 13px; }
.navbar-user a { color: #e74c3c; }

/* Container */
.container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
.stat-card { background: #fff; border-radius: 6px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-value { font-size: 28px; font-weight: bold; color: #2c3e50; }
.stat-label { color: #7f8c8d; margin-top: 5px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 6px; overflow: hidden; margin: 15px 0; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; }
.table tr:hover { background: #f8f9fa; }

/* Badges */
.badge { padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.badge-green { background: #d4edda; color: #155724; }
.badge-blue { background: #cce5ff; color: #004085; }
.badge-red { background: #f8d7da; color: #721c24; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-gray { background: #e2e3e5; color: #383d41; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #2c3e50; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; width: 350px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.login-box h1 { text-align: center; color: #2c3e50; margin-bottom: 5px; }
.login-subtitle { text-align: center; color: #7f8c8d; margin-bottom: 25px; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-primary { background: #3498db; color: #fff; width: 100%; }
.btn-primary:hover { background: #2980b9; }

/* Alerts */
.alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 15px; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Logs */
.logs-layout { display: flex; gap: 20px; }
.logs-sidebar { width: 250px; flex-shrink: 0; }
.logs-sidebar h3 { margin-bottom: 10px; }
.log-list { list-style: none; }
.log-list a { display: block; padding: 6px 10px; text-decoration: none; color: #333; border-radius: 3px; }
.log-list a:hover, .log-list a.active { background: #3498db; color: #fff; }
.logs-content { flex: 1; min-width: 0; }
.log-viewer { background: #1e1e1e; color: #d4d4d4; padding: 15px; border-radius: 6px; overflow-x: auto; font-size: 12px; line-height: 1.5; max-height: 600px; overflow-y: auto; white-space: pre; }

/* Footer */
.footer { text-align: center; padding: 20px; color: #aaa; margin-top: 40px; }

h1 { margin-bottom: 15px; color: #2c3e50; }
h2 { margin: 20px 0 10px; color: #34495e; font-size: 18px; }
