﻿/* Modal container */
.custom-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1050 !important;
    width: 95vw !important;
    height: 95vh !important;
    max-width: 1200px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.3) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

    /* Header */
    .custom-modal .custom-modal-header {
        padding: 14px 18px;
        background: #f5f6f7;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    /* Content */
    .custom-modal .custom-modal-content {
        flex: 1;
        padding: 18px;
        background: #fff;
        overflow: hidden;
        display: flex;
    }

    /* Iframe */
    .custom-modal iframe {
        flex: 1;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }

    /* Footer */
    .custom-modal .custom-modal-footer {
        flex: 0 0 auto !important;
        padding: 12px 18px !important;
        background: #f9fafb !important;
        border-top: 1px solid #e5e7eb !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

        .custom-modal .custom-modal-footer form {
            display: flex !important;
            justify-content: flex-end !important;
            gap: 10px !important;
            width: 100% !important;
        }

/* Buttons - base */
.custom-button {
    padding: 10px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #d0d7de !important;
    background: #f6f8fa !important;
    color: #24292f !important;
    font-size: .95rem !important;
    cursor: pointer !important;
    transition: background .2s ease, color .2s ease, opacity .2s ease !important;
}

    .custom-button:hover {
        background: #eef1f4 !important;
    }

/* Primary button (Continue = blue) */
.custom-button-primary {
    background: #0078d4 !important;
    border-color: #0070c1 !important;
    color: #fff !important;
}

    .custom-button-primary:hover {
        background: #005fa3 !important;
    }

/* Secondary button */
.custom-button-secondary {
    background: #f6f8fa !important;
    border: 1px solid #d0d7de !important;
    color: #24292f !important;
}

    /* Logout = red on hover */
    .custom-button-secondary.logout:hover {
        background: #dc3545 !important;
        border-color: #b02a37 !important;
        color: #fff !important;
    }

/* Always enabled primary button */
.custom-modal .custom-button-primary {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* HR inside modal */
.custom-modal hr {
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 16px 0 !important;
}
