/* ============================================================================
   VENDOR/SELLER DASHBOARD STYLES
   ============================================================================ */
.itmzz-style-dashboard {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

.itmzz-style-main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

/* Dashboard Sidebar */
.itmzz-style-sidebar {
    flex: 0 0 280px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.itmzz-style-sidebar .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itmzz-style-sidebar .list-group-item {
    padding: 0;
    margin-bottom: 0.5rem;
    border: none;
    background: transparent;
}

.itmzz-style-sidebar .list-group-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.itmzz-style-sidebar .list-group-item a:hover {
    background: var(--bg-secondary);
    color: var(--primary-green);
}

.itmzz-style-sidebar .list-group-item.active a,
.itmzz-style-sidebar .list-group-item a.active {
    background: var(--gradient-primary);
    color: white;
}

/* Dashboard Content Area */
.itmzz-style-content {
    flex: 1;
    min-width: 0;
}

/* Dashboard Header */
.itmzz-style-header {
    background: var(--bg-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.itmzz-style-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

/* Dashboard Breadcrumb */
.itmzz-style-breadcrumb {
    margin-bottom: 1rem;
    margin-top: -1px;
}

/* Align page-header with itmzz-style-header */
.itmzz-style-content .page-header {
    vertical-align: middle;
    margin: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border-color);
    background: transparent !important;
}

.itmzz-style-content .page-header h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    display: block !important;
    margin: 0 0 1rem 0 !important;
    padding-bottom: 1rem !important;
    text-shadow: none !important;
}

/* Ensure consistent spacing between header and page-header */
.itmzz-style-header+.pts-row .page-header,
.itmzz-style-header+div .page-header {
    margin-top: 1rem !important;
}

.itmzz-style-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.itmzz-style-breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.itmzz-style-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.itmzz-style-breadcrumb li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.itmzz-style-breadcrumb li a:hover {
    color: var(--primary-green);
}

/* Dashboard Statistics Cards */
.itmzz-style-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.itmzz-style-stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.itmzz-style-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.itmzz-style-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

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

/* Dashboard Filter Section */
.itmzz-style-filter-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.itmzz-style-filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.itmzz-style-filter-title i {
    color: var(--primary-green);
}

.itmzz-style-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.itmzz-style-form-group {
    display: flex;
    flex-direction: column;
}

#filter-toggle-btn {
    margin-top: 0.5rem;
}

.itmzz-style-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.itmzz-style-form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.itmzz-style-form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.itmzz-style-form-control:disabled {
    background: var(--bg-secondary);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Filter Buttons */
.itmzz-style-filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.itmzz-style-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.itmzz-style-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.itmzz-style-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.itmzz-style-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.itmzz-style-btn-secondary:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

/* Dashboard Table */
.itmzz-style-table-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.itmzz-style-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.itmzz-style-table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.itmzz-style-table-actions {
    display: flex;
    gap: 1rem;
}

.itmzz-style-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.itmzz-style-table {
    width: 100%;
    border-collapse: collapse;
}

.itmzz-style-table thead th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.itmzz-style-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.itmzz-style-table tbody tr {
    transition: var(--transition);
}

.itmzz-style-table tbody tr:hover {
    background: var(--bg-secondary);
}

.itmzz-style-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Actions */
.itmzz-style-table-actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.itmzz-style-icon-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.itmzz-style-icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-green);
}

.itmzz-style-icon-btn.danger:hover {
    background: var(--accent-danger);
    color: white;
    border-color: var(--accent-danger);
}

/* Dashboard Pagination */
.itmzz-style-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.itmzz-style-pagination a,
.itmzz-style-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.itmzz-style-pagination a:hover {
    background: var(--bg-secondary);
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.itmzz-style-pagination .active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Product Grid in Dashboard */
.itmzz-style-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Dashboard Empty State */
.itmzz-style-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.itmzz-style-empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.itmzz-style-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.itmzz-style-empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ============================================================================
   RESPONSIVE DASHBOARD STYLES
   ============================================================================ */
@media (max-width: 991px) {
    .itmzz-style-main-wrapper {
        flex-direction: column;
    }

    .itmzz-style-sidebar {
        flex: 1;
        position: static;
    }

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

    .itmzz-style-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .itmzz-style-stats-grid {
        grid-template-columns: 1fr;
    }

    .itmzz-style-header {
        padding: 1.5rem;
    }

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

    .itmzz-style-filter-section,
    .itmzz-style-table-section {
        padding: 1.5rem;
    }

    .itmzz-style-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .itmzz-style-table thead {
        display: none;
    }

    .itmzz-style-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-sm);
    }

    .itmzz-style-table tbody td {
        display: block;
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .itmzz-style-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        color: var(--text-primary);
    }

    .itmzz-style-table tbody td:last-child {
        border-bottom: none;
    }

    .itmzz-style-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Logo */
.itmzz-dashboard-header .navbar-brand {
    padding: 0;
    margin-right: 1rem;
    margin-left: 20px;
}
.itmzz-dashboard-header .dashboard-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}


/* Dashboard Logo */
.itmzz-dashboard-header .navbar-brand {
    padding: 0;
    margin-right: 1rem;
    margin-left: 20px;
}
.itmzz-dashboard-header .dashboard-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}
