/* 基本設定 */
:root {
    --primary-color: #0073aa;
    --secondary-color: #d63384;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 全体コンテナ */
.tc-container {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 80vh;
    align-items: stretch;
}

/* 共通：内枠スタイル */
.tc-staff-list,
.tc-main-inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
}

/* 左側：スタッフリスト */
.tc-staff-list {
    flex: 0 0 280px;
    max-height: 85vh;
    overflow-y: auto;
}

.tc-staff-list h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

/* スタッフカード */
.staff-card {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fdfdfd; /* わずかにオフホワイト */
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    background-color: #f8fbff; /* 淡いブルー */
}

.staff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border-color: #ccd9e5;
}

.staff-card.active {
    background: #eef7ff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.12);
}

.staff-card .staff-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* 右側：メインパネル */
.tc-main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tc-main-inner {
    flex: 1;
    gap: 15px;
}

/* 各表示エリア */
#tc-display-area {
    text-align: center;
    padding: 10px 0;
}

#real-time-date {
    font-size: 1.2rem;
    color: var(--gray-color);
    font-weight: 500;
}

#real-time-clock {
    font-size: 4rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin: 10px 0;
    font-variant-numeric: tabular-nums;
}

#today-status-display {
    display: inline-block;
    background: #eef7ff;
    color: #0056b3;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #b3d7ff;
}

/* 打刻ボタン */
.tc-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tc-btn {
    padding: 22px 10px;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tc-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-in {
    background: linear-gradient(to bottom, #2ecc71, #28a745);
}

.btn-out {
    background: linear-gradient(to bottom, #fa5252, #dc3545);
}

.btn-break {
    background: linear-gradient(to bottom, #4dabf7, #17a2b8);
}

.btn-break:nth-of-type(3) {
    background: linear-gradient(to bottom, #ffcc33, #ffc107);
    color: #333;
    text-shadow: none;
}

/* アコーディオン */
.tc-acc-item {
    margin-bottom: 10px;
}

.tc-acc-btn {
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.tc-acc-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 有給予定 */
.upcoming-leaves-container {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    border-radius: 8px;
}

/* レスポンシブ */
@media (max-width: 480px) {
    .tc-container {
        flex-direction: column;
        padding: 12px;
    }

    .tc-staff-list {
        flex: none;
        width: 100%;
        max-height: 250px;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .tc-staff-list {
        flex: 0 0 220px;
    }

    .tc-btn {
        font-size: 1.2rem;
        padding: 18px 5px;
    }

    #real-time-clock {
        font-size: 3rem;
    }
}

/* 無効化されたボタン */
.tc-btn:disabled {
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(1) opacity(0.5);
    cursor: not-allowed;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    margin-top: 4px;
}

.status-working {
    background: var(--success-color);
}

.status-on-break {
    background: var(--warning-color);
    color: #333 !important;
}

.status-clocked-out {
    background: var(--danger-color);
}

.status-none {
    background: var(--gray-color);
}