* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family: Poppins, "Segoe UI", sans-serif;

    background: #f6f1ff;

    color: #1e1233;

}


/* =================================
   SIDEBAR
================================= */

.admin-sidebar {

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: 250px;

    background: linear-gradient(180deg, #4c1d95, #6d28d9);

    color: white;

    padding: 25px 15px;

    display: flex;

    flex-direction: column;

}


.admin-logo {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 10px 30px;

    font-weight: 800;

}


.admin-logo img {

    width: 42px;

    height: 42px;

    object-fit: contain;

}


.admin-nav {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.admin-nav-item {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 14px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #d1d5db;

    text-align: left;

    cursor: pointer;

    font-size: 14px;

}


.admin-nav-item:hover {

    background: #1f2937;

    color: white;

}


.admin-nav-item.active {

    background: #f97316;

    color: white;

}


.admin-badge {

    margin-left: auto;

    min-width: 22px;

    padding: 3px 7px;

    border-radius: 20px;

    background: #ef4444;

    color: white;

    font-size: 11px;

    text-align: center;

}


.admin-sidebar-bottom {

    margin-top: auto;

}


.site-link,
.admin-logout {

    display: block;

    width: 100%;

    padding: 11px 14px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: #d1d5db;

    text-decoration: none;

    cursor: pointer;

    text-align: left;

    font-size: 13px;

}


.site-link:hover,
.admin-logout:hover {

    background: #1f2937;

    color: white;

}


/* =================================
   MAIN
================================= */

.admin-main {

    margin-left: 250px;

    min-height: 100vh;

    padding: 30px 40px;

}


.admin-topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

}


.admin-topbar h1 {

    margin: 0 0 6px;

    font-size: 28px;

}


.admin-topbar p {

    margin: 0;

    color: #6b7280;

    font-size: 13px;

}


.admin-user {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

}


.admin-avatar {

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f97316;

    color: white;

    font-weight: 700;

}


/* =================================
   SECTIONS
================================= */

.admin-section {

    display: none;

}


.admin-section.active {

    display: block;

}


.section-intro {

    margin-bottom: 25px;

}


.section-intro h2 {

    margin: 0 0 6px;

}


.section-intro p {

    margin: 0;

    color: #6b7280;

    font-size: 13px;

}


/* =================================
   STATS
================================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;

}


.stat-card {

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    padding: 20px;

    display: flex;

    gap: 15px;

    align-items: center;

}


.stat-icon {

    width: 45px;

    height: 45px;

    border-radius: 12px;

    background: #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

}


.stat-card span {

    display: block;

    color: #6b7280;

    font-size: 12px;

    margin-bottom: 5px;

}


.stat-card strong {

    font-size: 24px;

}


/* =================================
   PANEL
================================= */

.admin-panel-card {

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    overflow: hidden;

}


.panel-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    border-bottom: 1px solid #e5e7eb;

}


.panel-card-header h2 {

    margin: 0 0 5px;

    font-size: 17px;

}


.panel-card-header p {

    margin: 0;

    color: #6b7280;

    font-size: 12px;

}


.view-all-button {

    border: none;

    background: transparent;

    color: #7c3aed;

    cursor: pointer;

    font-weight: 700;

}


/* =================================
   REQUEST CARDS
================================= */

.request-list {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.request-card {

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    padding: 20px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

}


.request-card-content {

    min-width: 0;

}


.request-category {

    color: #7c3aed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;

    margin-bottom: 7px;

}


.request-card h3 {

    margin: 0 0 8px;

    font-size: 17px;

}


.request-description {

    margin: 0 0 12px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.5;

}


.request-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 12px;

    color: #374151;

}


.request-seller {

    margin-top: 10px;

    font-size: 11px;

    color: #9ca3af;

}


.request-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;

    min-width: 110px;

}


.approve-button,
.reject-button {

    border: none;

    border-radius: 9px;

    padding: 10px 13px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;

}


.approve-button {

    background: #dcfce7;

    color: #15803d;

}


.reject-button {

    background: #fee2e2;

    color: #b91c1c;

}


.approve-button:hover,
.reject-button:hover {

    opacity: .8;

}


/* =================================
   TABLE
================================= */

.admin-table-wrapper {

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    overflow-x: auto;

}


.admin-table {

    width: 100%;

    border-collapse: collapse;

}


.admin-table th,
.admin-table td {

    padding: 15px;

    text-align: left;

    border-bottom: 1px solid #e5e7eb;

    font-size: 13px;

}


.admin-table th {

    color: #6b7280;

    font-size: 11px;

}


.role-badge {

    padding: 5px 8px;

    border-radius: 7px;

    background: #f3f4f6;

    font-size: 10px;

}


/* =================================
   EMPTY
================================= */

.empty-state {

    padding: 45px;

    text-align: center;

    color: #6b7280;

    font-size: 13px;

}


.error-state {

    padding: 30px;

    text-align: center;

    color: #dc2626;

}


/* =================================
   MOBILE
================================= */

@media (max-width: 900px) {

    .admin-sidebar {

        width: 70px;

        padding: 20px 10px;

    }


    .admin-logo span,
    .admin-nav-item span:not(.admin-badge),
    .site-link,
    .admin-logout {

        display: none;

    }


    .admin-nav-item {

        justify-content: center;

    }


    .admin-main {

        margin-left: 70px;

        padding: 25px 20px;

    }


    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 600px) {

    .admin-topbar {

        align-items: flex-start;

    }


    .admin-user span {

        display: none;

    }


    .stats-grid {

        grid-template-columns: 1fr;

    }


    .request-card {

        flex-direction: column;

    }


    .request-actions {

        flex-direction: row;

    }


    .approve-button,
    .reject-button {

        flex: 1;

    }

}