/* Global Reset & Base Styles */
body { font-family: sans-serif; margin: 0; background: #f8f9fa; color: #333; }
a { color: #1a73e8; text-decoration: none; }

/* Navigation */
nav { background: #343a40; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
nav a { color: white; text-decoration: none; }
nav strong { font-size: 1.1rem; }

/* Layout Containers */
.container { padding: 2rem; }
.container-narrow { max-width: 600px; margin: 0 auto; }

/* Cards */
.card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card h2, .card h3 { margin-top: 0; color: #333; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #dee2e6; }
th { background: #f1f3f5; font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; display: block; }

/* Components */
.btn { background: #1a73e8; color: white; padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; font-size: 0.9rem; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn:hover { background: #1557b0; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; background: #e9ecef; color: #495057; font-family: monospace; }
.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-active { background-color: #28a745; box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
.dot-inactive { background-color: #dc3545; box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }

/* Alerts & Feedback */
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; }
.alert-success, .success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.error { padding: 10px; border-radius: 4px; }

/* Misc */
.back-link { display: inline-block; margin-top: 1rem; color: #1a73e8; text-decoration: none; }

/* Login Layout */
.centered-flex { display: flex; align-items: center; justify-content: center; height: 100vh; background: #f0f2f5; }
.login-card { width: 300px; padding: 2rem; background: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }