/* Dashboard Modal Styles */
.dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dashboard-modal.show {
    opacity: 1;
    visibility: visible;
}

.dashboard-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dashboard-modal-content {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 20px;
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dashboard-modal.show .dashboard-modal-content {
    transform: scale(1);
}

.dashboard-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.dashboard-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.dashboard-modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.dashboard-full-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.dashboard-modal-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-modal-footer p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Product Badge Cursor */
.product-badge {
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.product-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    
    .dashboard-modal-header {
        padding: 15px 20px;
    }
    
    .dashboard-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .dashboard-close-btn {
        width: 35px;
        height: 35px;
    }
    
    .dashboard-full-image {
        max-height: 60vh;
    }
    
    .dashboard-modal-footer {
        padding: 12px 20px;
    }
    
    .dashboard-modal-footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dashboard-modal-overlay {
        padding: 10px;
    }
    
    .dashboard-modal-content {
        border-radius: 15px;
    }
    
    .dashboard-modal-header {
        padding: 12px 15px;
    }
    
    .dashboard-modal-header h3 {
        font-size: 1rem;
    }
    
    .dashboard-full-image {
        max-height: 50vh;
    }
    
    .dashboard-modal-footer {
        padding: 10px 15px;
    }
}
