/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    .user-name {
        display: none;
    }
}

/* Stock Badges */
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.9);
    /* Purple */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.out-of-stock {
    background: rgba(220, 38, 38, 0.9) !important;
    /* Red */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-count-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

/* Customer Dashboard Styles */
.customer-dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.customer-dashboard-modal.dashboard-active {
    display: flex;
}

.dashboard-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 20px;
    animation: dashboardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dashboardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dashboard-container {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.user-greeting h2 {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.user-greeting p {
    color: var(--text-muted);
    font-size: 15px;
}

.large-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    object-fit: cover;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-item-card:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-5px);
}

.stat-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(var(--text-main-rgb), 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.stat-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
}
/* Dashboard Close Button Style */
.dashboard-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--border-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    z-index: 2001;
}

.dashboard-close-btn:hover {
    background: var(--accent-red);
    transform: rotate(90deg);
}
