/* User Dashboard Styles */

.dashboard-section {
    padding: 100px 0 60px;
    background: #0a0a0a;
    min-height: 100vh;
}

.dashboard-section .container {
    max-width: 1200px;
}

/* Auth View */
.auth-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.auth-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form h2 {
    color: white;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #999;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #333;
}

.auth-divider span {
    background: #1a1a1a;
    padding: 0 15px;
    color: #999;
    position: relative;
    z-index: 1;
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dashboard View */
.dashboard-view {
    animation: fadeIn 0.5s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.user-welcome h1 {
    color: white;
    margin-bottom: 5px;
}

.user-welcome p {
    color: #999;
    font-size: 1.1rem;
}

.user-welcome span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.dashboard-tab {
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #999;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dashboard-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dashboard Sections */
.dashboard-section-content {
    display: none;
}

.dashboard-section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: white;
    font-size: 1.8rem;
}

.order-filters select {
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* Orders Container */
.orders-container {
    display: grid;
    gap: 20px;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}

.loading-state i,
.empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading-state p,
.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

/* Order Card */
.order-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.order-id {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-date {
    color: #999;
    font-size: 0.9rem;
}

.order-card-body {
    margin-bottom: 15px;
}

.order-items-preview {
    color: #ccc;
    margin-bottom: 10px;
}

.order-total {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-confirmed {
    background: rgba(0, 200, 81, 0.2);
    color: #00c851;
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.status-processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-shipped {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.status-delivered {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.view-details-btn {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Profile Section */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
}

.profile-card h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h3 i {
    color: var(--primary-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-weight: 500;
}

.info-value {
    color: white;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

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

.stat-label {
    color: #999;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 80px 0 40px;
    }

    .auth-container {
        padding: 30px 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-tabs {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-tab {
        width: 100%;
        justify-content: center;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 25px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* Wishlist Styles */
.wishlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wishlist-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-5px);
}

.wishlist-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wishlist-details {
    padding: 15px;
}

.wishlist-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.wishlist-details .price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

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