﻿.page-wrapper {
    width: 1280px;
    margin: 12px auto;
}

.top-card {
    width: 1280px;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 12px;
}

.top-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hidden-file-input {
    display: none;
}

.top-grid {
    height: 100%;
    margin: 0;
}

.fill-height {
    height: 100%;
    margin: 0;
}

.left-side {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.12);
    min-height: 0;
}

.left-top,
.left-bottom,
.right-side {
    font-size: 18px;
    box-sizing: border-box;
}

.left-top {
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 16px;
    display: block;
}

.left-bottom {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    display: flex;
}

.right-side {
    height: 100%;
    padding: 16px;
    display: flex;
    min-height: 0;
}

.specialization-select {
    width: 100%;
}

.content-paper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #fff;
}

.objectives-paper {
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.08);
}

.objectives-text {
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
    text-align: justify;
}

.study-plan-paper {
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.08);
}

.study-plan-subtitle {
    margin-bottom: 18px;
    color: rgba(0,0,0,0.62);
}

.study-plan-empty {
    color: rgba(0,0,0,0.55);
    font-size: 15px;
    margin-top: 16px;
}

.course-card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fafafa;
}

.course-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.course-title {
    line-height: 1.35;
    font-weight: 600;
    flex: 1;
    min-width: 240px;
}

.topics-block {
    margin-top: 8px;
}

.topics-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.58);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.topics-list {
    padding-top: 0;
    padding-bottom: 0;
}

.no-topics {
    margin-top: 6px;
}

/* Alsó panel sor */
.panel-row {
    width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 520px;
}

.vertical-panel {
    height: 520px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: white;
    transition: width 0.45s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

    .vertical-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

    .vertical-panel.normal {
        width: 312px;
    }

    .vertical-panel.expanded {
        width: 1040px;
    }

    .vertical-panel.collapsed {
        width: 40px;
    }

        .vertical-panel.collapsed button {
            display: none;
        }

.panel-content {
    padding: 12px 12px 12px 12px;
    height: 100%;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.hidden-content {
    opacity: 0;
    pointer-events: none;
}

.collapsed-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.panel-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.panel-body {
    font-size: 15px;
    line-height: 1.5;
}

.panel-button {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 0;
}

.phase-panel-content {
    height: 100%;
    background: transparent;
}

.panel-body {
    font-size: 15px;
    line-height: 1.5;
    height: calc(100% - 34px);
    overflow-y: auto;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.collapsed-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    text-align: center;
}

.analysis-output-card {
    width: 1280px;
    margin-top: 12px;
    border-radius: 24px;
    overflow: hidden;
}

.analysis-output-paper {
    min-height: 320px;
    max-height: 1024px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.analysis-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.analysis-output-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analysis-output-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.analysis-output-text {
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    text-align: justify;
}