/* Modal Notifications Styles */

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Fullscreen modal adjustments */
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
}

/* Modal content styling */
.modal-content {
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

/* Button styling */
.modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Content wrapper */
.content-wrapper {
    position: relative;
}

/* Snooze button styling */
[data-snooze-modal] {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

[data-snooze-modal]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Action button styling */
.modal-body .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s ease-in-out;
}

.modal-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Close button styling */
.btn-close {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    background-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modal type specific styling */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #696cff 0%, #5a5fcf 100%) !important;
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.modal-header.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0bb5d6 100%) !important;
}

.modal-header.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .d-flex > div {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        font-size: 0.9rem;
    }
}

/* Dark theme support */
[data-theme="dark"] .modal-content {
    background-color: #2b2c40;
    color: #a1a1aa;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .modal-body {
    background: linear-gradient(135deg, rgba(43, 44, 64, 0.9) 0%, rgba(30, 31, 45, 0.9) 100%);
}

/* Loading state */
.modal-loading {
    position: relative;
    pointer-events: none;
}

.modal-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Animation for modal entrance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.fade .modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

/* Pulse animation for important modals */
.modal-urgent .modal-content {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
    50% {
        box-shadow: 0 1rem 3rem rgba(220, 53, 69, 0.3);
    }
    100% {
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
}
