:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glassmorphism Header */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Table Design */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--light);
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

textarea {
    min-height: 200px;
}

/* Admin Layout - Shopify Inspired */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f6f6f7;
}

.sidebar {
    width: 240px;
    background: #ebebed;
    border-right: 1px solid #d2d2d7;
    padding: 1rem 0;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 2.5rem 4rem;
    min-height: 100vh;
    max-width: 100%;
    /* Ensure content can fill width */
}

.sidebar-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 140px;
    height: auto;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8c9196;
    text-transform: uppercase;
    padding: 1.25rem 0.75rem 0.5rem;
    letter-spacing: 0.05rem;
}

.sidebar-link {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    color: #202223;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: #616161;
}

.sidebar-link:hover {
    background: #e1e1e3;
    color: #000;
}

.sidebar-link.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #d2d2d7;
    background: #e4e4e6;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.user-info small {
    color: #6d7175;
    display: block;
    font-size: 0.7rem;
}

.user-info strong {
    font-size: 0.85rem;
    color: #202223;
}

/* Dashboard Cards Overrides */
.card {
    border: 1px solid #dfe3e8;
    box-shadow: none;
    border-radius: 8px;
    width: 100%;
    /* Full width */
}

th {
    background: #f4f6f8;
    color: #6d7175;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 0.75rem 1rem;
}

td {
    padding: 1.25rem 1rem;
}


/* Action Buttons */
.action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-icon {
    background: #f1f2f3;
    padding: 0.5rem;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    color: #1a1c1d;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.btn-icon:hover {
    background: #e4e4e6;
    border-color: #cbd5e1;
}

.btn-icon.delete:hover {
    color: #d72c0d;
    border-color: #d72c0d;
    background: #fff1f0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid #d2d2d7;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6d7175;
}

.close-modal:hover {
    color: #1a1c1d;
}

/* Badges */
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}