@charset "UTF-8";

body {
    font-family: 'IBM Plex Sans JP', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    color: #2d3748;
}

/* ログイン画面用 */
.login-body {
    background: #f0f2f5;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.login-box h2 {
    margin-top: 0;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.error {
    color: #e53e3e;
    font-size: 0.9rem;
}

/* メインレイアウト */
.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #edf2f7;
    width: 100%;
}

/* ツールバー */
.toolbar {
    padding: 0.8rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* エディタエリア */
.editor-area {
    flex-grow: 1;
    padding: 1.5rem 1.5rem 7rem 1.5rem;
    display: flex;
    overflow: hidden;
}

textarea {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    border-color: #4d7ea8;
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #a0aec0;
}

/* 下部バー */
.bottom-bar {
    background: white;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
}

/* ボタン類 */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4d7ea8;
    color: white;
    width: 100%;
}

.btn-save {
    background: #48bb78;
    color: white;
}

.btn-wide {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn:hover {
    opacity: 0.9;
}

/* ステータスメッセージ */
.status-msg {
    font-size: 0.9rem;
    font-weight: bold;
}

.fade-out {
    opacity: 0;
    transition: opacity 2s;
}