.home-dashboard {
    padding: 5px 30px;
    background-color: #FDFAF5;
}

.home-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(166, 124, 82, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #A67C52;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #6B4423;
    margin: 0;
}

/* Home Filters */
.home-filters {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.home-filters::-webkit-scrollbar {
    height: 6px;
}

.home-filters::-webkit-scrollbar-track {
    background: #F5EBE0;
    border-radius: 10px;
}

.home-filters::-webkit-scrollbar-thumb {
    background: #D7C4B0;
    border-radius: 10px;
}

.home-filters::-webkit-scrollbar-thumb:hover {
    background: #C9A882;
}

.filter-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 75px;
    width: auto;
    height: 45px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #F5EBE0, #FFF8E7);
    border: 2px solid #E8D5C4;
    border-radius: 12px;
    color: #6B4423;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
    white-space: nowrap;
}

.filter-btn i {
    display: none;
}

.filter-btn span {
    display: inline;
    line-height: 1;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #E8D5C4, #F5EBE0);
    border-color: #D7C4B0;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(166, 124, 82, 0.25);
}

.filter-btn.active {
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    border-color: #8B6F47;
    color: white;
}

.filter-btn.active i {
    color: white;
    display: none;
}

.filter-count {
    display: none;
}

.filter-btn.active .filter-count {
    display: none;
}

/* Products Carousel Container */
.products-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.3);
    z-index: 100;
    position: relative;
    pointer-events: auto;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8B6F47, #6B4423);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(166, 124, 82, 0.4);
}

.carousel-nav-btn:active:not(.nav-disabled) {
    transform: scale(0.95);
}

.carousel-nav-btn.nav-disabled {
    cursor: not-allowed;
    background: linear-gradient(135deg, #C4A47C, #B5927B);
}

.carousel-nav-btn.nav-disabled:hover {
    transform: none;
    background: linear-gradient(135deg, #C4A47C, #B5927B);
}

.carousel-nav-btn i {
    pointer-events: none;
    font-size: 24px;
    font-weight: bold;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    flex: 1;
    min-height: 350px;
    transition: opacity 0.3s ease;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 0;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E8D5C4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: #D7C4B0;
    transform: scale(1.2);
}

.indicator-dot.active {
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    width: 32px;
    border-radius: 6px;
}

.product-card-home {
    background: linear-gradient(135deg, #FFFFFF, #FFF8E7);
    border: 2px solid #E8D5C4;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.1);
}

.product-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(166, 124, 82, 0.25);
    border-color: #D7C4B0;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #F5EBE0, #FFF8E7);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-home:hover .product-image-container img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(166, 124, 82, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.product-badge i {
    font-size: 14px;
}

.product-info-home {
    padding: 16px;
    background: white;
}

.product-name-home {
    font-size: 16px;
    font-weight: 700;
    color: #6B4423;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 1.4;
}

.product-price-home {
    font-size: 20px;
    font-weight: 700;
    color: #A67C52;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FFF8E7, #F5EBE0);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #E8D5C4;
}

.product-meta-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F5EBE0;
}

.product-sold-home {
    font-size: 13px;
    color: #8B6F47;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-sold-home i {
    color: #A67C52;
}

/* No Products */
.no-products-home {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #B5927B;
}

.no-products-home i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #C9A882;
}

.no-products-home p {
    font-size: 20px;
    margin-bottom: 8px;
    color: #8B6F47;
    font-weight: 600;
}

.no-products-home small {
    font-size: 14px;
    color: #B5927B;
}

.no-products-home strong {
    color: #A67C52;
    font-weight: 700;
}

/* Revenue Section */
.revenue-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.revenue-card {
    background: #F5E6D3;
    border: 2px solid #A67C52;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.revenue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.2);
}

.revenue-card.highlight {
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    border-color: #8B6F47;
}

.revenue-card.highlight .revenue-label {
    color: rgba(255,255,255,0.9);
}

.revenue-card.highlight .revenue-amount {
    color: white;
}

.revenue-card.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
}

.revenue-card.success .revenue-label {
    color: rgba(255,255,255,0.9);
}

.revenue-card.success .revenue-amount {
    color: white;
}

.revenue-icon {
    display: none;
}

.revenue-details {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.revenue-label {
    font-size: 14px;
    color: #8B6F47;
    font-weight: 600;
    margin-bottom: 8px;
}

.revenue-amount {
    font-size: 28px;
    font-weight: 700;
    color: #6B4423;
}

/* No products message */
.no-products {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-brown);
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-phone,
.staff-username {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.staff-phone i,
.staff-username i {
    width: 14px;
    color: var(--primary-brown);
}

.no-staff-home {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-staff-home i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-staff-home p {
    font-size: 16px;
    margin: 0;
}

.view-all-link {
    color: var(--primary-brown);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 10px;
    color: var(--secondary-brown);
}

.view-all-link i {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .home-filters {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .home-dashboard {
        padding: 20px;
    }
    
    .products-carousel-container {
        gap: 10px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .product-name-home {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-price-home {
        font-size: 16px;
    }
    
    .filter-btn {
        min-width: 65px;
        width: auto;
        height: 42px;
        padding: 8px 13px;
        font-size: 11px;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .filter-count {
        display: none;
    }
    
    .revenue-amount {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-carousel-container {
        gap: 5px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .indicator-dot {
        width: 8px;
        height: 8px;
    }
    
    .indicator-dot.active {
        width: 24px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .filter-btn {
        min-width: 60px;
        width: auto;
        height: 40px;
        padding: 7px 10px;
        font-size: 10px;
        gap: 0;
    }
    
    .filter-btn i {
        display: none;
    }
}