/* ============================================================
   WebCode Studio - Modern & Compact (Dark + Light)
   ============================================================ */

:root,
:root[data-theme="dark"] {
    --bg-main: #0b0e14;
    --bg-editor: #0d1118;
    --bg-surface: #11151c;
    --bg-surface-hover: #1a1f2b;
    --bg-surface-active: #212838;

    --border-color: #1f2433;
    --border-light: #2c3347;

    --text-primary: #e5e9f0;
    --text-secondary: #909db4;
    --text-muted: #5c677d;

    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.14);

    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;

    --color-php: #8f9bd0;
    --color-js: #ebd14b;
    --color-html: #f0653c;
    --color-css: #42a5f5;
    --color-json: #a3be8c;
    --color-md: #9aa7bd;

    --overlay: rgba(3, 6, 12, 0.6);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg-main: #fdfcfa; /* Warm white */
    --bg-editor: #ffffff;
    --bg-surface: #f9faf9; /* Slight green-white */
    --bg-surface-hover: #edf2eb; /* Light green hover */
    --bg-surface-active: #ddefd5; /* Active green */

    --border-color: #e2e8df;
    --border-light: #cbd5c6;

    --text-primary: #1f2924;
    --text-secondary: #4b5f54;
    --text-muted: #798f82;

    --accent-primary: #f97316; /* Vibrant Orange */
    --accent-primary-hover: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.12);

    --success: #16a34a; /* Green */
    --warning: #f59e0b;
    --danger: #dc2626;

    --color-php: #f97316; /* Orange for PHP */
    --color-js: #f59e0b;
    --color-html: #ea580c;
    --color-css: #16a34a; /* Green for CSS */
    --color-json: #10b981;
    --color-md: #6b7280;

    --overlay: rgba(20, 40, 30, 0.35);
    --shadow: 0 8px 25px rgba(249, 115, 22, 0.15); /* Orange shadow */
    color-scheme: light;
}

:root {
    --top-bar-height: 40px;
    --activity-bar-width: 42px;
    --sidebar-width: 240px;
    --right-area-width: 360px;
    --status-bar-height: 22px;
    --radius: 6px;
    --transition-fast: 0.15s ease;
}

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

html, body { height: 100%; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color .2s, color .2s;
}

button, input { font-family: inherit; color: inherit; }
.text-xs { font-size: 0.68rem; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Buttons ---------- */
.btn {
    padding: 7px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all var(--transition-fast);
    background: transparent;
}
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover { background: var(--accent-primary-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-large { width: 100%; padding: 10px; font-size: 0.9rem; font-weight: 600; }
.btn-sm { padding: 5px 10px; font-size: 0.74rem; }
.btn-outline { border-color: var(--border-light); color: var(--text-primary); background: transparent; }
.btn-outline:hover { background: var(--bg-surface-hover); border-color: var(--text-muted); }

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.icon-btn.on { color: var(--accent-primary); background: var(--accent-soft); }

/* ---------- Layout ---------- */
.app-container { display: flex; flex-direction: column; height: 100%; }

/* ---------- Top bar ---------- */
.top-bar {
    height: var(--top-bar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 6px; }
.top-bar-left { gap: 16px; }

.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.logo-icon {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; color: #fff;
}
.top-bar-title { color: var(--text-muted); font-size: 0.78rem; }

.top-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 9px;
    background: transparent; border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.top-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.top-btn.icon-only { width: 28px; padding: 0; justify-content: center; font-size: .85rem; }
.top-btn.on { color: var(--accent-primary); }
.top-btn.saving i { color: var(--warning); }
.top-btn.saved i { color: var(--success); }

.avatar-circle {
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.65rem; font-weight: 600;
}
.username { font-weight: 500; color: var(--text-primary); }

/* ---------- Workspace ---------- */
.workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--bg-main);
}

/* Activity bar */
.activity-bar {
    width: var(--activity-bar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 6px 0;
    flex-shrink: 0;
}
.activity-icon {
    width: 100%; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.activity-icon:hover { color: var(--text-primary); }
.activity-icon.active { color: var(--text-primary); }
.activity-icon.active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 2px; background: var(--accent-primary); border-radius: 2px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    min-width: 0;
}
.sidebar.hidden { display: none; }
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 10px 7px 14px;
}
.sidebar-header h3 {
    font-size: 0.66rem; font-weight: 600; letter-spacing: .06em;
    color: var(--text-secondary);
}
.sidebar-actions { display: flex; gap: 2px; align-items: center; }

.panel { display: none; flex: 1; min-height: 0; flex-direction: column; }
.panel.active { display: flex; }

.file-tree { flex: 1; overflow-y: auto; padding: 2px 6px; }
.tree-item.file {
    display: flex; align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: 5px;
    user-select: none;
    margin-bottom: 1px;
    gap: 7px;
}
.tree-item.file:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.tree-item.file.active { background: var(--accent-soft); color: var(--accent-primary); }
.tree-item .item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item .item-actions { display: none; gap: 1px; }
.tree-item.file:hover .item-actions { display: flex; }
.file-icon { width: 15px; text-align: center; font-size: 0.85rem; flex-shrink: 0; }
.php-icon { color: var(--color-php); }
.js-icon { color: var(--color-js); }
.css-icon { color: var(--color-css); }
.html-icon { color: var(--color-html); }
.json-icon { color: var(--color-json); }
.md-icon { color: var(--color-md); }

.muted-note { color: var(--text-muted); font-size: 0.76rem; padding: 10px 12px; }

/* Search */
.search-box {
    margin: 2px 10px 8px;
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0 9px;
    color: var(--text-muted);
    font-size: .75rem;
}
.search-box:focus-within { border-color: var(--accent-primary); }
.search-box input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 7px 0; font-size: 0.8rem;
}
.search-results { flex: 1; overflow-y: auto; padding: 0 6px 8px; }
.sr-file { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); padding: 8px 6px 3px; display: flex; gap: 6px; align-items: center; }
.sr-line {
    display: flex; gap: 8px; padding: 3px 8px; border-radius: 4px; cursor: pointer;
    font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--text-secondary);
}
.sr-line:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.sr-line .ln { color: var(--text-muted); min-width: 24px; text-align: right; }
.sr-line .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { background: rgba(251, 191, 36, .35); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Project panel */
.project-panel { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.field-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.text-input {
    width: 100%; background: var(--bg-main); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 7px 9px; font-size: 0.8rem; outline: none;
}
.text-input:focus { border-color: var(--accent-primary); }
.stat-row { display: flex; gap: 8px; }
.stat {
    flex: 1; background: var(--bg-main); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 7px 9px;
}
.stat b { display: block; font-size: 1rem; }
.stat span { font-size: 0.66rem; color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack .btn { justify-content: flex-start; }

/* Resizer */
.resizer { width: 3px; background: transparent; cursor: col-resize; z-index: 5; flex-shrink: 0; transition: background var(--transition-fast); }
.resizer:hover, .resizer.resizing { background: var(--accent-primary); }
.resizer.hidden { display: none; }

/* ---------- Center / Editor ---------- */
.center-area { flex: 1; display: flex; flex-direction: column; min-width: 180px; position: relative; }

.editor-tabs {
    display: flex; align-items: stretch;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto; flex-shrink: 0; min-height: 32px;
}
.editor-tabs::-webkit-scrollbar { height: 0; }
.tab {
    display: flex; align-items: center; gap: 6px;
    padding: 0 8px 0 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    cursor: pointer; white-space: nowrap;
    border-top: 2px solid transparent;
    user-select: none;
}
.tab:hover { background: var(--bg-surface-hover); }
.tab.active { background: var(--bg-editor); color: var(--text-primary); border-top-color: var(--accent-primary); }
.close-tab {
    background: transparent; border: none; color: inherit; opacity: 0;
    cursor: pointer; width: 18px; height: 18px; border-radius: 4px; font-size: .65rem;
}
.close-tab:hover { background: var(--bg-surface-active); }
.tab:hover .close-tab, .tab.active .close-tab { opacity: 1; }
.tab-spacer { flex: 1; }
.tab-actions { display: flex; align-items: center; gap: 2px; padding: 0 6px; }

.editor-container { flex: 1; min-height: 0; position: relative; background: var(--bg-editor); }
#editor { position: absolute; inset: 0; font-family: 'Fira Code', monospace; }

/* Make Ace follow the app theme */
.ace_editor, .ace_editor .ace_gutter { background: var(--bg-editor) !important; }
.ace_editor .ace_gutter { color: var(--text-muted) !important; }
.ace_editor .ace_gutter-active-line { background: var(--bg-surface-hover) !important; }
.ace_editor .ace_marker-layer .ace_active-line { background: var(--bg-surface-hover) !important; opacity: .55; }
.ace_editor .ace_cursor { color: var(--accent-primary) !important; }

.empty-state {
    position: absolute; inset: 0; z-index: 3; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-editor); color: var(--text-muted);
}
.empty-state.show { display: flex; }
.empty-state i { font-size: 2.2rem; opacity: .5; }
.empty-state p { font-size: .85rem; margin-bottom: 4px; }

.editor-output-container {
    height: 160px; min-height: 80px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: none; flex-direction: column; flex-shrink: 0;
}
.editor-output-container.active { display: flex; }
.output-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 8px 4px 12px;
    background: var(--bg-surface-hover);
    font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.output-header i { margin-right: 5px; }
.console-content {
    flex: 1; overflow-y: auto; padding: 8px 12px;
    font-family: 'Fira Code', monospace; font-size: 0.76rem;
}
.console-line { margin-bottom: 3px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.console-line.info { color: var(--text-secondary); }
.console-line.warn { color: var(--warning); }
.console-line.error { color: var(--danger); }
.console-line.success { color: var(--success); }
.console-line .tag { opacity: .55; margin-right: 8px; }

/* ---------- Right area ---------- */
.right-area {
    width: var(--right-area-width);
    background: var(--bg-main);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 10px; gap: 10px;
    min-width: 0;
}
.right-area.hidden { display: none; }

.preview-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex; flex-direction: column;
    overflow: hidden; flex: 1; min-height: 120px;
}
.preview-panel.hidden { display: none; }
.preview-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px 7px 12px;
    border-bottom: 1px solid var(--border-color);
}
.preview-title { font-size: 0.76rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.browser-address-bar {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 8px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.url-bar {
    flex: 1; min-width: 0;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 0.72rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 7px;
    overflow: hidden; white-space: nowrap;
}
.url-bar span { overflow: hidden; text-overflow: ellipsis; }
.browser-viewport { flex: 1; background: #fff; position: relative; }
.browser-viewport iframe { width: 100%; height: 100%; border: none; position: absolute; inset: 0; background: #fff; }

.controls-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    flex-shrink: 0;
}
.preview-panel.hidden + .controls-panel { margin-bottom: auto; }
.controls-panel h3 { font-size: 0.8rem; font-weight: 600; margin-bottom: 9px; }
.lang-tabs { display: flex; background: var(--bg-main); border-radius: var(--radius); padding: 3px; margin-bottom: 10px; gap: 2px; }
.lang-tab {
    flex: 1; text-align: center; padding: 5px 0;
    font-size: 0.74rem; color: var(--text-secondary);
    cursor: pointer; border-radius: 4px; user-select: none;
    transition: all var(--transition-fast);
}
.lang-tab:hover { color: var(--text-primary); }
.lang-tab.active { background: var(--bg-surface); color: var(--accent-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.quick-row { display: flex; gap: 6px; margin-top: 8px; }
.quick-row .btn { flex: 1; padding: 6px 4px; }

.save-status-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.save-icon { font-size: 1.15rem; color: var(--success); transition: color .2s; }
.save-status-card.saving .save-icon { color: var(--warning); }
.save-text strong { font-size: 0.78rem; display: block; }
.save-text p { font-size: 0.68rem; color: var(--text-secondary); margin-top: 1px; }

/* ---------- Status bar ---------- */
.status-bar {
    height: var(--status-bar-height);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 12px; font-size: 0.68rem; flex-shrink: 0;
}
.status-left, .status-right { display: flex; gap: 14px; align-items: center; }
.auto-save-status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; display: inline-block; transition: background .2s; }
.status-dot.saving { background: var(--warning); }
.status-click { cursor: pointer; }
.status-click:hover { color: var(--text-primary); }

/* ---------- Context menu ---------- */
.context-menu {
    position: fixed;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 4px;
    min-width: 170px;
    z-index: 2000;
    display: none;
    font-size: 0.78rem;
}
.context-menu.active { display: block; }
.context-menu-item {
    padding: 6px 10px; cursor: pointer; border-radius: 5px;
    display: flex; align-items: center; gap: 9px;
    color: var(--text-primary);
}
.context-menu-item i { width: 14px; text-align: center; font-size: .72rem; color: var(--text-secondary); }
.context-menu-item:hover { background: var(--accent-primary); color: #fff; }
.context-menu-item:hover i { color: #fff; }
.context-menu-item.danger { color: var(--danger); }
.context-menu-item.danger i { color: var(--danger); }
.context-menu-item.danger:hover { background: var(--danger); color: #fff; }
.context-menu-divider { height: 1px; background: var(--border-color); margin: 4px 2px; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: var(--overlay);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
    animation: fadeIn .12s ease;
}
.modal {
    width: min(420px, 92vw);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: popIn .14s ease;
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 12px 11px 16px;
    font-weight: 600; font-size: .88rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-body { padding: 14px 16px; font-size: .82rem; color: var(--text-secondary); line-height: 1.55; max-height: 60vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; }
.modal-foot:empty { display: none; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.setting-row:last-child { border-bottom: none; }
.setting-row label { color: var(--text-primary); font-size: .8rem; }
.setting-row small { display: block; color: var(--text-muted); font-size: .68rem; }
.seg { display: inline-flex; background: var(--bg-main); border-radius: 6px; padding: 2px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: .74rem; color: var(--text-secondary); }
.seg button.active { background: var(--bg-surface); color: var(--accent-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper span { min-width: 34px; text-align: center; font-size: .78rem; color: var(--text-primary); }
.switch { position: relative; width: 34px; height: 18px; background: var(--border-light); border-radius: 18px; cursor: pointer; transition: background .15s; border: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch.on { background: var(--accent-primary); }
.switch.on::after { transform: translateX(16px); }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: 14px; bottom: 34px; z-index: 4000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
    background: var(--bg-surface); color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-primary);
    border-radius: 7px; box-shadow: var(--shadow);
    padding: 8px 12px; font-size: .78rem; max-width: 320px;
    animation: slideUp .18s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Focus mode ---------- */
.app-container.focus .activity-bar,
.app-container.focus .sidebar,
.app-container.focus .right-area,
.app-container.focus .resizer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .top-bar-title { display: none; } }
@media (max-width: 900px) {
    .hide-sm { display: none !important; }
    .right-area { width: 280px !important; }
    .logo-text { display: none; }
}
@media (max-width: 720px) {
    .right-area { display: none; }
    .resizer { display: none; }
    .sidebar { position: absolute; z-index: 50; top: var(--top-bar-height); bottom: var(--status-bar-height); left: var(--activity-bar-width); box-shadow: var(--shadow); }
}

/* ---------- Preview Loader ---------- */
.loading-preview .browser-address-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--accent-primary);
    animation: loadingBar 1s infinite ease-in-out;
}
@keyframes loadingBar {
    0% { width: 0; left: 0; }
    50% { width: 50%; left: 25%; }
    100% { width: 0; left: 100%; }
}
