* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.navbar { background: #2c3e50; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.25rem; font-weight: bold; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; margin-left: 1.5rem; padding: 0.5rem 0; }
.nav-links a:hover, .nav-links a.active { color: white; border-bottom: 2px solid #3498db; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
h1 { margin-bottom: 1.5rem; color: #2c3e50; }
h2 { margin-bottom: 1rem; color: #34495e; font-size: 1.25rem; }
.card { background: white; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stats-grid.small { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stat-card { background: white; border-radius: 8px; padding: 1.5rem; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border-left: 4px solid #3498db; }
.stat-card.online { border-left-color: #27ae60; }
.stat-card.success { border-left-color: #27ae60; }
.stat-card.danger { border-left-color: #e74c3c; }
.stat-value { font-size: 2rem; font-weight: bold; color: #2c3e50; }
.stat-label { color: #7f8c8d; font-size: 0.875rem; margin-top: 0.25rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #ecf0f1; }
.table th { background: #f8f9fa; font-weight: 600; color: #2c3e50; }
.table tr:hover { background: #f8f9fa; }
.table a { color: #3498db; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; }
.status-online, .status-Success { background: #d4edda; color: #155724; }
.status-offline, .status-Failed { background: #f8d7da; color: #721c24; }
.status-unknown, .status-Warning { background: #fff3cd; color: #856404; }
.status-error { background: #f8d7da; color: #721c24; }
.btn { display: inline-block; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.875rem; text-decoration: none; transition: background 0.2s; }
.btn-primary { background: #3498db; color: white; }
.btn-primary:hover { background: #2980b9; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { font-weight: 500; color: #2c3e50; font-size: 0.875rem; }
.form-group input { padding: 0.5rem; border: 1px solid #dce4ec; border-radius: 4px; font-size: 1rem; }
.form-group input:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 2px rgba(52,152,219,0.2); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding-top: 1.5rem; }
.checkbox-label input { width: auto; }
.empty-message { color: #7f8c8d; padding: 2rem; text-align: center; }
.empty-message a { color: #3498db; }
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.info-item { display: flex; flex-direction: column; }
.info-label { font-size: 0.75rem; color: #7f8c8d; text-transform: uppercase; }
.info-value { font-size: 1rem; color: #2c3e50; }
.actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #ecf0f1; }
.code-block { background: #f4f4f4; padding: 1rem; border-radius: 4px; margin: 0.5rem 0; }
.code-block p { margin-bottom: 0.5rem; }
.code-block code { display: block; background: #2c3e50; color: #ecf0f1; padding: 0.75rem; border-radius: 4px; font-family: monospace; overflow-x: auto; }
.info-note { color: #7f8c8d; font-size: 0.875rem; font-style: italic; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }
.login-container { width: 100%; max-width: 400px; padding: 1rem; }
.login-card { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.login-card h1 { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; }
.login-card h2 { text-align: center; margin-bottom: 1.5rem; color: #7f8c8d; font-size: 1rem; font-weight: normal; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.btn-block { width: 100%; padding: 0.75rem; font-size: 1rem; }
.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.setup-info { text-align: center; color: #7f8c8d; margin-bottom: 1rem; font-size: 0.875rem; }
.user-menu { display: flex; align-items: center; gap: 1rem; }
.user-menu span { color: rgba(255,255,255,0.8); }
.user-menu a { color: rgba(255,255,255,0.8); text-decoration: none; }
.user-menu a:hover { color: white; }
