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

.login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 10px;
    color: #333;
}

.login-box .subtitle {
    color: #666;
    margin-bottom: 30px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    display: block;
}

.login-box input[type="text"] {
    margin-bottom: 10px;
}

.login-box input[type="password"] {
    margin-bottom: 20px;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.login-box button:hover {
    background: #5568d3;
}

.login-box .error {
    color: #e74c3c;
    margin-top: 10px;
}

.events-list::-webkit-scrollbar {
    width: 8px;
}

.events-list::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.events-list::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

[data-theme="dark"] .events-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme="dark"] .events-list::-webkit-scrollbar-thumb {
    background: #505050;
}

[data-theme="dark"] .events-list::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.events-list {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #e5e7eb;
}

[data-theme="dark"] .events-list {
    scrollbar-color: #505050 #2d2d2d;
}

.submissions-list::-webkit-scrollbar {
    width: 8px;
}

.submissions-list::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.submissions-list::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.submissions-list::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

[data-theme="dark"] .submissions-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme="dark"] .submissions-list::-webkit-scrollbar-thumb {
    background: #505050;
}

[data-theme="dark"] .submissions-list::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.submissions-list {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #e5e7eb;
}

[data-theme="dark"] .submissions-list {
    scrollbar-color: #505050 #2d2d2d;
}

#submission-modal-scrollable::-webkit-scrollbar {
    width: 8px;
}

#submission-modal-scrollable::-webkit-scrollbar-track {
    background: #e5e7eb;
}

#submission-modal-scrollable::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

#submission-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

[data-theme="dark"] #submission-modal-scrollable::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme="dark"] #submission-modal-scrollable::-webkit-scrollbar-thumb {
    background: #505050;
}

[data-theme="dark"] #submission-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

#submission-modal-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #e5e7eb;
}

[data-theme="dark"] #submission-modal-scrollable {
    scrollbar-color: #505050 #2d2d2d;
}

/* IP Whitelist scrollbars – light by default, dark when [data-theme="dark"] */
.whitelist-ip-list::-webkit-scrollbar,
#whitelist-main-content::-webkit-scrollbar,
#whitelist-host-list::-webkit-scrollbar {
    width: 8px;
}

.whitelist-ip-list::-webkit-scrollbar-track,
#whitelist-main-content::-webkit-scrollbar-track,
#whitelist-host-list::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.whitelist-ip-list::-webkit-scrollbar-thumb,
#whitelist-main-content::-webkit-scrollbar-thumb,
#whitelist-host-list::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.whitelist-ip-list::-webkit-scrollbar-thumb:hover,
#whitelist-main-content::-webkit-scrollbar-thumb:hover,
#whitelist-host-list::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

[data-theme="dark"] .whitelist-ip-list::-webkit-scrollbar-track,
[data-theme="dark"] #whitelist-main-content::-webkit-scrollbar-track,
[data-theme="dark"] #whitelist-host-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme="dark"] .whitelist-ip-list::-webkit-scrollbar-thumb,
[data-theme="dark"] #whitelist-main-content::-webkit-scrollbar-thumb,
[data-theme="dark"] #whitelist-host-list::-webkit-scrollbar-thumb {
    background: #505050;
}

[data-theme="dark"] .whitelist-ip-list::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] #whitelist-main-content::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] #whitelist-host-list::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.whitelist-ip-list,
#whitelist-main-content,
#whitelist-host-list {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #e5e7eb;
}

[data-theme="dark"] .whitelist-ip-list,
[data-theme="dark"] #whitelist-main-content,
[data-theme="dark"] #whitelist-host-list {
    scrollbar-color: #505050 #2d2d2d;
}

@keyframes highlight {
    from { background-color: #dcfce7; }
    to { background-color: #f0fdf4; }
}

@keyframes highlightDark {
    from { background-color: #2a4a2a; }
    to { background-color: #1a3a1a; }
}

