/* ========================================
   Photo Studio - Custom Styles
   ======================================== */

:root {
    --ps-primary: #8B4513;
    --ps-primary-light: #A0522D;
    --ps-secondary: #D2691E;
    --ps-accent: #CD853F;
    --ps-bg: #FFF8F0;
    --ps-card-bg: #FFFFFF;
    --ps-text: #333333;
    --ps-text-light: #666666;
    --ps-border: #E8D5C4;
    --ps-success: #28a745;
    --ps-warning: #ffc107;
    --ps-danger: #dc3545;
}

body {
    background-color: var(--ps-bg);
    color: var(--ps-text);
    font-family: 'Noto Sans JP', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ヘッダー */
.ps-header {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-secondary));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.ps-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.ps-header p {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0;
}

/* 言語切替 */
.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lang-switcher .btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.lang-switcher .btn.active,
.lang-switcher .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* ステッパー */
.ps-stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.ps-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--ps-text-light);
    position: relative;
}

.ps-step::after {
    content: '›';
    margin-left: 0.5rem;
    color: #ccc;
    font-size: 1.2rem;
}

.ps-step:last-child::after {
    content: '';
}

.ps-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.ps-step.active .step-num {
    background: var(--ps-primary);
}

.ps-step.active {
    color: var(--ps-primary);
    font-weight: 600;
}

.ps-step.completed .step-num {
    background: var(--ps-success);
}

.ps-step.completed {
    color: var(--ps-success);
}

/* カード */
.ps-card {
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.ps-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ps-card.selected {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 2px var(--ps-primary);
}

.ps-card.clickable {
    cursor: pointer;
}

.ps-card.clickable:hover {
    border-color: var(--ps-primary-light);
    transform: translateY(-2px);
}

/* カテゴリカード */
.category-card {
    text-align: center;
    padding: 1rem 0.5rem;
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 0.3rem;
}

.category-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .category-card {
        padding: 0.6rem 0.3rem;
    }
    .category-icon {
        width: 48px;
        height: 48px;
    }
    .category-card h3 {
        font-size: 0.8rem;
    }
}

/* プランカード */
.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-card .plan-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.plan-card .plan-info p {
    font-size: 0.85rem;
    color: var(--ps-text-light);
    margin-bottom: 0;
}

.plan-card .plan-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ps-primary);
    white-space: nowrap;
}

/* オプションカード */
.option-card {
    padding: 1rem 1.5rem;
}

.option-card .form-check-label {
    font-weight: 600;
}

.option-card .option-desc {
    font-size: 0.85rem;
    color: var(--ps-text-light);
}

.option-card .option-price {
    font-weight: 600;
    color: var(--ps-primary);
}

/* カレンダー */
.ps-calendar {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ps-border);
    padding: 1.5rem;
}

.ps-calendar .cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ps-calendar .cal-header h4 {
    margin: 0;
    font-weight: 600;
}

.ps-calendar .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ps-calendar .cal-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ps-text-light);
    padding: 0.3rem 0;
}

.ps-calendar .cal-day {
    text-align: center;
    padding: 0.6rem 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.ps-calendar .cal-day:hover:not(.disabled):not(.empty) {
    background: var(--ps-accent);
    color: white;
}

.ps-calendar .cal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.ps-calendar .cal-day.empty {
    cursor: default;
}

.ps-calendar .cal-day.selected {
    background: var(--ps-primary);
    color: white;
    font-weight: 600;
}

.ps-calendar .cal-day.today {
    border: 2px solid var(--ps-accent);
}

.ps-calendar .cal-day.sunday {
    color: var(--ps-danger);
}

.ps-calendar .cal-day.saturday {
    color: #0d6efd;
}

.ps-calendar .cal-day.disabled.sunday,
.ps-calendar .cal-day.disabled.saturday {
    opacity: 0.4;
}

/* タイムスロット */
.time-slots {
    margin-top: 1.5rem;
}

.time-slot-btn {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.time-slot-btn .slot-time {
    font-weight: 600;
}

.time-slot-btn .slot-status {
    font-size: 0.75rem;
    display: block;
}

/* 確認画面 */
.confirm-table th {
    width: 30%;
    background: #f8f4ef;
    vertical-align: top;
}

.confirm-table .total-row th,
.confirm-table .total-row td {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ps-primary);
    background: #fff3e6;
}

/* 完了画面 */
.success-box {
    text-align: center;
    padding: 3rem 1.5rem;
}

.success-box .success-icon {
    font-size: 4rem;
    color: var(--ps-success);
    margin-bottom: 1rem;
}

.success-box h2 {
    color: var(--ps-success);
    margin-bottom: 1rem;
}

.success-box .reservation-id {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ps-primary);
    background: #f8f4ef;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
}

/* ナビゲーションボタン */
.ps-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
}

.ps-nav .btn {
    min-width: 120px;
}

.btn-ps-primary {
    background-color: var(--ps-primary);
    border-color: var(--ps-primary);
    color: white;
}

.btn-ps-primary:hover {
    background-color: var(--ps-primary-light);
    border-color: var(--ps-primary-light);
    color: white;
}

.btn-ps-outline {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
}

.btn-ps-outline:hover {
    background-color: var(--ps-primary);
    color: white;
}

/* プランの説明文 */
.plan-note {
    background: #f8f4ef;
    border-left: 4px solid var(--ps-accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--ps-text-light);
    margin-top: 1rem;
}

/* エラー表示 */
.error-message {
    color: var(--ps-danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* 必須ラベル */
.required-mark::after {
    content: ' *';
    color: var(--ps-danger);
    font-weight: 700;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ps-header h1 {
        font-size: 1.4rem;
    }

    .ps-stepper {
        gap: 0;
        padding: 1rem 0;
    }

    .ps-step {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .ps-step .step-label {
        display: none;
    }

    .plan-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lang-switcher {
        position: static;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ========================================
   管理者画面スタイル
   ======================================== */

.admin-sidebar {
    min-height: 100vh;
    background: #2c3e50;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

.admin-content {
    min-height: 100vh;
    background: #f5f6fa;
}

.admin-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    color: var(--ps-text-light);
    font-size: 0.85rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}
