/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --black-deep: #000000;
    --black-light: #1a1a1a;
    --black-card: #141414;
    --blue: #1e90ff;
    --blue-dark: #0a6edf;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #b8960c;
    --white: #ffffff;
    --gray-dark: #2a2a2a;
    --gradient-gold: linear-gradient(135deg, #d4af37, #f0d060, #b8960c);
    --gradient-blue: linear-gradient(135deg, #1e90ff, #4da6ff, #0a6edf);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.15);
    --shadow-blue: 0 10px 40px rgba(30, 144, 255, 0.15);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.sidebar-header h2 {
    font-size: 1.4rem;
    margin: 0;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--white);
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    width: 20px;
    text-align: center;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-item.logout {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: auto;
    color: #e84393 !important;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #0a0a0a;
    min-height: 100vh;
    transition: margin 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.admin-header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--white);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gold);
    display: none;
}

.user-info span {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-content {
    padding: 30px;
}

.section-hidden {
    display: none !important;
}

/* ===== LOGIN ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(2%, -2%) rotate(1deg);
    }
}

.login-box {
    background: rgba(20, 20, 20, 0.95);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    width: 420px;
    max-width: 90%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #f0d060, #d4af37, transparent);
}

.login-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.8rem;
}

.login-box p {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 35px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-stat {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(26, 26, 26, 0.9));
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.admin-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-icon.gradient-1 {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.stat-icon.gradient-2 {
    background: linear-gradient(135deg, #1e90ff, #4da6ff);
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.3);
}

.stat-icon.gradient-3 {
    background: linear-gradient(135deg, #d4af37, #1e90ff);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.stat-icon.gradient-4 {
    background: linear-gradient(135deg, #00cec9, #55efc4);
    box-shadow: 0 5px 20px rgba(0, 206, 201, 0.3);
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(26, 26, 26, 0.9));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: var(--gold-light);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.06);
}

.action-btn i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-btn span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-item {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(26, 26, 26, 0.9));
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(30, 144, 255, 0.1);
    color: #4da6ff;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #1e90ff, #4da6ff);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.btn-delete {
    background: rgba(232, 67, 147, 0.1);
    color: #e84393;
    border: 1px solid rgba(232, 67, 147, 0.2);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #e84393, #fd79a8);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.3);
}

.card-item p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-gradient-1 {
    background: rgba(212, 175, 55, 0.1);
    color: #f0d060;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge-gradient-2 {
    background: rgba(30, 144, 255, 0.1);
    color: #4da6ff;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.badge-gradient-3 {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge-light {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dark {
    background: rgba(212, 175, 55, 0.15);
    color: #f0d060;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge-gradient-4 {
    background: rgba(0, 206, 201, 0.1);
    color: #55efc4;
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.badge-inactive {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== ALERT ===== */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
}

.alert-info {
    background: rgba(30, 144, 255, 0.08);
    color: #4da6ff;
    border: 1px solid rgba(30, 144, 255, 0.15);
}

/* ===== CONFIG ===== */
.config-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(26, 26, 26, 0.9));
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    max-width: 600px;
}

.config-card h3 {
    margin-bottom: 25px;
    color: var(--gold-light);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #141414, #1a1a1a);
    padding: 35px;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #f0d060, #d4af37, transparent);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-content h3 {
    margin-bottom: 25px;
    padding-right: 30px;
    color: var(--gold-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-save {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000000;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000000;
}

.btn-primary:hover {
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-outline:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

.btn-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ===== COLUMNS FORM ===== */
.cols-form {
    background: rgba(212, 175, 55, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.08);
}

.col-input-group {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.06);
}

.col-input-group h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-header {
        padding: 15px 20px;
    }

    .admin-content {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 35px 25px;
    }
}