/* Shared global styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #eee;
}
a { color: #16c79a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Page themes */
body.admin-page, body.dashboard-page { background: #1a1a2e; padding: 20px; }
body.login-page { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; height: 100vh; padding: 20px; }
body.test-page { background: #1a1a2e; padding: 40px; }

/* Common layout */
.container { max-width: 1000px; margin: 0 auto; background: #16213e; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #16213e; }
header.dashboard-page { border-bottom-color: #0f3460; }

h1 { color: #16c79a; }

/* Buttons */
.btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.btn-danger { background: #e94560; color: white; }
.btn-primary { background: #0f3460; color: white; }
.btn-success { background: #16c79a; color: white; }
.btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* Admin panel specific */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #16213e; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.card h2 { color: #e94560; margin-bottom: 20px; font-size: 1.2em; }
.password-list { list-style: none; max-height: 300px; overflow-y: auto; }
.password-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #0f3460; margin-bottom: 10px; border-radius: 5px; }
.password-preview { font-family: monospace; color: #16c79a; }
.session-list { font-size: 0.9em; }
.session-item { padding: 10px; background: #0f3460; margin-bottom: 10px; border-radius: 5px; border-left: 3px solid #16c79a; }
.session-item.admin { border-left-color: #e94560; }

/* Forms */
input {
    width: 100%; padding: 12px; margin-bottom: 10px;
    border: 2px solid #0f3460; border-radius: 5px;
    background: #1a1a2e; color: white;
}
input:focus { outline: none; border-color: #e94560; }

/* Alerts */
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; display: none; }
.alert.show { display: block; }
.alert-success { background: #16c79a; color: white; }
.alert-error { background: #e94560; color: white; }

/* Login panel */
.login-box { background: #16213e; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); width: 100%; max-width: 400px; text-align: center; }
.logo { font-size: 60px; margin-bottom: 20px; }
.login-box h2 { color: #e94560; margin-bottom: 10px; }
.login-box .subtitle { color: #888; margin-bottom: 30px; }
.login-box button { width: 100%; padding: 15px; background: #e94560; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.login-box button:hover { background: #ff6b6b; transform: translateY(-2px); }
.error { color: #e94560; margin-top: 15px; padding: 10px; background: rgba(233, 69, 96, 0.1); border-radius: 5px; display: none; }
.error.show { display: block; }
.reason { background: #0f3460; color: #16c79a; padding: 15px; border-radius: 8px; margin-bottom: 20px; display: none; }
.reason.show { display: block; }
.hint { margin-top: 20px; color: #666; font-size: 0.9em; }

/* Dashboard specific */
.status { display: inline-block; width: 10px; height: 10px; background: #16c79a; border-radius: 50%; margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.info-box { background: #0f3460; padding: 20px; border-radius: 10px; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
}
