/* Views */
.view {
    display: none;
    padding: 2rem;
    height: 100%;
}

.view.active {
    display: block;
}

/* Categorize view */
.categorize-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.pdf-viewer {
    display: flex;
    flex-direction: column;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.control-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.control-button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.control-button:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.page-info {
    font-weight: 500;
    color: var(--gray-700);
}

.pdf-container {
    flex: 1;
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-50);
    overflow: hidden;
}

#pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.loading-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray-500);
}

.loading-spinner i {
    font-size: 2rem;
}

.pdf-placeholder {
    text-align: center;
    color: var(--gray-500);
}

.pdf-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.pdf-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Categorization panel */
.categorization-panel {
    background-color: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-y: auto;
}

.categorization-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.burger-review-layout {
    grid-template-columns: 1fr 400px;
    align-items: stretch;
}

.burger-preview-panel {
    display: flex;
    min-height: 0;
}

.burger-preview-card {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.burger-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: rgb(37 99 235 / 0.12);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.burger-preview-card h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--gray-900);
}

.burger-preview-card p {
    color: var(--gray-600);
}

.burger-preview-media {
    min-height: 170px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-preview-media i {
    font-size: 3.25rem;
    color: var(--gray-400);
}

.burger-preview-media img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    display: block;
}

.burger-score-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid rgb(245 158 11 / 0.35);
    background: rgb(245 158 11 / 0.12);
}

.burger-score-pill span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gray-900);
}

.burger-score-pill small {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.burger-score-meter {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.burger-score-meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transition: width 0.2s ease;
}

.burger-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.burger-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
}

.burger-score-row span {
    color: var(--gray-600);
}

.burger-score-row strong {
    font-size: 1rem;
    color: var(--gray-900);
}

.burger-score-summary {
    font-size: 0.95rem;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
    padding-top: 0.75rem;
}

.burger-rating-grid .score-input:last-child {
    grid-column: 1 / -1;
}

