:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 0;
}

.recuedu-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.app-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 50px;
    z-index: 180;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand i {
    color: var(--primary);
    font-size: 1.45rem;
}

.brand h1 {
    font-size: 1.45rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.module-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}

.btn {
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.suite-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.suite-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.suite-tab:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.suite-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.global-controls {
    background: white;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-rows: auto auto;
}

.hint {
    padding: 8px 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border);
}

.hint i {
    color: var(--primary);
}

.control-row {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.control-group label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.suite-select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.suite-content {
    background: var(--bg-secondary);
    min-height: 0;
}

.view-single {
    display: none;
    height: 100%;
    min-height: 0;
}

.view-single.active {
    display: block;
}

.view-single iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

@media (max-width: 960px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .module-links {
        overflow-x: auto;
        width: 100%;
        margin: 0;
    }

}
