

/* sidebar */
   :root {
            --primary-color: #4e73df;
            --secondary-color: #858796;
            --success-color: #1cc88a;
            --info-color: #36b9cc;
            --warning-color: #f6c23e;
            --danger-color: #e74a3b;
            --light-color: #f8f9fc;
            --dark-color: #5a5c69;
        }
        
        .resource-thumb {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 5px;
        }
        .action-buttons .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.875rem;
        }
        .stat-badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }
        .sidebar {
            position:absolute;
            left:25px;
            min-width: 250px;
            max-width: 250px;
            background: linear-gradient(180deg, var(--primary-color) 0%, #224abe 100%);
            color: #fff;
            transition: all 0.3s;
            min-height: 100vh;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
        }
        
        .sidebar .sidebar-header {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
        }
        
        .sidebar ul.components {
            padding: 20px 0;
        }
        
        .sidebar ul li a {
            padding: 15px 25px;
            display: block;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .sidebar ul li a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .sidebar ul li.active > a {
            color: #fff;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .sidebar ul li a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        .notification-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: var(--danger-color);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
/* navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    display: flex;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #2d3748 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
    color: #3b82f6 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8fafc;
    color: #3b82f6;
}

/* Modern Category Navigation */
.category-navigation {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.category-slider {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-toggle {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-toggle:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.category-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: #64748b;
}

.category-toggle.open .arrow {
    transform: rotate(180deg);
}

.subcategory-box {
    background: white;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 15px;
    right: 15px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  
}

.subcategory-box.show {
    max-height: 300px;
    opacity: 1;
    padding: 10px 15px;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.subcategory-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    color: #4a5568;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #3b82f6;
}

/* Cart and User Icons */
.cart-btn {
    position: relative;
    color: #2d3748;
    transition: color 0.2s ease;
}

.cart-btn:hover {
    color: #3b82f6;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

.user-avatar {
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.user-avatar:hover {
    border-color: #3b82f6;
}

/* Search Bar */
.search-bar {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.search-form .form-control {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.search-form .btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .navbar-brand img {
    height: 40px;
    
}
    
    #navbarSupportedContent .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    #navbarSupportedContent .nav-item {
        margin: 0 0.25rem;
        flex: 1;
        text-align: center;
    }
    
    #navbarSupportedContent .nav-link {
        padding: 0.5rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    #navbarSupportedContent .dropdown-menu {
        position: absolute;
    }
    
    #navbarSupportedContent .fa-lg {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem;
    }
    
    #navbarSupportedContent .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    #navbarSupportedContent .dropdown-toggle::after {
        display: none;
    }
    
    #navbarSupportedContent .btn-primary {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Hide text labels on mobile except for Create Store */
    #navbarSupportedContent .nav-item:not(.has-text) .nav-link span:not(.cart-badge) {
        display: none;
    }
    
    /* Show only icon for store dropdown */
    #navbarSupportedContent .nav-item.dropdown .nav-link i {
        margin-right: 0 !important;
    }
}

/* index */

.simple-rating {
    color: #0d6efd; /* Bootstrap primary blue */
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.simple-rating .fas {
    margin-right: 3px;
}
@media (max-width: 768px) {
  .card-img-top {
    height: auto !important;
  }
}
.bundle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #29caffff; /* Light blue */
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card-img-container {
    position: relative;
}
.resource-image {
    height: 236px;
    object-fit: cover;
    width: 100%;
}
.placeholder-image {
    height: 236px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

    body{
margin: 0 5rem !important;
}
@media (max-width: 768px) {
  body {
    margin: 0 1rem !important;
  }
}

/* store */


.store-header-container {
    position: relative;
    margin-bottom: 2rem;
}

.store-banner {
    height: 260px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.store-info-card {
    position: relative;
    margin-top: 0px;
  
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
}

.store-logo {
  
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: -30px;
    object-fit: cover;
    background: rgb(255, 255, 255);
    border:1px solid white;
}

.store-identity {
    flex: 0 0 300px;
}

.store-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #212529;
}

.store-rating {
    margin-bottom: 2px;
}

.store-rating .text-warning {
    font-weight: 600;
    font-size: 1.1rem;
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.followers-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.store-bio {
    flex: 1;
    padding-top: 0.5rem;
    color: #495057;
    line-height: 1.6;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .store-info-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .store-identity {
        flex: 1;
    }
    
    .store-logo {
        width: 100px;
        margin-top: -60px;
    }
    
    .col-lg-3 {
        margin-top: 2rem;
    }
}

/* Ensure sufficient contrast */


@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}
.list-group-item.active .badge {
    background-color: white !important;
    color: #0d6efd;
}

/* edit bundle */
 
    .card {
        border: none;
        border-radius: 10px;
        box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        background-color: white;
        border-bottom: 1px solid var(--border-color);
        font-weight: 700;
        padding: 1rem 1.35rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .btn-primary:hover {
        background-color: #3a5fc8;
        border-color: #3a5fc8;
    }
    
    .drop-zone {
        border: 2px dashed #d1d3e2;
        border-radius: 8px;
        padding: 2rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background-color: white;
        height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
    }
    
    .drop-zone:hover {
        border-color: var(--primary-color);
        background-color: var(--light-bg);
    }
    
    .drop-zone.dragover {
        background-color: rgba(78, 115, 223, 0.1);
        border-color: var(--primary-color);
    }
    
    .drop-zone.has-image {
        border: none;
        padding: 0;
    }
    
    .drop-zone-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .drop-zone-content {
        color: #858796;
        transition: opacity 0.3s;
    }
    
    .drop-zone.has-image .drop-zone-content {
        opacity: 0;
    }
    
    .drop-zone-actions {
        position: absolute;
        bottom: 10px;
        right: 10px;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .drop-zone:hover .drop-zone-actions {
        opacity: 1;
    }
    
    .drop-zone-icon {
        font-size: 2.5rem;
        color: #d1d3e2;
        margin-bottom: 1rem;
    }
    
    .drop-zone.dragover .drop-zone-icon {
        color: var(--primary-color);
    }
    
    .ql-container {
        height: 200px;
        font-size: 1rem;
        background: #fff;
        margin-bottom: 20px;
        border-radius: 0 0 5px 5px;
    }
    
    .ql-toolbar {
        border-radius: 5px 5px 0 0;
    }
    
    .product-card {
        background: white;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }
    
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }
    
    .product-card.selected {
        background: #e8f5e9;
        border-color: #28a745;
    }
    
    .product-card .product-image {
        height: 120px;
        background-size: cover;
        background-position: center;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .product-card .product-title {
        font-weight: 600;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-card .product-price {
        font-weight: 700;
        color: #2e7d32;
    }
    
    .product-card .checkmark {
        position: absolute;
        top: 10px;
        right: 10px;
        color: #fff;
        background: #4caf50;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .product-card.selected .checkmark {
        opacity: 1;
    }
    
    .bundle-summary {
        background: var(--light-bg);
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .bundle-summary h5 {
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
    }
    
    .bundle-summary-item {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .bundle-summary-item:last-child {
        border-bottom: none;
    }
    
    .bundle-summary-item img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 10px;
    }
    
    .bundle-summary-item .item-details {
        flex-grow: 1;
    }
    
    .bundle-summary-item .item-price {
        font-weight: 600;
    }
    
    .total-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #d32f2f;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid var(--border-color);
    }
    
    .price-suggestion {
        font-size: 0.9rem;
        color: #666;
        margin-top: 5px;
    }
    
    .empty-state {
        text-align: center;
        padding: 30px;
        color: #666;
    }
    
    .empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #bdbdbd;
    }
    
    .progress {
        height: 8px;
        margin-top: 10px;
        display: none;
    }
    
    .upload-status {
        font-size: 0.85rem;
        margin-top: 5px;
        display: none;
    }
    
    .section-title {
        font-weight: 700;
        color: #4e73df;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #4e73df;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #5a5c69;
    }
    
    .custom-checkbox .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .tag {
        display: inline-block;
        background-color: #e9ecef;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        margin: 0.25rem;
        font-size: 0.875rem;
    }
    
    .tag-remove {
        cursor: pointer;
        margin-left: 0.5rem;
    }


    /* manage product */
      .main-container {
            display: flex;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .filters-sidebar {
            width: 250px;
            flex-shrink: 0;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            height: fit-content;
        }
        
        .filters-sidebar h3 {
            margin-top: 0;
            padding-bottom: 10px;
            border-bottom: 1px solid #dee2e6;
        }
        
        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .category-item {
            margin-bottom: 8px;
        }
        
        .category-item label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        
        .category-item input {
            margin-right: 8px;
        }
        
        .content-area {
            flex-grow: 1;
        }
        
        .search-sort-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .search-box {
            display: flex;
            flex-grow: 1;
            max-width: 400px;
        }
        
        .search-box input {
            flex-grow: 1;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px 0 0 4px;
        }
        
        .search-box button {
            padding: 8px 16px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        .sort-select {
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            background: white;
        }
        
        .product-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .product-card {
            display: flex;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .product-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .product-details {
            padding: 12px;
            flex-grow: 1;
        }
        
        .product-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .product-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .product-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
        }
        
        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .bg-success {
            background-color: #d4edda;
            color: #155724;
        }
        
        .bg-primary {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            gap: 8px;
        }
        
        .page-item {
            display: inline-block;
        }
        
        .page-link {
            padding: 6px 12px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            color: #007bff;
            text-decoration: none;
        }
        
        .page-link:hover {
            background-color: #e9ecef;
        }
        
        .page-item.active .page-link {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }
        
        .page-item.disabled .page-link {
            color: #6c757d;
            pointer-events: none;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 0;
            color: #6c757d;
        }
        
        .filter-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        
        .filter-actions button {
            padding: 6px 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            background: white;
            cursor: pointer;
        }
        
        .filter-actions button.apply-btn {
            background: #28a745;
            color: white;
            border-color: #28a745;
        }
        
        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
            }
            
            .filters-sidebar {
                width: 100%;
            }
            
            .search-sort-header {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                max-width: 100%;
            }
        }

              .card {
    transition: transform 0.2s;
    position: relative;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resource-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
}
.bundle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #13d1f7ff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}
.simple-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #07bdffff;
}
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
}
.card-body {
    position: relative;
    z-index: 5;
}
.product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px); /* Adjust based on button height */
    z-index: 1;
}