/* /Layout/MainLayout.razor.rz.scp.css */
/* ChatApp 3カラムレスポンシブレイアウト */
/* Requirements: 15.1, 15.2, 15.3 */

/* レイアウトコンテナ */
.kc-layout[b-tomhyylm5t] {
    display: grid;
    grid-template-columns: 260px 1fr 0;
    grid-template-rows: 1fr;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 詳細パネル表示時 */
.kc-layout:has(.kc-detail:not(.detail-hidden))[b-tomhyylm5t] {
    grid-template-columns: 260px 1fr 360px;
}

/* モバイルヘッダー（サイドバーより上に重ねる） */
.kc-mobile-header[b-tomhyylm5t] {
    display: none;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #350d36;
    color: white;
    grid-column: 1 / -1;
    position: relative;
    z-index: 200;
    min-height: 52px;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.kc-menu-toggle[b-tomhyylm5t] {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.kc-menu-toggle:hover[b-tomhyylm5t] {
    background: rgba(255, 255, 255, 0.1);
}

.kc-menu-toggle:active[b-tomhyylm5t] {
    background: rgba(255, 255, 255, 0.2);
}

.kc-header-title[b-tomhyylm5t] {
    margin-left: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.kc-header-user[b-tomhyylm5t] {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* サイドバーバックドロップ（モバイル時サイドバー外タップで閉じる） */
.kc-sidebar-backdrop[b-tomhyylm5t] {
    display: none;
}

/* サイドバー: 左側全体 (Slack風ダークサイドバー) */
.kc-sidebar[b-tomhyylm5t] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #3f0e40;
    color: #cfc3cf;
    border-right: none;
    overflow: hidden;
    transition: width 0.2s ease, transform 0.2s ease;
}

.kc-sidebar-header[b-tomhyylm5t] {
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.kc-sidebar-header h2[b-tomhyylm5t] {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.kc-sidebar-user[b-tomhyylm5t] {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2px;
}

.kc-sidebar-content[b-tomhyylm5t] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
}

.kc-sidebar-footer[b-tomhyylm5t] {
    flex-shrink: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.kc-settings-btn[b-tomhyylm5t] {
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.12s;
}

.kc-settings-btn:hover[b-tomhyylm5t] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.kc-signout-btn[b-tomhyylm5t] {
    width: 100%;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.12s;
}

.kc-signout-btn:hover[b-tomhyylm5t] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* 通知トグルボタン */
.kc-notification-toggle-btn[b-tomhyylm5t] {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 6px;
    margin-left: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.12s;
}

.kc-notification-toggle-btn:hover[b-tomhyylm5t] {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* 通知パネルオーバーレイ */
.kc-notification-overlay[b-tomhyylm5t] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    z-index: 110;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0,0,0,.15);
    overflow-y: auto;
}

.kc-loading[b-tomhyylm5t] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.2rem;
    color: #666;
}

/* メインコンテンツ */
.kc-main[b-tomhyylm5t] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--rz-base-background, #ffffff);
}

/* 詳細パネル */
.kc-detail[b-tomhyylm5t] {
    background: var(--rz-base-50, #f8fafc);
    border-left: 1px solid var(--rz-base-200, #e2e8f0);
    overflow-y: auto;
    transition: width 0.2s ease;
}

.kc-detail.detail-hidden[b-tomhyylm5t] {
    display: none;
}

.kc-detail-content[b-tomhyylm5t] {
    padding: 1rem;
}

/* ==================== */
/* レスポンシブ: タブレット */
/* ==================== */
@media (max-width: 1024px) {
    .kc-layout[b-tomhyylm5t] {
        grid-template-columns: 220px 1fr 0;
    }

    .kc-layout:has(.kc-detail:not(.detail-hidden))[b-tomhyylm5t] {
        grid-template-columns: 220px 1fr 300px;
    }
}

/* ==================== */
/* レスポンシブ: モバイル (15.3) */
/* ==================== */
@media (max-width: 768px) {
    .kc-mobile-header[b-tomhyylm5t] {
        display: flex;
    }

    .kc-layout[b-tomhyylm5t] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .kc-layout:has(.kc-detail:not(.detail-hidden))[b-tomhyylm5t] {
        grid-template-columns: 1fr;
    }

    /* サイドバー: モバイル時はヘッダー下からのオーバーレイ */
    .kc-sidebar[b-tomhyylm5t] {
        position: fixed;
        top: 52px;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        z-index: 150;
        transform: translateX(0);
        transition: transform 0.2s ease;
        box-shadow: 2px 0 16px rgba(0,0,0,.3);
    }

    .kc-sidebar.sidebar-collapsed[b-tomhyylm5t] {
        transform: translateX(-100%);
        box-shadow: none;
    }

    /* バックドロップ: サイドバーを閉じるためのタップ領域 */
    .kc-sidebar-backdrop[b-tomhyylm5t] {
        display: block;
        position: fixed;
        top: 52px;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 140;
        animation: kc-fade-in-b-tomhyylm5t 0.2s ease;
    }

    @keyframes kc-fade-in-b-tomhyylm5t {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* メイン領域にスクロール吸収領域を確保 */
    .kc-main[b-tomhyylm5t] {
        min-height: 0;
        overflow: hidden;
    }

    /* 詳細パネル: モバイル時はヘッダー下からのフルスクリーンオーバーレイ */
    .kc-detail:not(.detail-hidden)[b-tomhyylm5t] {
        position: fixed;
        top: 52px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
    }

    /* 通知・検索オーバーレイもヘッダー下に */
    .kc-notification-overlay[b-tomhyylm5t] {
        top: 52px;
        width: 100vw;
    }
}

/* 小型モバイル: iPhone SE 等 */
@media (max-width: 380px) {
    .kc-header-user[b-tomhyylm5t] {
        display: none;
    }
    .kc-sidebar[b-tomhyylm5t] {
        width: 88vw;
    }
}
/* /Pages/Login.razor.rz.scp.css */
.kc-login-container[b-1kc1f9a8h9] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kc-login-card[b-1kc1f9a8h9] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.kc-login-title[b-1kc1f9a8h9] {
    font-size: 28px;
    font-weight: 700;
    color: #1a56db;
    margin: 0 0 4px;
    text-align: center;
}

.kc-login-subtitle[b-1kc1f9a8h9] {
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    font-size: 14px;
}

.kc-login-error[b-1kc1f9a8h9] {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.kc-form-group[b-1kc1f9a8h9] {
    margin-bottom: 16px;
}

.kc-form-group label[b-1kc1f9a8h9] {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.kc-input[b-1kc1f9a8h9] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.kc-input:focus[b-1kc1f9a8h9] {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.kc-btn-primary[b-1kc1f9a8h9] {
    width: 100%;
    padding: 12px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.kc-btn-primary:hover:not(:disabled)[b-1kc1f9a8h9] {
    background: #1e40af;
}

.kc-btn-primary:disabled[b-1kc1f9a8h9] {
    opacity: 0.6;
    cursor: not-allowed;
}

.kc-login-toggle[b-1kc1f9a8h9] {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.kc-login-toggle a[b-1kc1f9a8h9] {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
}

.kc-login-devinfo[b-1kc1f9a8h9] {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.kc-login-devinfo details[b-1kc1f9a8h9] {
    font-size: 12px;
    color: #9ca3af;
}

.kc-login-devinfo summary[b-1kc1f9a8h9] {
    cursor: pointer;
    font-weight: 600;
}

.kc-login-devinfo p[b-1kc1f9a8h9] {
    margin: 4px 0;
}

.kc-login-devinfo code[b-1kc1f9a8h9] {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}
