/* ===== ADMIN THEME : PREMIUM DARK ===== */

:root {
    /* Background Colors */
    --bg-primary: #050505;
    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-glass-light: rgba(255, 255, 255, 0.06);
    --border-soft: rgba(255, 255, 255, 0.12);
    --border-lighter: rgba(255, 255, 255, 0.08);

    /* Accent Colors */
    --accent-gold: #ffcc33;
    --accent-pink: #dd2476;
    --accent-gradient: linear-gradient(135deg, #ff512f, #dd2476);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dimmed: rgba(255, 255, 255, 0.45);

    /* Shadows */
    --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.45);
    --shadow-button: 0 15px 40px rgba(221, 36, 118, 0.4);
    --shadow-button-hover: 0 20px 50px rgba(221, 36, 118, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: var(--surface-glass-light);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--border-lighter);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.sidebar a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-lighter);
}

.admin-header h1 {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== CARDS ===== */
.card {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-pink);
    box-shadow: var(--shadow-card);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== TABLES ===== */
.table-container {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    border: 1px solid var(--border-soft);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
}

table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-soft);
}

table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-lighter);
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-secondary {
    background: var(--surface-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-pink);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: var(--text-primary);
    box-shadow: 0 15px 40px rgba(255, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(255, 68, 68, 0.5);
}

.btn-icon {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== INPUTS ===== */
input,
select,
textarea {
    width: 100%;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text-primary);
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(221, 36, 118, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dimmed);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 450px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.modal-actions {
    padding: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
}

.login-container {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.login-hint {
    text-align: center;
    padding: 16px;
    background: rgba(255, 204, 51, 0.1);
    border: 1px solid rgba(255, 204, 51, 0.2);
    border-radius: 12px;
    margin-top: 20px;
}

.login-hint p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

.login-hint strong {
    color: var(--accent-gold);
}

.back-link {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 20px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-pink);
}

/* ===== BADGES ===== */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 204, 51, 0.15);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== UTILITIES ===== */
.text-muted {
    color: var(--text-muted);
}

.text-dimmed {
    color: var(--text-dimmed);
}

.location-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== ACTION BAR ===== */
.action-bar {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-input {
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(221, 36, 118, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-lighter);
    }

    .admin-main {
        margin-left: 0;
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: 100%;
    }

    .modal-content {
        margin: 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 16px;
    }

    .card {
        padding: 20px;
    }

    .table-container {
        padding: 16px;
    }

    table th,
    table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}