/* #YOURBOY Admin Panel Styles */

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

:root {
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --lighter-gray: #999999;
    --border-gray: #e0e0e0;
    --bg-gray: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', 'Nunito', 'Inter', sans-serif;
    background: var(--bg-gray);
    color: var(--dark-gray);
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--black);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.mobile-menu-toggle:hover {
    background: var(--dark-gray);
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--black);
    color: var(--white);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-menu {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    padding: 1rem 1.5rem;
    color: var(--lighter-gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--dark-gray);
    color: var(--white);
}

.nav-item.active {
    background: var(--dark-gray);
    color: var(--white);
    border-left-color: var(--white);
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
}

/* Sidebar Footer / Signout */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.signout-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--dark-gray);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.signout-btn:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
}

.signout-btn i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
    transition: margin-left 0.3s ease, width 0.3s ease;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 1.8rem;
    color: var(--black);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    gap: 0.5rem;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.95rem;
    width: 250px;
    font-family: inherit;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--black);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-title {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Table Container */
.table-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    font-size: 1.3rem;
    color: var(--black);
}

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

thead {
    background: var(--bg-gray);
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

tbody tr:hover {
    background: var(--bg-gray);
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--light-gray);
    border: 1px solid var(--border-gray);
}

.btn-ghost:hover {
    background: var(--bg-gray);
    border-color: var(--black);
    color: var(--black);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: var(--black);
    color: var(--white);
}

.badge-inactive {
    background: var(--border-gray);
    color: var(--light-gray);
}

.badge-pending {
    background: var(--light-gray);
    color: var(--white);
}

.badge-low {
    background: var(--medium-gray);
    color: var(--white);
}

/* Product Info */
.product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-gray);
    transition: color 0.3s;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--black);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Confirmation Modal */
.confirm-modal .modal-content {
    max-width: 400px;
}

.confirm-modal .modal-body {
    text-align: center;
    padding: 2rem 1.5rem;
}

.confirm-modal .modal-body p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 0;
}

.confirm-modal .modal-footer {
    justify-content: center;
    padding: 1rem 1.5rem 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--medium-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--black);
}

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

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

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.action-title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    outline: none;
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
}

/* Responsive - Laptop/Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding: 1.5rem;
    }

    .header {
        padding: 1.2rem 1.5rem;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .search-box input {
        width: 220px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }
}

/* Responsive - Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
        padding: 2rem;
    }
}

/* Responsive - Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Mobile Menu Toggle - Show on tablet */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Sidebar - Hidden by default on tablet */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0) !important;
        z-index: 1000;
    }

    /* Main Content - Full width on tablet when sidebar is hidden */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        padding-top: 5rem; /* Space for mobile menu button + extra spacing */
    }

    .header {
        padding: 1.2rem 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

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

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 750px;
    }
}

/* Responsive - Mobile (up to 767px) */
@media (max-width: 767px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Sidebar - Hidden by default on mobile */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0) !important;
        z-index: 1000;
    }

    /* Main Content - Full width on mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        padding-top: 5rem; /* Space for mobile menu button + extra spacing */
    }

    /* Header */
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .header h1 {
        font-size: 1.4rem;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    /* Search Box */
    .search-box {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .search-box input {
        width: 100%;
        font-size: 0.9rem;
    }

    /* User Info */
    .user-info {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Table Container - Horizontal Scroll */
    .table-container {
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    table {
        min-width: 700px;
        font-size: 0.85rem;
        width: 100%;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Table Header */
    .table-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .table-header h2 {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Filters */
    .filters {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .filter-select {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Quick Actions */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .action-card {
        padding: 1.2rem;
    }

    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Product Info */
    .product-img {
        width: 40px;
        height: 40px;
    }

    .product-info {
        gap: 0.5rem;
    }

    /* Badges */
    .badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Toast */
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* Sidebar adjustments */
    .sidebar-header {
        padding: 1.5rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-item {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .nav-item i {
        font-size: 1.1rem;
        width: 18px;
    }

    .sidebar-footer {
        padding: 1rem;
    }

    .signout-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Responsive - Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        padding-top: 4.5rem; /* Space for mobile menu button + extra spacing */
    }

    .header {
        padding: 0.75rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .header-actions .btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-title {
        font-size: 0.8rem;
    }

    table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .sidebar {
        width: 100%;
        max-width: 300px;
    }

    .toast {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Responsive - Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 260px;
        padding: 2.5rem;
        width: calc(100% - 260px);
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

