/**
 * Apology Modal Component Styles
 *
 * Purpose: 청구서 오발송 사과 모달
 * Features:
 * - 특정 user_id에게만 표시
 * - 한 번만 표시 (localStorage 저장)
 *
 * Version: 1.0.2 - 가독성 개선
 * Created: 2026-01-04
 */

/* ===== Modal Overlay ===== */
.apology-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.apology-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== Modal Content ===== */
.apology-modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 32px;
    border-radius: 16px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    color: #1f2937;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* ===== Header ===== */
.apology-modal-content .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.apology-modal-content .header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apology-modal-content .close-btn {
    background: #f3f4f6;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.apology-modal-content .close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ===== Body ===== */
.apology-modal-content .body {
    text-align: left;
}

.apology-modal-content .body p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.apology-modal-content .body p:last-child {
    margin-bottom: 0;
}

.apology-modal-content .body p.thanks {
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.apology-modal-content .body strong {
    color: #dc2626;
    font-weight: 600;
}

/* ===== Confirm Button ===== */
.apology-confirm-btn {
    margin-top: 24px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.apology-confirm-btn:hover {
    background: #2563eb;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .apology-modal-content {
        padding: 24px 20px;
        margin: 16px;
    }

    .apology-modal-content .header h2 {
        font-size: 18px;
    }

    .apology-modal-content .body p {
        font-size: 14px;
        line-height: 1.7;
    }
}
