* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Authentication Page CSS */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 20px;
}

.auth-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 24px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.auth-tabs button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.auth-tabs button.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    margin-bottom: -2px;
}

/* Base Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #fff;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.sidebar {
    width: 280px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 22px;
    color: #3b82f6;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 700;
}

.user-info {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 35px;
    background: #1e293b;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: #2563eb;
    color: #ffffff;
}

.main-content {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}

.header {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 35px;
    border-top: 5px solid #2563eb;
}

.header h1 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 8px;
}

.header p {
    color: #64748b;
    font-size: 15px;
}

.sectioncard {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
}

.sectioncard h2 {
    margin-bottom: 25px;
    font-size: 20px;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

/* Components Style */
.btn {
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover { background-color: #1d4ed8; }
.btn-block { width: 100%; display: block; }
.btn-success { background-color: #10b981; }
.btn-success:hover { background-color: #059669; }
.btn-warning { background-color: #ea580c; }
.btn-warning:hover { background-color: #c2410c; }

.btn-delete {
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.btn-delete:hover { text-decoration: underline; }

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
}

.data-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alerts and Badges */
.alert {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fca5a5;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.badge-deadline {
    background-color: #fef2f2;
    color: #991b1b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid #fee2e2;
}

/* Responsive Grid Breakpoint */
@media (max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; padding: 20px; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .user-info { margin-bottom: 15px; }
}