/* vtys.css - Night Owl Study Theme v2.1 (Wide Screen + Fixed Sidebar) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-body: #020617;
    /* Slate 950 */
    --bg-sidebar: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-blue: #0ea5e9;
    /* Sky 500 */
    --accent-purple: #d946ef;
    /* Fuchsia 500 */
    --accent-green: #22c55e;
    /* Green 500 */
    --accent-yellow: #eab308;
    /* Yellow 500 */
    --border-color: #334155;
    /* Slate 700 */

    --sidebar-width: 260px;
    /* FIXED WIDTH - No compact mode */
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* LAYOUT */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* STANDARD SIDEBAR (Always Open) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    padding: 20px;
    z-index: 100;
    overflow-y: auto;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand i {
    color: var(--accent-purple);
}

.nav-group {
    margin-bottom: 25px;
}

.nav-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left aligned */
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-card);
    color: var(--accent-blue);
    box-shadow: none;
}

.nav-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-purple);
}

.nav-link:hover i {
    color: var(--accent-blue);
}

/* WIDE MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
    width: calc(100% - var(--sidebar-width));
}

.content-wrapper {
    max-width: 1600px;
    /* Wide screen support */
    margin: 0 auto;
    width: 100%;
}

/* TYPOGRAPHY */
h1 {
    font-size: 3.5rem;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.2rem;
    margin-top: 60px;
    margin-bottom: 30px;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 10px;
}

h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

/* CARDS & BOXES */
.concept-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* CODE BLOCKS */
.code-wrapper {
    position: relative;
    margin: 20px 0;
}

.code-block {
    background: #0b1120;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--border-color);
    font-family: var(--font-code);
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7;
}

.keyword {
    color: #c084fc;
    font-weight: bold;
}

.string {
    color: #4ade80;
}

.comment {
    color: #64748b;
    font-style: italic;
}

.number {
    color: #facc15;
}

/* GRID SYSTEM */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mini-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s, border-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.mini-card h5 {
    color: var(--accent-blue);
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.mini-card .code-block {
    margin: 10px 0;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.how-to-box {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* BADGES */
.example-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px 4px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-select {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.badge-create {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.badge-alter {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.badge-drop {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* WEEK HEADER */
.week-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.week-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-code);
    line-height: 1;
}

.week-content {
    flex: 1;
}

.week-title {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

.week-desc {
    margin: 5px 0 0 0;
    color: var(--accent-purple);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}