:root {
    --primary-color: #4f46e5;
    --secondary-color: #475569;
    --accent-color: #6366f1;
    --bg-color: #f1f5f9;
    --sidebar-bg: #0f172a;
    --sidebar-text: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --header-height: 72px;
    --sidebar-width: 260px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 0 1.5rem 2.5rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 2px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0.825rem 1.75rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.65;
}

.nav-links li a:hover, .nav-links li.active a {
    background: rgba(99, 102, 241, 0.15); /* Indigo tint hover */
    opacity: 1;
    color: #fff;
    border-left: 4px solid var(--accent-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem;
}

.top-header {
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    margin: -2.5rem -2.5rem 2.5rem -2.5rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Cards & Components */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 2.5rem;
    border: 1px solid #f1f5f9;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary-color);
    border-radius: 4px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #94a3b8; /* Darker Slate-400 for better visibility */
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-size: 1rem;
    color: #1e293b;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn, label.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff !important; /* Force white text on buttons and label-buttons */
}

.btn-upload {
    background-color: #1e293b !important;
    color: white !important;
    border: 1px solid #0f172a !important;
}

.btn-upload:hover {
    background-color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.btn-camera {
    background-color: #064e3b !important;
    color: white !important;
    border: 1px solid #064e3b !important;
}

.btn-camera:hover {
    background-color: #022c22 !important;
    box-shadow: 0 4px 12px rgba(2, 44, 34, 0.4);
}

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

.btn-primary:hover {
    background: #4338ca; /* Darker Indigo */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: middle;
}

.table tr:hover td {
    background: #f8fafc;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Tabs Interface */
.tabs-container {
    margin-top: 1rem;
}

.tabs-header {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2.5px;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

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

.profile-photo-preview {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.photo-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border: 2px dashed #cbd5e1;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
}

.photo-input-container:hover {
    border-color: var(--primary-color);
    background: #f5f3ff;
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-info { background: #e0e7ff; color: #3730a3; }

