:root {
    --zeta-primary: #0f172a;
    --zeta-secondary: #64748b;
    --zeta-accent: #3b82f6;
    --zeta-bg: #f8fafc;
    --zeta-white: #ffffff;
    --zeta-border: #e2e8f0;
    --zeta-text: #1e293b;
    --zeta-text-light: #94a3b8;
}

.zetascript-studio-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--zeta-text);
    background-color: var(--zeta-bg);
    min-height: 80vh;
    position: relative;
    border: 1px solid var(--zeta-border);
    border-radius: 8px;
    overflow: hidden;
}

/* Boot Screen */
.zetascript-boot-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--zeta-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: center;
}

.zetascript-boot-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.zetascript-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: white;
    border-radius: 50%;
    animation: zeta-spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Header */
.zetascript-header {
    background: var(--zeta-white);
    border-bottom: 1px solid var(--zeta-border);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zetascript-doc-title {
    font-weight: 600;
    color: var(--zeta-primary);
}

.zetascript-nav {
    display: flex;
    gap: 10px;
}

.zetascript-nav-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--zeta-secondary);
    border-bottom: 2px solid transparent;
}

.zetascript-nav-btn.active {
    color: var(--zeta-accent);
    border-bottom-color: var(--zeta-accent);
}

/* Main Content */
.zetascript-main-content {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.zetascript-tab-content {
    display: none;
}

.zetascript-tab-content.active {
    display: block;
}

/* Editor Styles */
.zetascript-editor-wrapper {
    background: var(--zeta-white);
    padding: 60px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    min-height: 1000px;
}

.zetascript-script-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--zeta-border);
    padding-bottom: 20px;
}

.zetascript-title-input {
    font-size: 2.5rem;
    font-weight: 700;
    width: 100%;
    border: none;
    outline: none;
    margin-bottom: 10px;
}

.zetascript-author-input {
    font-size: 1.2rem;
    width: 100%;
    border: none;
    outline: none;
    color: var(--zeta-secondary);
    margin-bottom: 10px;
}

.zetascript-contact-input {
    width: 100%;
    border: none;
    outline: none;
    color: var(--zeta-secondary);
    resize: none;
    font-size: 0.9rem;
}

/* Block Styles */
.zetascript-block-row {
    display: flex;
    margin-bottom: 4px;
    position: relative;
}

.zetascript-block-label {
    width: 100px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--zeta-text-light);
    text-align: right;
    padding-right: 20px;
    padding-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.zetascript-block-row:hover .zetascript-block-label {
    opacity: 1;
}

.zetascript-block-textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

/* Specific Block Types */
.type-scene { font-weight: bold; text-transform: uppercase; }
.type-action { }
.type-character { font-weight: bold; text-transform: uppercase; margin-left: 25%; width: 50%; }
.type-parenthetical { margin-left: 20%; width: 60%; }
.type-dialogue { margin-left: 15%; width: 70%; }
.type-transition { font-weight: bold; text-transform: uppercase; margin-left: 60%; width: 40%; text-align: right; }

.zetascript-editor-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: var(--zeta-text-light);
    text-transform: uppercase;
}

/* Buttons */
.zetascript-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid var(--zeta-border);
    background: var(--zeta-white);
    transition: all 0.2s;
}

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

.zetascript-btn.secondary {
    background: var(--zeta-accent);
    color: white;
    border-color: var(--zeta-accent);
}

.zetascript-btn.block {
    display: block;
    width: 100%;
}

/* Modal */
.zetascript-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.zetascript-modal {
    background: white;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.zetascript-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--zeta-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zetascript-modal-body {
    padding: 20px;
}

.zetascript-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--zeta-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
