/* Dashboard Specific Styles */
.customer-dashboard {
    padding: 20px 5%;
    background: linear-gradient(135deg, var(--accent3) 0%, #f8f9fa 100%);
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent4), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(209, 89, 16, 0.3);
}

.avatar-text {
    font-family: 'Poppins', sans-serif;
}

.welcome-text h1 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.welcome-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

.guest-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.guest-notice i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 2px;
}

.guest-notice strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

.guest-notice p {
    color: #856404;
    margin: 0;
}

.guest-notice a {
    color: var(--accent4);
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.dashboard-sidebar {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--accent3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background: rgba(198, 180, 155, 0.1);
    color: var(--accent4);
    border-left-color: var(--accent4);
}

.nav-item.active .nav-link {
    background: rgba(198, 180, 155, 0.15);
    color: var(--accent4);
    border-left-color: var(--accent4);
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    background: var(--accent4);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* Quick Actions */
.quick-actions {
    padding: 25px;
    border-top: 1px solid #eee;
    margin-top: 20px;
    background-color: var(--accent1)
}

.quick-actions h3 {
    /* color: var(--secondary); */
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--primary);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn a{
    color: var(--text-light);
    text-decoration: none;
}

/* Main Content */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Enhanced Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent4), var(--primary));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent4));
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(198, 180, 155, 0.3);
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--secondary);
    font-weight: 700;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.stat-trend {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #28a745;
}

.stat-trend .fa-arrow-down {
    color: #dc3545;
}

/* Enhanced Dashboard Sections */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-section {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.section-header h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent4);
}

.view-all {
    color: var(--accent4);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: 10px;
    text-decoration: none;
    color: var(--accent4);
}

/* Enhanced Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-light);
}

.order-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-info {
    flex: 1;
}

.order-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.order-header h4 {
    color: var(--secondary);
    margin: 0;
    font-weight: 600;
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-amount {
    color: var(--accent4);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.order-status i {
    font-size: 0.6rem;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-products {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.product-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: -8px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-thumb:hover {
    transform: scale(1.1);
    z-index: 1;
}

.more-products {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--accent3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-light);
    border: 2px solid white;
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* Enhanced Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #b34a0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(209, 89, 16, 0.3);
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: rgba(209, 89, 16, 0.1);
    transform: translateY(-2px);
    color: var(--accent4);
    text-decoration: none;
}

/* Enhanced Wishlist */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.wishlist-item {
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wishlist-image {
    position: relative;
    overflow: hidden;
}

.wishlist-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item:hover img {
    transform: scale(1.05);
}

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.wishlist-item:hover .wishlist-remove {
    opacity: 1;
}

.wishlist-remove:hover {
    background: #dc3545;
    color: white;
}

.wishlist-info {
    padding: 15px;
}

.wishlist-item h4 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.wishlist-item .price {
    color: var(--accent4);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.wishlist-actions {
    display: flex;
    gap: 8px;
}

.btn-view, .btn-add-cart {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-view {
    background: transparent;
    color: var(--accent4);
    border: 1px solid var(--accent4);
}

.btn-view:hover {
    background: var(--accent4);
    color: white;
    text-decoration: none;
}

.btn-add-cart {
    background: var(--accent4);
    color: white;
    border: none;
}

.btn-add-cart:hover {
    background: #b34a0e;
    color: white;
    text-decoration: none;
}

/* Enhanced Account Details */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--accent3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(198, 180, 155, 0.2);
    transform: translateX(5px);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
}

.detail-content {
    flex: 1;
}

.label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.value {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1rem;
}

.not-set {
    color: #6c757d;
    font-style: italic;
}

/* Enhanced Guest Upgrade */
.guest-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    margin-top: 20px;
}

.upgrade-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.upgrade-content h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.upgrade-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.guest-upgrade .btn-primary {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.guest-upgrade .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced Empty States */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Sidebar Toggle for Mobile */
.sidebar-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent4);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .customer-dashboard {
        padding: 15px 3%;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-products {
        margin: 0;
        align-self: center;
    }
    
    .order-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-upgrade {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .customer-dashboard {
        padding: 10px 2%;
    }
    
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent4);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .customer-dashboard {
        background: linear-gradient(135deg, var(--accent3) 0%,var(--accent2) 100%);
    }
    
    .dashboard-header,
    .dashboard-sidebar,
    .dashboard-section,
    .stat-card,
    .order-item,
    .wishlist-item,
    .detail-item {
        background: var(--accent2);
        color: #e2e8f0;
    }
    
    .welcome-text h1,
    .section-header h2,
    .order-header h4,
    .wishlist-item h4,
    .value {
        color: #e2e8f0;
    }
    
    .welcome-text p,
    .view-all,
    .order-date,
    .label,
    .empty-state p {
        color: #a0aec0;
    }
    
    .action-btn,
    .detail-item {
        background: #4a5568;
        border-color: #4a5568;
    }
    
    .empty-icon {
        color: #4a5568;
    }
}