/* Modern Minimalist Modal Styles */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    margin: 30px auto;
}

.modern-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

/* Modal Header Styles */
.modern-modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-modal .modal-header.auth-header {
    border-left: 4px solid #f59e0b;
}

.modern-modal .modal-header.quota-header,
.modern-modal .modal-header.error-header {
    border-left: 4px solid #ef4444;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon.auth-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.modal-icon.quota-icon,
.modal-icon.error-icon {
    background: #fef2f2;
    color: #ef4444;
}

.modern-modal .modal-title {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-btn:hover {
    color: #6b7280;
}

/* Modal Body Styles */
.modern-modal .modal-body {
    padding: 24px;
}

.alert-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-container.auth-alert {
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.alert-container.quota-alert,
.alert-container.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-container.auth-alert .alert-icon {
    color: #f59e0b;
}

.alert-container.quota-alert .alert-icon,
.alert-container.error-alert .alert-icon {
    color: #ef4444;
}

.alert-content {
    flex-grow: 1;
}

.alert-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.alert-message {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.modal-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Modal Footer Styles */
.modern-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Clean Button Styles */
.modern-modal .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    outline: none;
}

.modern-modal .btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.modern-modal .btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.modern-modal .btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.modern-modal .btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.modern-modal .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.modern-modal .btn-success {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.modern-modal .btn-success:hover {
    background: #059669;
    border-color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog-centered {
        margin: 16px;
        min-height: calc(100vh - 32px);
    }
    
    .modern-modal .modal-header {
        padding: 16px 20px;
    }
    
    .modern-modal .modal-body {
        padding: 20px;
    }
    
    .modern-modal .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }
    
    .modern-modal .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Clean backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

/* Loading state for buttons */
.modern-modal .btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.modern-modal .btn.loading::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 