/* ===============================================
   Laravel版 追加スタイル（デモUIの補完）
   =============================================== */

/* サイドバー下部（ユーザー情報・ログアウト） */
.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.sidebar-footer .user-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-name i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.sidebar-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer .footer-links form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar-footer a,
.sidebar-footer button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #dfe6e9;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.3;
}

.sidebar-footer a:hover,
.sidebar-footer button:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* サイドバーのリンクを nav-item として使う */
.nav-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* 汎用カード */
.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.content-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* フラッシュメッセージ */
.flash-area {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* フォーム（モーダル外でも使えるように） */
.form-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 640px;
}

.form-card form {
    padding: 25px;
}

/* Reactボードのツールバー */
.board-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
}

.board-toolbar .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.shift-columns .shift-column {
    min-height: 320px;
}

/* 配置ボード：フィルターがスタッフカードに隠れないようにする */
.staff-pool {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.staff-pool .filter-bar {
    flex-direction: column;
    position: relative;
    z-index: 30;
}

.staff-pool .filter-bar select {
    width: 100%;
    background: #fff;
    z-index: 31;
}

.staff-pool .staff-cards {
    z-index: 1;
    isolation: isolate;
}

.staff-pool .staff-card {
    /* hover transform が select の開閉表示と重なるのを防ぐ */
    position: relative;
    z-index: 1;
}

.staff-pool .staff-card:hover {
    z-index: 2;
    transform: none;
}

/* 配置ボード用グリッド */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.board-cell {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.board-cell .cell-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-cell select {
    width: 100%;
}

.assigned-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.assigned-chip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.assigned-chip.proposed {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.assigned-chip.approved,
.assigned-chip.sent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* ステップガイド（ダッシュボード） */
.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.step-list a:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.step-list .step-no {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ログイン画面 */
body.guest-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--sidebar-bg);
}

.guest-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 35px;
}

.guest-card .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.guest-card .brand i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.guest-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
}

/* ページネーション（Laravel標準の見た目調整） */
nav[role="navigation"] {
    margin-top: 15px;
}

/* テーブル内ボタン等 */
.data-table form {
    padding: 0;
    display: inline;
}

/* マイシフトカード */
.myshift-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
}

.myshift-card.morning { border-left-color: var(--morning-color); }
.myshift-card.afternoon { border-left-color: var(--afternoon-color); }
.myshift-card.night { border-left-color: var(--night-color); }

.myshift-card .date {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.myshift-card .meta {
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

/* プロフィールなど Breeze 画面の下地 */
.plain-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .sidebar-footer {
        padding: 10px 8px;
    }

    .sidebar-footer .user-name span,
    .sidebar-footer a span,
    .sidebar-footer button span {
        display: none;
    }

    .sidebar-footer a,
    .sidebar-footer button {
        justify-content: center;
        padding: 10px;
    }
}
