/* ============================================================================
   IMPORT LIMIT MODAL STYLES - STEP 3
   Add these styles to your main CSS or include as separate file
   ============================================================================ */

/* Limit Exceeded Modal */
.limit-exceeded-modal {
    max-width: 600px !important;
    animation: slideDown 0.3s ease;
}

.limit-exceeded-modal .modal-header.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.limit-error-icon {
    font-size: 4rem;
    text-align: center;
    margin: 20px 0;
}

.limit-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.limit-message p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.limit-message strong {
    color: #dc2626;
    font-weight: 700;
}

.capacity-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #ef4444;
}

.capacity-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.limit-suggestions {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.limit-suggestions h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.limit-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limit-suggestions li {
    padding: 10px 0;
    font-size: 1rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.limit-suggestions li:last-child {
    border-bottom: none;
}

.limit-suggestions li strong {
    color: #f59e0b;
}

/* Approaching Limit Warning Styles */
.approaching-limit-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    z-index: 9999;
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

.approaching-limit-banner.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}

/* Modal Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Button Styles for Modals */
.limit-exceeded-modal .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.limit-exceeded-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.limit-exceeded-modal .btn-outline {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.limit-exceeded-modal .btn-outline:hover {
    border-color: #94a3b8;
    color: #475569;
}

/* Modal Footer Button Layout */
.limit-exceeded-modal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .limit-exceeded-modal {
        max-width: 95% !important;
        margin: 10px;
    }
    
    .limit-error-icon {
        font-size: 3rem;
    }
    
    .limit-message p {
        font-size: 1rem;
    }
    
    .approaching-limit-banner {
        top: 70px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
