/* ==================================================
   ATTS CUSTOM MODAL STYLE
   ================================================== */
#a-text-to-speech-box .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#a-text-to-speech-box .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#a-text-to-speech-box .modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: attsModalFadeIn 0.3s ease-out;
}

@keyframes attsModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#a-text-to-speech-box .modal-content {
    padding: 0px;
}

#a-text-to-speech-box .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#a-text-to-speech-box .modal-title {
    display: block;
    margin: 0;
    font-size: 1.0rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

#a-text-to-speech-box .modal-close {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

#a-text-to-speech-box .modal-close:hover {
    color: #ef4444;
}

#a-text-to-speech-box .modal-body {
    margin: 10px;
    margin-bottom: 24px;
}

#a-text-to-speech-box #atts-modal-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #4b5563;
    white-space: pre-line;
}

#a-text-to-speech-box .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 10px;
}

#a-text-to-speech-box .modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

#a-text-to-speech-box .modal-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

#a-text-to-speech-box .modal-btn-cancel:hover {
    background: #e5e7eb;
}

#a-text-to-speech-box .modal-btn-confirm {
    background: #4353ff;
    color: #ffffff;
}

#a-text-to-speech-box .modal-btn-confirm:hover {
    background: #3644dd;
}