/* Form Specific Styles */

/* Date input and localization styling */
input[type="date"],
input[type="datetime-local"] {
    min-width: 180px;
}

.date-display-label {
    font-family: 'Noto Sans JP', sans-serif;
}

/* Thai Language Styles - Prevent text clipping */
html[lang="th"] .btn,
html[lang="th"] .radio-card .card-content {
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 42px;
}

html[lang="th"] label {
    line-height: 1.6;
}

html[lang="th"] .form-control {
    min-height: 38px;
}

/* Fixed width for action buttons */
.action-buttons .btn {
    min-width: 100px;
    padding: 12px 16px;
    font-size: 1rem;
}

/* Layout stability for step headers */
.step-header h3 {
    min-width: 200px;
}

/* Form-only: compact card width */
.glass-card {
    max-width: 550px;
    width: 95%;
    margin: 0 auto;
}

/* --- 1. ロゴとヘッダーの完全修正 --- */
.app-header,
.header-top {
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
}

.brand-logo-text {
    font-size: 2.5rem !important;
    /* ロゴを大きく */
    margin: 0 !important;
    line-height: 1 !important;
}

/* --- ボタンの共通スタイル --- */
.btn {
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #00e5ff;
    background: transparent;
    color: #fff;
    display: block;
}

/* --- 2. ボタン幅の統一（300px） --- */
.btn.main-btn {
    width: 300px !important;
    /* 登録・登録せずに始めるボタンを同じ幅に */
    display: block !important;
    margin: 0 auto !important;
}

/* --- 3. ログインボタン（右上）の調整 --- */
.header-login-btn {
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* --- 4. 言語選択の枠線・サイズ復元 --- */
#welcomeLangSelect {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    width: 250px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ツールチップ（吹き出し）の右側表示 */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #00e5ff;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    left: 110%;
    /* 右側に表示 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #00e5ff transparent transparent;
}

.btn-primary {
    background: #00e5ff !important;
    color: #000 !important;
}

.btn-primary:hover {
    background: #00b8cc !important;
}

.btn-secondary {
    color: #fff !important;
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1) !important;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* =========================================
   Customer Large Modal (Reservation Status)
   ========================================= */
.customer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.customer-modal-overlay.hidden {
    display: none !important;
}

.customer-large-modal {
    background: rgba(15, 25, 45, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    width: min(1180px, 94vw);
    height: min(860px, 92vh);
    display: flex;
    flex-direction: column;
    padding: 25px;
    color: #fff;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

.customer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.customer-modal-body-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding-right: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Custom scrollbar for modal */
.customer-modal-body-scroll::-webkit-scrollbar {
    width: 8px;
}
.customer-modal-body-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.customer-modal-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 4px;
}
.customer-modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.6);
}

.auth-step-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-sizing: border-box;
    width: 100%;
}

/* Compact Reservation Card Layout */
.res-card {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    border-left: 5px solid #00e5ff;
    transition: all 0.2s ease;
    overflow-x: hidden;
}

.res-card:hover {
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.res-card.canceled {
    border-left-color: #666;
    opacity: 0.8;
}

.res-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.res-card-top-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.res-card-top-right {
    flex-shrink: 0;
    text-align: right;
}

.res-card-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
    box-sizing: border-box;
}

.res-card-item {
    display: flex;
    flex-direction: column;
}

.res-card-label {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 2px;
    white-space: nowrap;
}

.res-card-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.res-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}
.res-status-badge.active {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border: 1px solid #00e5ff;
}
.res-status-badge.canceled {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid #888;
}

.res-price-large {
    font-size: 1.4rem;
    color: #00e5ff;
    font-weight: bold;
    white-space: nowrap;
}

.res-card-actions {
    margin-top: 12px;
    width: 100%;
}

.btn-cancel-outline {
    width: 100%;
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cancel-outline:hover {
    background: rgba(255, 77, 77, 0.1);
}

.res-cancellation-reason {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .customer-large-modal {
        width: 96vw;
        height: 94vh;
        padding: 15px;
    }
    
    .res-card-top {
        flex-direction: column;
    }
    .res-card-top-right {
        text-align: left;
    }
    
    .res-card-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
