:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
}

input,
select,
button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

button {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.alert-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-item button {
    width: auto;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0;
    background: #ef4444;
    font-size: 0.875rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-header h1 {
    margin-bottom: 0;
}

.dashboard-header nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dashboard-header nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.dashboard-header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: auto !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 0 !important;
    background: #ef4444 !important;
}

.logout-btn:hover {
    background: #dc2626 !important;
}

.glass-card {
    margin-bottom: 2rem;
}

.glass-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.forgot-password-link {
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

/* Multi-select styling */
select[multiple] {
    height: auto;
    padding: 0.5rem;
}

select[multiple] option {
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

select[multiple] option:checked {
    background: var(--primary-color);
    color: white;
}

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label span {
    font-size: 0.95rem;
}

/* Improved alert items */
.alert-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.alert-info {
    flex: 1;
}

.alert-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.alert-detail-item {
    display: block;
}

.alert-detail-label {
    font-weight: 600;
    color: #cbd5e1;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
}

.alert-actions button {
    width: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.btn-edit {
    background: var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-hover);
}

.btn-delete {
    background: #ef4444;
}

.btn-delete:hover {
    background: #dc2626;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    flex: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .alert-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-actions {
        width: 100%;
    }

    .alert-actions button {
        flex: 1;
    }
}

.hidden {
    display: none;
}