/* シフト作成ツール カスタムスタイル */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/**
 * たまごシフト - カスタムスタイルシート
 */

/* 全体のスタイル */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', 'Meiryo', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ヘッダースタイル */
.navbar-brand {
    font-weight: bold;
}

/* カード装飾 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* ホーム画面アクションカード */
.home-action-card {
    height: 100%;
    text-align: center;
    padding: 2rem 1rem;
}

.home-action-card .bi {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.home-action-card:hover .bi {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* ボタンスタイル */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ウィザードステップ表示 */
.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-progress .progress {
    height: 0.8rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.wizard-progress .progress-bar {
    border-radius: 1rem;
    background-color: var(--primary-color);
}

.wizard-steps-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.wizard-step {
    position: relative;
    text-align: center;
    flex: 1;
    color: #6c757d;
}

.wizard-step.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* フォーム要素 */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.help-text {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-text {
    font-size: 0.8rem;
}

/* シフトテーブル */
.shift-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.shift-table th, .shift-table td {
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

.shift-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.shift-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* シフト種類表示 */
.shift-type-badge {
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.shift-type-早番 {
    background-color: #cfe2ff;
    color: #084298;
}

.shift-type-日勤 {
    background-color: #d1e7dd;
    color: #0f5132;
}

.shift-type-夜勤 {
    background-color: #f8d7da;
    color: #842029;
}

.shift-type-休 {
    background-color: #e2e3e5;
    color: #41464b;
}

/* フォームアクション領域 */
.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* アラート */
.alert {
    border-radius: 0.5rem;
}

/* モーダル */
.modal-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modal-footer {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .home-action-card {
        padding: 1.5rem 0.75rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }

    .wizard-steps-text {
        font-size: 0.7rem;
    }
    
    .shift-table {
        font-size: 0.8rem;
    }
    
    .shift-type-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ツールチップ */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}