:root {
    /* Linear.app Color Palette */
    --bg-background: #18181B;
    /* Zinc-900 */
    --bg-surface: #27272A;
    /* Zinc-800 */
    --bg-surface-hover: #3F3F46;
    /* Zinc-700 */

    --text-primary: #E4E4E7;
    /* Zinc-200 */
    --text-secondary: #A1A1AA;
    /* Zinc-400 */
    --text-muted: #71717A;
    /* Zinc-500 */

    --accent-color: #5E6AD2;
    /* Indigo/Blurple */
    --accent-hover: #4F5EBE;

    --border-color: #3F3F46;
    /* Zinc-700 */
    --border-focus: #5E6AD2;

    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-background);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: var(--bg-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.925rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF !important;
}

.btn-secondary {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-surface);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Sidebar / Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 50;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    gap: 0.75rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        /* transform: translateX(-100%); Removed to make it visible by default */
        width: 100% !important;
        height: auto !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        border-right: none !important;
        border-top: 1px solid var(--border-color);
        padding: 0.5rem;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 9999 !important;
        margin: 0 !important;
        position: fixed !important;
    }

    /* Hide logo/title in mobile bottom bar */
    .sidebar .mb-4 {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px !important;
        /* Space for bottom nav */
    }

    /* Bottom Sheet Style Menu for Mobile */
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .nav-link {
        flex-direction: column;
        font-size: 0.75rem;
        padding: 0.5rem;
        gap: 0.25rem;
        margin-bottom: 0;
    }
}

/* Photo Container */
.photo-container {
    width: 151px;
    /* Approx 4cm */
    height: 227px;
    /* Approx 6cm */
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin: 0 auto 2rem auto;
    /* Center horizontally and add bottom margin */
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.photo-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}