:root {
    --vc-primary: #4f46e5;
    --vc-primary-dark: #4338ca;
    --vc-master: #1e3a6e;
    --vc-master-dark: #152d57;
    --vc-ogretim: #9bc53d;
    --vc-ogretim-dark: #86ad2f;
    --vc-accent: #06b6d4;
    --vc-bg: #f4f6fb;
    --vc-surface: #ffffff;
    --vc-text: #0f172a;
    --vc-muted: #64748b;
    --vc-border: #e2e8f0;
    --vc-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --vc-radius: 16px;
}

* {
    box-sizing: border-box;
}

body.vc-page {
    margin: 0;
    font-family: "Rubik", "Segoe UI", sans-serif;
    background: var(--vc-bg);
    color: var(--vc-text);
    min-height: 100vh;
}

.vc-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 24%),
        var(--vc-bg);
}

.vc-container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.vc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.vc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--vc-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.vc-badge-icon {
    font-size: 1.15em;
    line-height: 1;
}

.vc-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
}

.vc-player-exam-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

.vc-subtitle {
    margin: 0 auto;
    max-width: 42rem;
    color: var(--vc-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.vc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.vc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 18px 45px rgba(79, 70, 229, 0.14);
}

.vc-card-media {
    position: relative;
    height: 7.25rem;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--vc-border);
}

.vc-card-media img {
    width: auto;
    max-width: 88%;
    max-height: 5.75rem;
    object-fit: contain;
    display: block;
}

.vc-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    flex: 1;
    background: #ffffff;
}

.vc-theme-limit .vc-card-body { background: #ffecec; }
.vc-theme-avantaj .vc-card-body { background: #fff0cc; }
.vc-theme-esen .vc-card-body { background: #ffe4f2; }
.vc-theme-kronometre .vc-card-body { background: #d9f2e6; }
.vc-theme-pratikhafiza .vc-card-body { background: #d6ebff; }
.vc-theme-mobese .vc-card-body { background: #ebe0ff; }

.vc-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.vc-card-text {
    margin: 0;
    color: var(--vc-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vc-btn:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
}

.vc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vc-btn-video {
    background: linear-gradient(135deg, var(--vc-ogretim), var(--vc-ogretim-dark));
}

/* Cozum page */
.vc-cozum-header {
    margin-bottom: 0.85rem;
}

.vc-cozum-header-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.vc-cozum-header-main {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.vc-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    background: #fff;
    color: var(--vc-primary);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--vc-shadow);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.vc-home-btn:hover {
    border-color: rgba(79, 70, 229, 0.35);
    background: #f8faff;
    transform: translateY(-1px);
}

.vc-home-btn svg {
    width: 22px;
    height: 22px;
}

.vc-player-hero {
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.vc-panel,
.vc-player-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
    width: 100%;
    min-width: 0;
}

.vc-panel {
    padding: 1.25rem;
}

.vc-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.vc-panel-meta {
    margin: 0 0 1rem;
    color: var(--vc-muted);
    font-size: 0.92rem;
}

.vc-field {
    margin-bottom: 1rem;
}

.vc-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vc-text);
}

.vc-field select,
.vc-field .form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    font-size: 0.95rem;
}

.vc-filter-btn {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.vc-question-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 420px;
    overflow: auto;
    margin-top: 1rem;
    padding-right: 0.15rem;
}

.vc-question-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vc-question-item:hover,
.vc-question-item.active {
    border-color: rgba(79, 70, 229, 0.35);
    background: #f8faff;
}

.vc-question-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.vc-question-meta strong {
    font-size: 0.92rem;
    white-space: nowrap;
}

.vc-question-meta span {
    color: var(--vc-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-play-chip {
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--vc-primary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.vc-player-card {
    padding: 1rem;
}

.vc-now-playing {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vc-text);
    text-align: center;
    min-height: 1.25rem;
}

.vc-now-playing:empty {
    display: none;
}

.vc-video-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.vc-video-wrap video {
    display: block;
    width: 100%;
    max-height: min(72vh, 720px);
    background: #000;
}

.vc-empty {
    padding: 1.25rem;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--vc-muted);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .vc-container {
        width: 100%;
        max-width: 100%;
        padding: 0.85rem 0.85rem 1.5rem;
    }

    .vc-cozum-header,
    .vc-header {
        margin-bottom: 0.75rem;
    }

    .vc-cozum-header-main {
        text-align: left;
    }

    .vc-subtitle {
        margin: 0;
        max-width: none;
        font-size: 0.92rem;
    }

    .vc-player-hero {
        margin-bottom: 0.85rem;
        padding: 0.75rem;
    }

    .vc-panel {
        padding: 1rem;
    }

    .vc-question-list {
        max-height: none;
        margin-top: 0.85rem;
    }

    .vc-video-wrap video {
        max-height: 52vh;
    }

    .vc-field {
        margin-bottom: 0.85rem;
    }

    .vc-field:last-of-type {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .vc-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .vc-grid {
        grid-template-columns: 1fr;
    }

    .vc-panel {
        padding: 0.85rem;
    }

    .vc-question-item {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .vc-play-chip {
        justify-self: end;
    }
}

/* Login page */
.vc-login-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.25rem;
    width: min(920px, 100%);
    margin: 0 auto;
    align-items: stretch;
}

.vc-login-wrap {
    width: min(440px, 100%);
    margin: 0 auto;
}

.vc-login-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
    padding: 1.75rem;
    height: 100%;
}

.vc-login-links-card {
    display: flex;
    flex-direction: column;
}

.vc-login-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.vc-login-logo {
    display: block;
    max-width: 220px;
    margin: 0 auto 1.25rem;
}

.vc-login-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.vc-login-subtitle {
    margin: 0 0 1.5rem;
    color: var(--vc-muted);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.vc-login-intro {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    text-align: left;
}

.vc-login-intro li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    color: var(--vc-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.vc-login-intro li:last-child {
    margin-bottom: 0;
}

.vc-login-intro-icon {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.42rem;
    border-radius: 50%;
    background: var(--vc-primary);
}

.vc-form-group {
    margin-bottom: 1rem;
}

.vc-form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.vc-form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--vc-text);
}

.vc-form-control:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.vc-login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.vc-quick-docs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vc-border);
    max-height: 220px;
    overflow-y: auto;
}

.vc-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vc-primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
}

.vc-doc-link-icon {
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.vc-doc-link-text {
    word-break: break-word;
}

.vc-doc-link:hover {
    color: var(--vc-primary-dark);
    text-decoration: underline;
}

.vc-btn-light {
    background: #fff;
    color: var(--vc-primary);
    border: 1px solid var(--vc-border);
    cursor: pointer;
}

.vc-btn-light:hover {
    color: var(--vc-primary-dark);
    background: #f8faff;
}

.vc-btn-master {
    background: linear-gradient(135deg, var(--vc-accent), #0891b2);
    color: #fff;
    border: none;
}

.vc-btn-master:hover {
    color: #fff;
    opacity: 0.95;
}

.vc-btn-ogretim {
    background: linear-gradient(135deg, var(--vc-ogretim), var(--vc-ogretim-dark));
    color: #fff;
    border: none;
}

.vc-btn-ogretim:hover {
    color: #fff;
    opacity: 0.95;
}

.vc-btn-ogrenci-panel {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
}

.vc-btn-ogrenci-panel:hover {
    color: #fff;
    opacity: 0.95;
}

.vc-toast-wrap {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vc-toast {
    min-width: 280px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: var(--vc-shadow);
    font-size: 0.92rem;
}

.vc-toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.vc-toast-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.vc-toast.hidden {
    display: none;
}

@media (max-width: 767px) {
    .vc-login-panels {
        grid-template-columns: 1fr;
    }
}
