/* IRIS global base styles — app shell lives in app/static/css/app_shell.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Lato:wght@700&display=swap');

:root {
    /* Settings theme picker (legacy keys; values align with iris_theme.css) */
    --bg-color: var(--shell-bg, #151414);
    --panel-color: var(--shell-panel, #1e1e1e);
    --text-color: var(--shell-text, #ffffff);
    --button-bg: var(--shell-btn-primary-bg, #8b9cae);
    --button-hover: var(--shell-btn-primary-hover-bg, #6d9bbd);
}

.sith-theme,
.light-theme {
    --bg-color: #151414;
    --panel-color: #222;
    --text-color: rgb(119, 0, 0);
    --button-bg: #4d0000;
    --button-hover: #c40000;
}

.nate-theme {
    --bg-color: #0d0d0d;
    --panel-color: #1a1a1a;
    --text-color: #bb00ff;
    --button-bg: #9b0065;
    --button-hover: #3500d4;
}

.pink-theme {
    --bg-color: #ffb6c1;
    --panel-color: #ff69b4;
    --text-color: white;
    --button-bg: #ff1493;
    --button-hover: #d1008f;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

/* Bottom nav typography — position/active states in app_shell.css */
.bottom-nav a {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-content {
    margin-left: 0;
    padding: 30px;
}

.dashboard-container {
    text-align: center;
    margin-top: 50px;
}

.dashboard-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--shell-btn-primary-border, #30c0d0);
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.dashboard-button:hover {
    background-color: var(--button-hover);
}

#apply-theme-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--shell-btn-primary-border, #30c0d0);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#apply-theme-btn:hover {
    background-color: var(--button-hover);
}

.content p a {
    color: var(--shell-accent, #30c0d0);
    text-decoration: underline;
}

/* Pop-out prompt utilities (legacy workspace templates) */
.btn-popout {
    background: var(--shell-btn-secondary-bg, #2a2a48);
    color: var(--shell-text, #fff);
    border: 1px solid var(--shell-border-subtle, #2a2a48);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.btn-popout:hover {
    border-color: var(--shell-accent, #30c0d0);
    color: var(--shell-accent, #30c0d0);
}

.popout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popout-overlay.show {
    display: flex;
}

.popout-dialog {
    width: min(1000px, 92vw);
    height: min(80vh, 900px);
    background: var(--shell-panel, #151550);
    border: 1px solid var(--shell-border-subtle, #2a2a48);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.popout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--shell-border-subtle, #2a2a48);
}

.popout-header h3 {
    margin: 0;
    color: var(--shell-text, #fff);
    font-weight: 700;
}

.popout-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
}

.popout-close:hover {
    color: var(--shell-text, #fff);
}

.popout-body {
    padding: 12px 16px;
    flex: 1;
    display: flex;
}

.popout-textarea {
    width: 100%;
    height: 100%;
    resize: both;
    min-height: 300px;
    background: var(--shell-bg, #0a0a28);
    color: var(--shell-text, #fff);
    border: 1px solid var(--shell-border-subtle, #2a2a48);
    border-radius: 8px;
    padding: 12px;
    line-height: 1.5;
    font-size: 15px;
    outline: none;
}

.popout-textarea:focus {
    border-color: var(--shell-accent, #30c0d0);
    box-shadow: 0 0 0 2px rgba(48, 192, 208, 0.25);
}

.popout-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--shell-border-subtle, #2a2a48);
}

.char-count {
    color: var(--shell-accent, #30c0d0);
    opacity: 0.9;
    font-size: 12px;
}

.popout-primary,
.popout-secondary {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.popout-primary {
    background: var(--shell-btn-primary-bg, #101040);
    border-color: var(--shell-btn-primary-border, #30c0d0);
    color: var(--shell-text, #fff);
}

.popout-primary:hover {
    background: var(--shell-btn-primary-hover-bg, #30c0d0);
    color: var(--shell-btn-primary-hover-text, #0a0a28);
}

.popout-secondary {
    background: var(--shell-btn-secondary-bg, #2a2a48);
    color: var(--shell-text, #fff);
    border-color: var(--shell-border-subtle, #2a2a48);
}

.popout-secondary:hover {
    border-color: var(--shell-accent, #30c0d0);
    color: var(--shell-accent, #30c0d0);
}
