:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #A0522D;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: bold;
}

.feature-icon {
    color: var(--primary-color);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
}

/* Navbar cart icon styling */
.navbar .nav-link.position-relative {
    transition: all 0.3s ease;
}

.navbar .nav-link.position-relative:hover {
    color: #ffc107 !important;
    transform: scale(1.1);
}

/* Badge positioning adjustment */
.navbar .badge {
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar .d-flex.align-items-center {
        order: 2;
    }
    
    .navbar-brand {
        order: 1;
        flex-grow: 1;
    }
    
    .navbar-collapse {
        order: 3;
    }
    
    /* Adjust cart icon size on mobile */
    .navbar .fa-shopping-cart {
        font-size: 1.2rem;
    }
}

/* Desktop styling */
@media (min-width: 992px) {
    /* Hide track order in main nav for desktop - show in dropdown instead */
    .navbar .d-lg-none {
        display: none !important;
    }
    
    /* Add track order to user dropdown for logged out users */
    .navbar-nav .nav-item:not(.d-lg-none) {
        display: block !important;
    }
}

/* Product Type Styles */
.product-type-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    color: white;
    border: 1px solid;
}

.type-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white;
    border: 1px solid;
}

/* Color Picker Styles */
.form-control-color {
    width: 3rem;
    height: calc(3.5rem + 2px);
}

/* Product Categories Navigation */
.product-categories-nav {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.nav-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: fit-content;
}

.category-item:hover {
    color: var(--type-color, #8B4513);
    border-color: var(--type-color, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-item.active {
    background: var(--type-color, #8B4513);
    color: white;
    border-color: var(--type-color, #8B4513);
}

/* Marketplace Styles */
.marketplace-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.marketplace-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white !important;
    text-decoration: none;
}

.marketplace-btn {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.marketplace-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white !important;
    opacity: 0.9;
}

.marketplace-links {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.marketplace-badges {
    font-size: 0.8rem;
}

/* Specific marketplace colors */
.shopee-marketplace {
    background-color: #EE4D2D !important;
    border-color: #EE4D2D !important;
}

.tokopedia-marketplace {
    background-color: #42B549 !important;
    border-color: #42B549 !important;
}

.blibli-marketplace {
    background-color: #0095DA !important;
    border-color: #0095DA !important;
}

.lazada-marketplace {
    background-color: #0F146C !important;
    border-color: #0F146C !important;
}

.bukalapak-marketplace {
    background-color: #E31E52 !important;
    border-color: #E31E52 !important;
}

/* Responsive marketplace links */
@media (max-width: 768px) {
    .marketplace-links .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .marketplace-links .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .marketplace-badges .d-flex {
        flex-wrap: wrap;
    }
}

/* Product card marketplace section */
.product-card .marketplace-badges {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Return Policy Styles */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

/* Admin Settings Styles */
.faq-item .card-header {
    background: #f8f9fa !important;
}

.faq-item textarea {
    resize: vertical;
    min-height: 100px;
}

.condition-item .form-control,
.non-returnable-item .form-control {
    border-right: 0;
}

.condition-item .btn,
.non-returnable-item .btn {
    border-left: 0;
}

.preview-card {
    max-height: 200px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        left: -40px;
        width: 40px;
        height: 40px;
    }
}

/* Attendance System Styles */
.attendance-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-present { background-color: #d1e7dd; color: #0f5132; }
.status-late { background-color: #fff3cd; color: #856404; }
.status-absent { background-color: #f8d7da; color: #721c24; }
.status-leave { background-color: #cff4fc; color: #055160; }
.status-holiday { background-color: #fff8e1; color: #856404; }

.attendance-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-cell {
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    position: relative;
}

.calendar-day-cell.today {
    border-color: #0d6efd;
    background-color: #e7f5ff;
}

/* Attendance Modal Styles */
.attendance-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.attendance-modal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Time Display */
.current-time-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
}

/* Progress Indicators */
.attendance-progress {
    height: 1.5rem;
    font-size: 0.875rem;
}

/* Holiday Cards */
.holiday-card {
    border-left: 4px solid #ffd54f;
    transition: transform 0.2s;
}

.holiday-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Report Table */
.attendance-report-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .attendance-report-table {
        font-size: 12px;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .attendance-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calendar-day-cell {
        min-height: 60px;
        padding: 0.25rem;
    }
}

/* Roast Visualization Styles */
.roast-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.1);
}

.roast-badge i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.roast-visualization {
    max-width: 300px;
}

.roast-color-chip {
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.roast-color-chip:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
}

.roast-chip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.roast-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.roast-temp {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 20px;
}

.roast-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Roast Grid on Products Page */
.roast-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.roast-filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.roast-filter-btn:hover,
.roast-filter-btn.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Card Roast Indicator */
.product-roast-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}