:root {
    --primary: #032a56;
    --primary-light: #0a468d;
    --accent: #00d2ff;
    --bg: #f4f7fa;
    --card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --danger: #ff7675;
    --success: #55efc4;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Auth Pages */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #001a33 100%);
}

.auth-card {
    background: var(--card);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(3, 42, 86, 0.1);
}

.btn {
    cursor: pointer;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 42, 86, 0.2);
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--primary);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar .logo span {
    color: var(--accent);
}

.nav-item {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent);
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Cards & Sections */
.card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Tables */
.data-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem;
    border-bottom: 2px solid var(--bg);
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg);
}

tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success { background: #e6fffa; color: #38b2ac; }
.badge-danger { background: #fff5f5; color: #f56565; }
.badge-warning { background: #fefcbf; color: #b7791f; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar .logo {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .nav-container {
        display: flex;
        gap: 0.5rem;
    }
    .nav-item {
        margin-bottom: 0;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--primary);
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}
  
/* Responsive / Mobile Adjustments */  
@media (max-width: 768px) {  
    .dashboard { flex-direction: column; }  
    .sidebar { width: 100%; height: auto; flex-direction: row; padding: 1rem; align-items: center; overflow-x: auto; flex-shrink: 0; }  
    .sidebar .logo { margin-bottom: 0 !important; margin-right: 1rem; width: 120px; }  
    .nav-container { display: flex; flex-direction: row; gap: 0.5rem; width: max-content; }  
    .nav-item { margin-bottom: 0; padding: 0.5rem 1rem; font-size: 0.9rem; white-space: nowrap; }  
    .nav-item:last-child { margin-top: 0 !important; margin-left: auto; }  
    .main-content { padding: 1rem; }  
    h2 { font-size: 1.5rem; }  
    .card { padding: 1.5rem; }  
    table td, table th { white-space: nowrap; padding: 0.75rem; }  
} 
