/**
 * MyPage Styles - 마이페이지 카드 기반 디자인
 */

/* ==========================================================================
   기본 컨테이너
   ========================================================================== */
   .mypage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================================================
   헤더 영역
   ========================================================================== */
.mypage-header {
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 3px solid #a01749;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #a01749;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   탭 네비게이션 - 원래 디자인 복원
   ========================================================================== */
.mypage-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    height: 50px;
    background: #919191;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn:hover {
    background: #a01749;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 23, 73, 0.3);
}

.tab-btn.active {
    background: #a01749;
    box-shadow: 0 4px 12px rgba(160, 23, 73, 0.3);
}

/* ==========================================================================
   관리자 알림
   ========================================================================== */
.admin-notice {
    margin: 0 15px 15px 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

.admin-notice-all {
    background-color: #f0f8f0;
    color: #2d5a2d;
    border: 1px solid #d4edda;
}

.admin-notice-partial {
    background-color: #fff8f0;
    color: #8b4513;
    border: 1px solid #ffeaa7;
}

/* ==========================================================================
   예약 카드 컨테이너
   ========================================================================== */
.reservations-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}

.reservation-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* ==========================================================================
   카드 헤더
   ========================================================================== */
.card-header {
    background: #fafafa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reservation-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.reservation-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-individual {
    background-color: #a01749;
    color: white;
}

.badge-group {
    background-color: #6c757d;
    color: white;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #444;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

/* ==========================================================================
   카드 본문
   ========================================================================== */
.card-body {
    padding: 12px 15px;
}

.reservation-items {
    margin-bottom: 10px;
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.reservation-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 2;
}

.item-name {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
}

.item-date {
    font-size: 13px;
    color: #555;
}

.item-details {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    text-align: right;
}

.item-price,
.item-total {
    min-width: 100px;
    text-align: right;
}

.item-quantity {
    font-size: 14px;
    color: #555;
    text-align: right;
    min-width: 60px;
}

.item-total {
    font-weight: 600;
    color: #a01749;
}

/* ==========================================================================
   결제 정보
   ========================================================================== */
.payment-info {
    background-color: #fafafa;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #a01749;
}

.payment-methods {
    display: flex;
    gap: 5px;
}

.payment-method {
    padding: 2px 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.payment-total {
    font-size: 15px;
    font-weight: 600;
    color: #a01749;
    margin-bottom: 4px;
}

.processing-date {
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

/* ==========================================================================
   가상계좌 정보
   ========================================================================== */
.virtual-account {
    background-color: #f0f0f8;
    border: 1px solid #d0d0e8;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #4a4a8a;
}

.virtual-account.expired {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.account-info {
    font-size: 13px;
    color: #4a4a8a;
    margin-bottom: 2px;
}

.account-info.expired {
    color: #721c24;
}

.account-info:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   액션 버튼
   ========================================================================== */
.card-actions {
    padding: 10px 15px;
    background-color: #fafafa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 70px;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.btn-receipt {
    background-color: #a01749;
    color: white!important;
}

.btn-receipt:hover {
    background-color: #8a1440;
}

.btn-modify {
    background-color: #28a745;
    color: white;
}

.btn-modify:hover {
    background-color: #218838;
}

/* ==========================================================================
   복합결제 상세 내역
   ========================================================================== */
.payment-details {
    background-color: #f8f0f8;
    border: 1px solid #e8d0e8;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.payment-details-title {
    font-weight: 500;
    color: #a01749;
    font-size: 14px;
    margin-bottom: 4px;
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0e0f0;
}

.payment-detail-item:last-child {
    border-bottom: none;
}

.detail-method {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.detail-amount {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #a01749;
}

.detail-date {
    flex: 1;
    text-align: right;
    color: #444;
}

/* ==========================================================================
   카드 사용 내역
   ========================================================================== */
.card-usage {
    background-color: #f0f8f0;
    border: 1px solid #d0e8d0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.card-usage-title {
    font-weight: 500;
    color: #2d5a2d;
    font-size: 14px;
    margin-bottom: 4px;
}

.card-usage-item {
    font-size: 13px;
    color: #2d5a2d;
    margin-bottom: 2px;
}

.card-usage-item:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   가상계좌 결제 내역
   ========================================================================== */
.virtual-payment {
    background-color: #f0f0f8;
    border: 1px solid #d0d0e8;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.virtual-payment-title {
    font-weight: 500;
    color: #4a4a8a;
    font-size: 14px;
    margin-bottom: 4px;
}

.virtual-payment-item {
    font-size: 13px;
    color: #4a4a8a;
    margin-bottom: 2px;
}

.virtual-payment-item:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   환불수단 정보
   ========================================================================== */
.refund-method {
    background-color: #f8f0f0;
    border: 1px solid #e8d0d0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #a01749;
}

.refund-method-title {
    font-weight: 500;
    color: #a01749;
    font-size: 14px;
    margin-bottom: 4px;
}

.refund-method-item {
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
}

.refund-method-item:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   혜택권 사용 내역
   ========================================================================== */
.coupon-usage {
    background-color: #f0f8f8;
    border: 1px solid #d0e8e8;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.coupon-title {
    font-weight: 500;
    color: #2d5a5a;
    margin-bottom: 4px;
    font-size: 14px;
}

.coupon-item {
    font-size: 13px;
    color: #2d5a5a;
    margin-bottom: 2px;
    padding: 1px 0;
}

.coupon-item:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   상태 표시
   ========================================================================== */
.status-partial-cancel {
    color: #dc3545;
    font-weight: 500;
    font-size: 13px;
}

.cancel-memo {
    font-size: 13px;
    color: #333;
}

/* ==========================================================================
   빈 상태
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
    margin: 0 15px;
}

.empty-state h3 {
    color: #a01749;
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #868e96;
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   반응형 디자인
   ========================================================================== */
@media (max-width: 768px) {
    .mypage-container {
        padding: 10px;
    }
    
    .mypage-tabs {
        flex-direction: column;
        gap: 5px;
        padding: 0 10px;
    }
    
    .tab-btn {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .reservation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .item-details {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    
    .payment-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .detail-method,
    .detail-amount,
    .detail-date {
        flex: none;
        text-align: left;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
    }
    
    input[type="image"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }
    
    .reservation-number {
        font-size: 15px;
    }
    
    .payment-total {
        font-size: 14px;
    }
}

/* 기존 이미지 버튼 스타일 개선 */
input[type="image"] {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background-color: #a01749;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type="image"]:hover {
    background-color: #8a1440;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(160, 23, 73, 0.3);
}

/* 마이페이지 전용 스타일 클래스 */
.mypage-style1 {
    color: #a01749;
    font-weight: bold;
    font-size: 15px;
    line-height: 150%;
    text-align: justify;
}

.mypage-style2 {
    color: #a01749;
    line-height: 150%;
    text-align: justify;
}

.mypage-style-coupon {
    color: #a01749;
    font-weight: bold;
    font-size: 12px;
    line-height: 150%;
    text-align: justify;
} 