﻿.modal-content {
    border-radius: var(--modal-radius);
    border: none;
    box-shadow: 0 10px 40px rgba(22, 116, 197, 0.2), 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 18px 20px;
    border-bottom: none;
    position: relative;
}

    .modal-header .modal-title {
        font-weight: 600;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .modal-header .modal-title .fa {
            font-size: 20px;
        }

    .modal-header .close {
        color: #fff;
        opacity: 0.9;
        text-shadow: none;
        font-size: 28px;
        font-weight: 300;
        margin-top: -4px;
        transition: all 0.2s ease;
    }

        .modal-header .close:hover {
            opacity: 1;
            transform: scale(1.1);
        }

    .modal-header .header-actions {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }

        .modal-header .header-actions .btn-icon {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            color: #fff;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            padding: 0;
            line-height: 30px;
            text-align: center;
            transition: all 0.2s ease;
        }

            .modal-header .header-actions .btn-icon:hover {
                background: rgba(255,255,255,0.25);
                transform: translateY(-1px);
            }

.modal-body {
    padding: 25px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    color: #333;
}

.modal-footer {
    padding: 15px 20px;
    background: #fafbfc;
    border-top: 1px solid #e8ecef;
}

    /* Modal Footer Buttons */
    .modal-footer .btn {
        border-radius: 6px;
        padding: 8px 20px;
        font-weight: 500;
        transition: all 0.25s ease;
        border: none;
    }

    .modal-footer .btn-primary {
        background: var(--primary-gradient);
        color: #fff;
        box-shadow: 0 2px 8px rgba(22, 116, 197, 0.3);
    }

        .modal-footer .btn-primary:hover,
        .modal-footer .btn-primary:focus {
            background: linear-gradient(90deg, #1366ae 0%, #0f4e85 100%);
            box-shadow: 0 4px 12px rgba(22, 116, 197, 0.4);
            transform: translateY(-1px);
        }

        .modal-footer .btn-primary:active {
            transform: translateY(0);
        }

    .modal-footer .btn-default {
        background: #fff;
        border: 1px solid #d1d5db;
        color: #4b5563;
    }

        .modal-footer .btn-default:hover {
            background: #f9fafb;
            border-color: #9ca3af;
            color: #1f2937;
        }

    .modal-footer .btn-danger {
        background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }

        .modal-footer .btn-danger:hover {
            background: linear-gradient(90deg, #c51e1e 0%, #a01818 100%);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
            transform: translateY(-1px);
        }

/* Modal Types */
.modal-delete .modal-header {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

.modal-popup .modal-body {
    text-align: center;
    padding: 40px 25px;
}

.modal-popup .modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

    .modal-popup .modal-icon.icon-success {
        color: #10b981;
    }

    .modal-popup .modal-icon.icon-warning {
        color: #f59e0b;
    }

    .modal-popup .modal-icon.icon-error {
        color: #ef4444;
    }

/* ==================== FULLSCREEN MODAL ==================== */
.modal-custom-fullscreen-xl .modal-dialog {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    max-width: none;
}

.modal-custom-fullscreen-xl .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-custom-fullscreen-xl .modal-body {
    flex: 1 1 auto;
    max-height: none;
}

/* Scrollbar styling for modal-body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Form styling inside modal */
/*.modal-body .form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}*/
/*
.modal-body .form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    box-shadow: none;
    transition: all 0.2s ease;
}
*/

/* Animation */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.2s ease-out;
}
.modal.in .modal-dialog {
    transform: scale(1);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-custom-fullscreen-xl .modal-dialog {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        margin: 5px;
    }

    .modal-header .header-actions {
        right: 45px;
    }
}
