/* DIMS Dashboard — structural styles. Colors come from css/theme.css tokens. */

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

body {
    background-color: var(--bg);
    color: var(--text);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    height: 64px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 4px auto 16px;
}

.header h1 {
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.header h3 {
    color: var(--muted);
    margin-bottom: 5px;
    font-weight: normal;
}

.header .contacts {
    color: var(--dim);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

select, input {
    background-color: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: inherit;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--accent);
}

select {
    min-width: 150px;
}

.main-content {
    display: flex;
    gap: 20px;
    width: 100%;
}

.chart-section {
    flex: 1;
    min-width: 0;
}

.time-slider {
    margin-bottom: 20px;
    padding: 0 20px;
}

.video-section {
    width: 400px;
    position: sticky;
    top: 10px;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

.video-container {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.video-player-container h3 {
    margin-bottom: 10px;
    text-align: center;
}

.video-player-container video {
    width: 100%;
    border-radius: 8px;
}

.transcript-container {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px;
}

.transcript-content {
    background-color: var(--panel2);
    border: 1px solid var(--line);
    padding: 10px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

.status {
    text-align: center;
    margin-bottom: 20px;
    color: var(--muted);
}

.status.error {
    color: #cf222e;
}

.slider-container {
    position: relative;
    margin: 20px 0 28px;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .video-section {
        width: 100%;
        position: relative;
    }
}
