:root {
    --bg-primary: #313338;     /* メイン背景 */
    --bg-secondary: #2b2d31;   /* チャンネルリスト背景 */
    --bg-tertiary: #1e1f22;    /* サーバーリスト背景 */
    --bg-modifier-hover: rgba(78, 80, 88, 0.48);
    --bg-modifier-active: rgba(78, 80, 88, 0.6);
    --text-normal: #dbdee1;
    --text-muted: #949ba4;
    --header-primary: #f2f3f5;
    --brand-color: #5865F2;    /* Discordブルー */
    --brand-color-hover: #4752C4;
    --danger-color: #da373c;
    --divider-color: #1e1f22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-normal);
    height: 100vh;
    overflow: hidden;
}

/* 全体のレイアウト (3カラム) */
.app-container {
    display: flex;
    height: 100vh;
}

/* 1. サーバーリスト (一番左) */
.guild-sidebar {
    width: 72px;
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    overflow-y: auto;
}

.guild-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-normal);
    font-size: 24px;
}

.guild-icon:hover {
    border-radius: 30%;
    background-color: var(--brand-color);
    color: white;
}

.guild-icon.active {
    border-radius: 30%;
    background-color: var(--brand-color);
    color: white;
}

.home-btn {
    color: var(--text-normal);
}

.separator {
    width: 32px;
    height: 2px;
    background-color: var(--divider-color);
    margin: 8px 0;
    border-radius: 1px;
}

.guild-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 2. チャンネルリスト (中央) */
.channels-sidebar {
    width: 240px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.server-header {
    height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.server-header h1 {
    font-size: 16px;
    color: var(--header-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-list {
    padding: 8px;
    overflow-y: auto;
    flex-grow: 1;
}

.empty-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

.channel-item:hover {
    background-color: var(--bg-modifier-hover);
    color: var(--text-normal);
}

.channel-item i {
    margin-right: 8px;
    font-size: 18px;
}

/* 3. メインコンテンツ (右側) */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

.content-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-info {
    display: flex;
    align-items: center;
}

.hashtag {
    color: var(--text-muted);
    font-size: 24px;
    margin-right: 8px;
    font-weight: 300;
}

.content-header h2 {
    color: var(--header-primary);
    font-size: 16px;
    font-weight: 600;
}

.editor-body {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ウェルカム画面 / 空画面 */
.welcome-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.welcome-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.welcome-view h2 {
    color: var(--header-primary);
    margin-bottom: 12px;
}

.welcome-view p {
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ボタン共通 */
.action-btn {
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background-color: var(--brand-color-hover);
}
