:root {
    --primary: #1a1a1a;
    /* Sophisticated Black */
    --primary-hover: #333333;
    --accent: #c9a227;
    /* Gold/Bronze accent for that 'premium' feel */
    --bg-body: #f8f9fa;
    /* Very light gray */
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #888888;
    --border: #eaeaea;
    --danger: #d32f2f;
    --success: #388e3c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    height: 100vh;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: white;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Utils */
.hidden {
    display: none !important;
}

.btn {
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-danger {
    background: white;
    border: 1px solid var(--danger);
    color: var(--danger);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}


/* Layout */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.nav-item {
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

.nav-item:hover {
    color: var(--primary);
    background: #fcfcfc;
}

.nav-item.active {
    background: var(--bg-body);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
}

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

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.translation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.textarea-lg {
    min-height: 120px;
    line-height: 1.6;
}


/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.gallery-info {
    padding: 1.25rem;
}

.gallery-info h4 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
}

.gallery-info small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-actions {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
}


/* Login specific updates */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
}

.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

/* Responsive Layout (Mobile Slide-Out) */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: row;
    }

    /* Sidebar Hidden by Default */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
        border-right: none;
    }

    .sidebar.open {
        left: 0;
    }

    /* Main Content Full Width */
    .main-content {
        width: 100%;
        padding: 1.5rem;
        padding-top: 5rem;
        /* Space for toggle button */
    }

    /* Toggle Button */
    .mobile-toggle-btn {
        display: flex !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 900;
        width: 44px;
        height: 44px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 8px;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        color: var(--primary);
        font-size: 1.2rem;
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 950;
        backdrop-filter: blur(2px);
    }

    .mobile-overlay.hidden {
        display: none;
    }

    /* Adjust Inner Content */
    .translation-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}