/* ═══════════════════════════════════════════
   ADMIN DASHBOARD SYSTEM
   ═══════════════════════════════════════════ */

:root {
    --admin-bg: #f8f5f0;
    --admin-card: #ffffff;
    --admin-accent: #4a5d4e;
    --admin-text: #333333;
    --admin-muted: #888888;
}

body.admin-body {
    background-color: var(--admin-bg);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--admin-text);
    margin: 0;
}

.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* Auth Gate */
.login-gate {
    position: fixed;
    inset: 0;
    background: var(--admin-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: var(--admin-card);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 440px;
}

/* Dashboard Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dash-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--admin-accent);
}

/* Tabs */
.tabs-control {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    color: var(--admin-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--admin-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Forms */
.panel-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.admin-form {
    display: grid;
    gap: 20px;
}

.admin-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--admin-muted);
}

.admin-form__input {
    width: 100%;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s;
}

.admin-form__input:focus {
    border-color: var(--admin-accent);
    outline: none;
    background: white;
}

.admin-form__btn {
    background: var(--admin-accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.admin-form__btn:hover {
    transform: translateY(-2px);
}

.admin-form__btn:active {
    transform: translateY(0);
}

/* Gallery Upload Zone */
.upload-dropzone {
    border: 2px dashed #dddddd;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: var(--admin-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover {
    border-color: var(--admin-accent);
    background: rgba(74, 93, 78, 0.02);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--admin-accent);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}