/* static/css/wakuwakuyoyaku_modal.css */

/* モーダルのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* モーダルヘッダー */
.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #2b5fac;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #2b5fac;
    font-weight: bold;
}

.user-email {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* モーダルボディ */
.modal-body {
    padding: 30px;
}

/* 情報メッセージエリア */
.modal-info {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.modal-info p {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.modal-info-detail {
    margin-top: 10px;
}

.modal-info-detail small {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* モーダルフッター */
.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* 実行ボタン（再送ボタン） */
.btn-select {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff !important;
    background-color: #2b5fac !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
}

.btn-select:hover {
    background-color: #234a8a !important;
    color: #ffffff !important;
}

.btn-select:active {
    background-color: #1d3e73 !important;
    transform: translateY(1px);
}

.btn-select:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* キャンセルボタン */
.btn-cancel {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #333 !important;
    background-color: #e0e0e0 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
}

.btn-cancel:hover {
    background-color: #d0d0d0 !important;
    color: #333 !important;
    border-color: #bbb !important;
}

.btn-cancel:active {
    background-color: #c0c0c0 !important;
    transform: translateY(1px);
}

.btn-cancel:focus {
    outline: 2px solid #2b5fac;
    outline-offset: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-info-detail small {
        font-size: 12px;
    }
    
    .modal-footer {
        gap: 10px;
    }
    
    .btn-select,
    .btn-cancel {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-select,
    .btn-cancel {
        width: 100%;
        padding: 14px 20px;
    }
}