@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
    --admin-ink: #0f172a;
    --admin-navy: #1e293b;
    --admin-blue: #2563eb;
    --admin-cyan: #38bdf8;
    --admin-amber: #f59e0b;
    --admin-cream: #fff8f0;
    --admin-paper: rgba(255, 255, 255, 0.95);
    --admin-white: #ffffff;
    --admin-border: rgba(19, 34, 56, 0.1);
    --admin-muted: #64748b;
    --admin-success-bg: #e7f8ee;
    --admin-success-text: #126a3a;
    --admin-error-bg: #fdeceb;
    --admin-error-text: #a33a31;
    --admin-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--admin-ink);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 35%),
        #f8fafc;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* AUTH LOGIN */
.admin-auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.admin-auth-card {
    background: var(--admin-paper);
    backdrop-filter: blur(16px);
    border: 1px solid var(--admin-border);
    border-radius: 24px;
    padding: 2.75rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--admin-shadow);
}

.admin-auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-auth-brand img {
    height: 64px;
    width: auto;
    background: #011238;
    padding: 6px 14px;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(1, 18, 56, 0.2);
    display: inline-block;
}

.admin-auth-brand h2 {
    font-size: 1.5rem;
    color: var(--admin-ink);
}

.admin-auth-brand p {
    font-size: 0.9rem;
    color: var(--admin-muted);
}

.admin-form label {
    display: block;
    margin-bottom: 1.25rem;
}

.admin-form label span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--admin-navy);
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.2s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--admin-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--admin-blue);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.admin-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.admin-button-danger {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.admin-button-danger:hover {
    background: #dc2626;
}

.admin-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-alert-error {
    background: var(--admin-error-bg);
    color: var(--admin-error-text);
}
.admin-alert-success {
    background: var(--admin-success-bg);
    color: var(--admin-success-text);
}

/* DASHBOARD LAYOUT */
.dashboard-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--admin-navy);
}

.dashboard-brand img {
    height: 42px;
    width: auto;
    background: #011238;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* STATS ROW */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--admin-ink);
}

.stat-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* TABS */
.dashboard-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 0.75rem;
    overflow-x: auto;
}

.dashboard-tab-link {
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--admin-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dashboard-tab-link:hover, .dashboard-tab-link.active {
    color: var(--admin-blue);
    background: rgba(37, 99, 235, 0.08);
}

/* CONTENT PANELS */
.admin-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--admin-border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* GALLERY CMS GRID */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.admin-gallery-item {
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--admin-border);
    position: relative;
}

.admin-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.admin-gallery-info {
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.admin-gallery-info span {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* INQUIRIES LIST */
.inquiry-item {
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.inquiry-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.inquiry-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--admin-navy);
}

.inquiry-meta {
    font-size: 0.85rem;
    color: var(--admin-muted);
}

/* ADMIN MOBILE RESPONSIVE RULES */
@media (max-width: 768px) {
    .dashboard-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .dashboard-actions {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .dashboard-container {
        padding: 1rem 0.75rem 3rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-card-val {
        font-size: 1.4rem;
    }
    .dashboard-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .dashboard-tab-link {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    .admin-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
    .admin-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .inquiry-header {
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-auth-card {
        padding: 1.75rem 1.25rem;
    }
}
