* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ヘッダー */
header {
    background-color: #111827;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* メイン 2列レイアウト */
.container {
    display: flex;
    flex: 1;
    height: calc(100vh - 49px);
}

/* 左側: エディタエリア */
.editor-section {
    width: 35%;
    background-color: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.section-header {
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

textarea {
    width: 100%;
    flex: 1;
    background-color: transparent;
    color: #e2e8f0;
    border: none;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

/* 右側: SVG プレビューエリア */
.preview-section {
    width: 65%;
    background-color: #080c14;
    display: flex;
    flex-direction: column;
    position: relative;
}

.svg-container {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

svg {
    background-color: transparent;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}