/* ============================================================
   Saram Playground Styles
   ============================================================ */

.saram-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.saram-header {
    text-align: center;
    margin-bottom: 2rem;
}

.saram-header .breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.saram-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.saram-header .breadcrumb a:hover {
    text-decoration: underline;
}

.saram-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.saram-header p {
    font-size: 1rem;
    color: #666;
}

/* Session Bar */
.session-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.session-indicator {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: #f5f6f8;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
}

/* History patch ID badge */
.history-patch-id {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: #8892a4;
    background: #edf0f5;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    letter-spacing: -0.2px;
}

/* GET method color for info table */
.info-table .method.get {
    color: #16a34a;
}

/* ============================================================
   Layout: 2-Column
   ============================================================ */

.saram-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ============================================================
   Tabular Snapshot
   ============================================================ */

.saram-snapshot-panel {
    margin-top: 1.5rem;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.snapshot-desc {
    margin: 0 0 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.snapshot-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.snapshot-table-wrap {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fafbfc;
    max-height: 420px;
    overflow: auto;
    padding: 0.75rem;
}

.snapshot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.snapshot-table th,
.snapshot-table td {
    border-bottom: 1px solid #ececec;
    padding: 0.5rem 0.6rem;
    text-align: left;
    vertical-align: top;
    color: #333;
}

.snapshot-table th {
    position: sticky;
    top: 0;
    background: #f4f6f8;
    font-weight: 700;
    z-index: 1;
}

.snapshot-table tr:hover td {
    background: #f9fbff;
}

.snapshot-cell-muted {
    color: #6b7280;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .saram-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Panel: Shared
   ============================================================ */

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ============================================================
   Input Panel
   ============================================================ */

.saram-input-panel {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.example-selector {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    color: #555;
    cursor: pointer;
    outline: none;
}

.example-selector:hover {
    border-color: var(--primary-color);
}

.input-textarea {
    width: 100%;
    min-height: 400px;
    max-height: 600px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
    box-sizing: border-box;
}

.input-textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 74, 107, 160), 0.1);
}

.input-textarea::placeholder {
    color: #bbb;
    font-size: 0.85rem;
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.8rem;
    color: #aaa;
}

.input-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e5e5;
}

.btn-tiny {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    background: #f5f5f5;
    color: #777;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-tiny:hover:not(:disabled) {
    background: #eee;
    color: #333;
}

.btn-tiny:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   Additional Section (추가 경과 기록)
   ============================================================ */

.additional-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px dashed #d0d7e2;
}

.additional-textarea {
    min-height: 150px !important;
    max-height: 300px;
}

.btn-patch {
    background: #2d6a4f;
    color: white;
}

.btn-patch:hover:not(:disabled) {
    background: #1b4332;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

/* ============================================================
   Diff Viewer
   ============================================================ */

.diff-viewer {
    flex: 1;
    overflow: auto;
    padding: 0;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    background: #fdfdfe;
    min-height: 450px;
    max-height: 600px;
}

.diff-section {
    border-bottom: 1px solid #eee;
}

.diff-section-header {
    padding: 0.5rem 1rem;
    background: #f0f3f7;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: 'Pretendard', -apple-system, sans-serif;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diff-section-header .diff-badge {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.diff-badge.added {
    background: #dcfce7;
    color: #166534;
}

.diff-badge.modified {
    background: #fef3c7;
    color: #92400e;
}

.diff-badge.removed {
    background: #fce7ef;
    color: #9f1239;
}

.diff-line {
    padding: 0.2rem 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    border-left: 3px solid transparent;
}

.diff-line.added {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #14532d;
}

.diff-line.removed {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #7f1d1d;
    text-decoration: line-through;
    opacity: 0.7;
}

.diff-line.context {
    color: #6b7280;
    background: #fafafa;
}

.diff-line.unchanged {
    color: #9ca3af;
}

.diff-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #ccc;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    gap: 0.75rem;
}

.diff-summary {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.82rem;
    color: #555;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.diff-summary .diff-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.diff-stat.additions {
    color: #16a34a;
}

.diff-stat.modifications {
    color: #d97706;
}

.diff-stat.deletions {
    color: #dc2626;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 2px;
    margin-right: 0.35rem;
}

.toggle-btn {
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.toggle-btn.active {
    background: white;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: #555;
}

/* ============================================================
   History Section
   ============================================================ */

.history-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e8ed;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 2px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.82rem;
}

.history-item .history-label {
    color: #444;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: flex;
    align-items: center;
}

.history-item .history-time {
    color: #aaa;
    font-size: 0.72rem;
    flex-shrink: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ============================================================
   Result Panel
   ============================================================ */

.saram-result-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    min-height: 560px;
}

/* Tabs */
.result-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}

.result-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.result-tab:hover {
    color: #555;
    background: #f0f2f5;
}

.result-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.result-tab i {
    font-size: 0.8rem;
}

/* Content */
.result-content {
    display: none;
    padding: 0;
    height: calc(100% - 48px);
}

.result-content.active {
    display: flex;
    flex-direction: column;
}

.result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fcfcfd;
}

.result-label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

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

.state-source-switch {
    position: relative;
    display: inline-flex;
    gap: 0.2rem;
    border: 1px solid #d5e0ef;
    border-radius: 999px;
    background: #f8fbff;
    padding: 0.22rem;
}

.state-source-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: #577298;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease;
}

.state-source-btn.is-active {
    color: #254870;
}

.state-source-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.state-source-indicator {
    position: absolute;
    left: 0;
    top: 0.22rem;
    height: calc(100% - 0.44rem);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(43, 68, 105, 0.2);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* JSON Viewer */
.json-viewer {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #333;
    background: #fdfdfe;
    min-height: 450px;
    max-height: 600px;
    white-space: pre-wrap;
    word-break: break-all;
}

.json-viewer .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #ccc;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    gap: 0.75rem;
}

.json-viewer .empty-state i {
    font-size: 2rem;
}

.json-viewer.state-jelly-enter {
    animation: state-jelly-panel-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes state-jelly-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* JSON Syntax Highlighting */
.json-viewer .json-key {
    color: #9a3412;
}

.json-viewer .json-string {
    color: #166534;
}

.json-viewer .json-number {
    color: #1d4ed8;
}

.json-viewer .json-boolean {
    color: #7c3aed;
}

.json-viewer .json-null {
    color: #6b7280;
    font-style: italic;
}

.json-viewer .json-bracket {
    color: #374151;
}

/* ============================================================
   Info Panel
   ============================================================ */

.info-panel {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: 550px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.info-card h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
}

.info-item .info-key {
    font-size: 0.72rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.2rem;
}

.info-item .info-value {
    font-size: 0.88rem;
    color: #333;
    font-weight: 600;
}

.info-steps {
    padding-left: 1.25rem;
    margin: 0;
}

.info-steps li {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.info-tags .tag {
    background: #e8edf3;
    color: #4a6ba0;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 0.5rem 0.4rem;
    vertical-align: top;
}

.info-table .method {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    width: 40px;
}

.info-table .method.post {
    color: #d97706;
}

.info-table .endpoint {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.info-table .op-name {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d6a4f;
    white-space: nowrap;
    width: 60px;
}

.info-table .desc {
    color: #555;
    line-height: 1.5;
}

.info-table code {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    background: #f0f2f5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #333;
    word-break: break-all;
}

.info-note {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.info-list {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0;
}

.info-list li {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
}

.info-list li strong {
    color: #333;
}

/* Schema Tree */
.info-schema {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    background: #f8f9fb;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    color: #444;
    overflow-x: auto;
    white-space: pre;
}

/* ============================================================
   MCP Log Viewer
   ============================================================ */

.mcp-log-viewer {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    min-height: 450px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #fdfdfe;
}

.mcp-log-viewer .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #ccc;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    gap: 0.75rem;
}

.mcp-log-viewer .empty-state i {
    font-size: 2rem;
}

.mcp-log-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.mcp-log-item:hover {
    background: #f0f2f6;
}

.mcp-log-item.mcp-log-error {
    background: #fef2f2;
}

.mcp-log-item.mcp-log-error:hover {
    background: #fee2e2;
}

.mcp-log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mcp-log-badge {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.badge-session {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-read {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-write {
    background: #fef3c7;
    color: #92400e;
}

.badge-patch {
    background: #d1fae5;
    color: #065f46;
}

.badge-convert {
    background: #fce7f3;
    color: #9d174d;
}

.badge-export {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-default {
    background: #f3f4f6;
    color: #4b5563;
}

.mcp-log-args {
    color: #888;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    flex: 1;
}

.mcp-log-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
    color: #aaa;
    font-size: 0.7rem;
}

.mcp-log-success .mcp-log-meta i {
    color: #22c55e;
    font-size: 0.65rem;
}

.mcp-log-error .mcp-log-meta i {
    color: #ef4444;
    font-size: 0.65rem;
}

.mcp-log-elapsed {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.68rem;
    color: #999;
}

.mcp-log-time {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #bbb;
}

.mcp-log-body {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.mcp-log-body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    background: #eef1f6;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: #333;
}

.mcp-log-err-msg {
    color: #dc2626;
    font-weight: 500;
}

.mcp-log-null {
    color: #9ca3af;
    font-style: italic;
}

.mcp-log-viewer::-webkit-scrollbar {
    width: 4px;
}

.mcp-log-viewer::-webkit-scrollbar-track {
    background: transparent;
}

.mcp-log-viewer::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 2px;
}

/* ============================================================
   Loading Overlay
   ============================================================ */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content p {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.loading-content .loading-sub {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================================
   Toast
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #333;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.success {
    background: #166534;
}

.toast.error {
    background: #991b1b;
}

.toast.info {
    background: #1e40af;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .saram-container {
        padding: 1rem 0.5rem;
    }

    .saram-header h1 {
        font-size: 1.5rem;
    }

    .session-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .session-indicator {
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .input-textarea {
        min-height: 250px;
    }

    .result-tab {
        font-size: 0.75rem;
        padding: 0.6rem 0.25rem;
    }

    .result-tab i {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .history-item .history-label {
        max-width: 180px;
    }
}
