:root {
    /* New Brand Colors */
    --dark-walnut: #3d2914;
    --soft-copper: #b87333;
    --graphite: #343434;
    --warm-cream: #fdf1d9;
    
    /* Legacy color mappings */
    --primary-blue: var(--soft-copper);
    --primary-blue-dark: #9d6329;
    --light-blue: #f5f0e4;
    --gray-50: var(--warm-cream);
    --gray-100: #f8f2e4;
    --gray-200: #eee4d0;
    --gray-300: #ddd0b8;
    --gray-600: var(--graphite);
    --gray-800: var(--dark-walnut);
    --green: #10b981;
    --red: #ef4444;
    --border-radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(61, 41, 20, 0.1), 0 1px 2px 0 rgba(61, 41, 20, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(61, 41, 20, 0.1), 0 4px 6px -2px rgba(61, 41, 20, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--warm-cream);
    color: var(--dark-walnut);
    line-height: 1.6;
}

/* Main Navigation */
.main-nav {
    background: var(--warm-cream);
    border-bottom: 2px solid var(--soft-copper);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-logo .logo-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.nav-logo .logo-link:hover {
    color: var(--soft-copper);
}

.nav-logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-walnut);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--graphite);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--soft-copper);
    background: var(--light-blue);
}

.nav-link.active {
    color: var(--soft-copper);
    background: var(--light-blue);
    font-weight: 600;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--warm-cream);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header h1 {
    text-align: center;
    color: var(--dark-walnut);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tagline {
    text-align: center;
    color: var(--graphite);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
}

header nav {
    text-align: center;
    margin-bottom: 1rem;
}

header nav .nav-btn {
    margin: 0;
}

.progress-indicator {
    max-width: 400px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--graphite);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.progress-bar {
    background: var(--gray-200);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: var(--soft-copper);
    height: 100%;
    width: 16.67%;
    transition: width 0.3s ease;
}

.step-counter {
    text-align: center;
    font-size: 0.875rem;
    color: var(--graphite);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

#step-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--dark-walnut);
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--graphite);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.selection-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.selection-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.selection-card.selected {
    border-color: var(--soft-copper);
    background-color: var(--light-blue);
}

.selection-card.multiple.selected {
    border-color: var(--green);
    background-color: #ecfdf5;
}

.card-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark-walnut);
}

.card-desc {
    color: var(--graphite);
    font-size: 0.875rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background-color: var(--gray-50);
}

.checkbox-item.selected {
    background-color: var(--light-blue);
    border-color: var(--soft-copper);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

footer {
    background: var(--warm-cream);
    padding: 1.5rem 0;
    box-shadow: 0 -1px 3px 0 rgba(61, 41, 20, 0.1);
}

#navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

.nav-btn.primary:hover {
    background: #9d6329;
}

.nav-btn.secondary {
    background: white;
    color: var(--graphite);
    border: 1px solid var(--gray-300);
}

.nav-btn.secondary:hover {
    background: var(--gray-50);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-default {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: var(--soft-copper);
    color: white;
}

.btn-default:hover {
    background: #9d6329;
}

.btn-default:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: var(--graphite);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--graphite);
    border: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--dark-walnut);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.5rem;
}

.nav-btn.reset {
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--gray-300);
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.nav-btn.reset:hover {
    background: var(--gray-100);
    color: var(--dark-walnut);
    border-color: var(--graphite);
}

.framework-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--dark-walnut);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--graphite);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--dark-walnut);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--soft-copper);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.framework-section {
    margin-bottom: 2rem;
}

.framework-section h3 {
    color: var(--dark-walnut);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.5rem;
}

.role-level {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.role-level h4 {
    color: var(--dark-walnut);
    margin-bottom: 0.5rem;
}

.salary-range {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.competencies {
    margin-top: 1rem;
}

.competencies h5 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.competencies ul {
    list-style: none;
    padding-left: 0;
}

.competencies li {
    padding: 0.25rem 0;
    color: var(--graphite);
}

.competencies li:before,
.responsibilities li:before,
.culture-values li:before {
    content: "•";
    color: var(--soft-copper);
    margin-right: 0.5rem;
}

.equity-range {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: normal;
}

.responsibilities,
.culture-values {
    margin-top: 1rem;
}

.responsibilities h5,
.culture-values h5 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.responsibilities ul,
.culture-values ul {
    list-style: none;
    padding-left: 0;
}

.responsibilities li,
.culture-values li {
    padding: 0.25rem 0;
    color: var(--graphite);
}

.recommendation {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.recommendation h5 {
    color: var(--soft-copper);
    margin-bottom: 0.5rem;
}

.recommendation p {
    color: var(--graphite);
    margin: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    #step-container {
        padding: 2rem 1.5rem;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    #navigation {
        padding: 0 1rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-btn.reset {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
        margin-left: 0.25rem;
    }
    
    .framework-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1.5rem;
    }
}

/* Sample Configuration Styles */
.intro-section {
    text-align: center;
}

.intro-description {
    margin-bottom: 2rem;
}

.intro-description p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--graphite);
}

.sample-configurations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sample-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sample-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sample-card h3 {
    color: var(--dark-walnut);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sample-card p {
    color: var(--graphite);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.sample-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sample-details span {
    background: var(--light-blue);
    color: var(--soft-copper);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.sample-btn {
    background: var(--soft-copper);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.sample-btn:hover {
    background: #9d6329;
}

.custom-option {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.custom-option p {
    color: var(--graphite);
    margin: 0;
}

/* Landing Page Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    color: var(--dark-walnut);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--graphite);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    margin-bottom: 2rem;
    text-align: left;
}

.tool-features ul {
    list-style: none;
    padding: 0;
}

.tool-features li {
    color: var(--graphite);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tool-features li::before {
    content: "✓";
    color: var(--green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-section h3 {
    color: var(--dark-walnut);
    margin-bottom: 1rem;
    text-align: center;
}

.about-section p {
    color: var(--graphite);
    line-height: 1.7;
    text-align: center;
}

footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    color: var(--graphite);
    border-top: 1px solid var(--gray-200);
    background: var(--warm-cream);
}

/* 9-Box New Layout Styles */
.ninebox-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    text-align: left;
}

.header-left h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    text-align: left;
    color: var(--dark-walnut);
}

.header-left .tagline {
    margin: 0;
    color: var(--graphite);
    text-align: left;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.ninebox-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2rem;
    height: calc(100vh - 160px); /* Adjusted for navigation bar */
}

/* Left Sidebar */
.ninebox-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    overflow-y: auto;
}

.ninebox-sidebar section {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    flex-shrink: 0;
}

.ninebox-sidebar h2,
.ninebox-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--dark-walnut);
}

.ninebox-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-employee-section .form-group:last-child {
    margin-top: 0.5rem;
}

/* Education Section */
.education-section {
    flex: 1; /* Take up remaining space */
    min-height: 300px;
}

.education-help {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.education-content-container {
    display: none; /* Hidden until content is selected */
}

.education-content-container.visible {
    display: block;
}

/* Right Matrix Container */
.matrix-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    height: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--graphite);
    font-weight: 500;
}

.form-group input, .form-group select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--soft-copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.ninebox-matrix {
    display: grid;
    grid-template-columns: 160px repeat(3, 1fr);
    grid-template-rows: 70px repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    height: 75vh; /* Increased height for more breathing room */
    max-height: 700px; /* Increased max height */
    min-height: 550px; /* Added minimum height */
}

.matrix-cell {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1.25rem 3rem 1.25rem; /* Increased padding for more breathing room */
    position: relative;
    min-height: 140px; /* Increased minimum height */
    gap: 0.75rem; /* Increased gap between elements */
}

.matrix-header {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Slightly larger font */
    min-height: 70px; /* Match grid row height */
    padding: 1rem;
    text-align: center;
    overflow: hidden;
}

.matrix-label {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 140px; /* Increased to match cell height */
    padding: 1rem; /* Increased padding */
    font-size: 1rem; /* Slightly larger font */
    text-align: center;
    overflow: hidden;
}

.employee-chip {
    background: var(--soft-copper);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin: 0.125rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.employee-chip:hover {
    background: #9d6329;
}

.employee-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.employee-item:last-child {
    border-bottom: none;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    color: var(--dark-walnut);
}

.employee-scores {
    color: var(--graphite);
    font-size: 0.9rem;
}

.employee-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--graphite);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-danger {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Toggle Switch Styles */
.toggle-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--graphite);
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--soft-copper);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Category Label Styles */
.category-label {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-500);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    transition: opacity 0.3s ease;
    z-index: 2; /* Ensure it's above employee chips */
}

.matrix-cell {
    position: relative;
}

/* Hide category labels when toggle is off */
.ninebox-matrix.hide-categories .category-label {
    opacity: 0;
    pointer-events: none;
}

/* Employee Detail Side Panel */
.detail-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.detail-panel.open {
    right: 0;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--light-blue);
}

.panel-header h3 {
    margin: 0;
    color: var(--dark-walnut);
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background: var(--gray-200);
}

.panel-body {
    flex: 1;
    padding: 2rem;
}

.employee-detail-info {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--graphite);
}

.detail-value {
    color: var(--graphite);
}

.category-badge {
    background: var(--soft-copper);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.edit-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.edit-section h4 {
    margin-bottom: 1rem;
    color: var(--dark-walnut);
}

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

.edit-form .form-group:last-child {
    margin-bottom: 0;
}

.panel-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.panel-footer .nav-btn,
.panel-footer .btn-danger {
    flex: 1;
    min-width: 80px;
}

/* Save & Share Styles */
.control-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--light-blue);
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-walnut);
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
}

.save-section,
.share-section,
.platform-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.platform-section {
    border-bottom: none;
}

.save-section h4,
.share-section h4,
.platform-section h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-walnut);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coming-soon-badge {
    background: var(--soft-copper);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.save-actions,
.share-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.share-link-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.share-link-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
}

.share-note {
    font-size: 0.9rem;
    color: var(--graphite);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.feature-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    color: var(--graphite);
}

.email-capture {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.email-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.email-input:focus {
    outline: none;
    border-color: var(--soft-copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.email-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}

.error-message {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.shared-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--soft-copper);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-notification:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Career Framework Review Styles */
.review-summary {
    max-width: 100%;
}

.review-header {
    text-align: center;
    margin-bottom: 2rem;
}

.review-header h3 {
    color: var(--dark-walnut);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.review-subtitle {
    color: var(--graphite);
    font-size: 1.1rem;
    margin: 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
}

.review-card-header {
    background: var(--light-blue);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-icon {
    font-size: 1.5rem;
}

.review-card-header h4 {
    margin: 0;
    color: var(--dark-walnut);
    font-size: 1.1rem;
    font-weight: 600;
}

.review-items {
    padding: 1.5rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-label {
    color: var(--graphite);
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.review-value {
    color: var(--dark-walnut);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex: 1;
}

.review-tags-left {
    justify-content: flex-start;
}

.review-tag {
    background: var(--soft-copper);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.review-empty {
    color: var(--gray-500);
    font-style: italic;
    text-align: right;
    flex: 1;
}

.review-empty-left {
    text-align: left;
}

.review-item-full {
    justify-content: flex-start;
}

.review-value-left {
    text-align: left;
}

.review-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.review-note {
    color: var(--graphite);
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .ninebox-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile layout for new design */
    .ninebox-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ninebox-sidebar {
        order: 2; /* Move sidebar below matrix on mobile */
    }
    
    .matrix-container {
        order: 1;
        padding: 0.5rem;
    }
    
    .ninebox-matrix {
        grid-template-columns: 80px repeat(3, 1fr);
        grid-template-rows: 50px repeat(3, 1fr);
        height: 400px; /* Increased height */
        max-width: none;
        min-height: 350px;
    }
    
    /* Mobile Navigation */
    .nav-container {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-left {
        width: 100%;
        text-align: left;
    }
    
    .header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .matrix-cell {
        padding: 0.75rem 0.75rem 2.5rem 0.75rem; /* Increased mobile padding */
        min-height: 90px; /* Increased mobile height */
    }
    
    .matrix-header {
        min-height: 50px; /* Match mobile grid row */
        font-size: 0.9rem; /* Slightly larger mobile font */
        padding: 0.5rem;
    }
    
    .matrix-label {
        min-height: 90px; /* Match mobile cell height */
        font-size: 0.9rem; /* Slightly larger mobile font */
        padding: 0.5rem;
    }
    
    .employee-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .category-label {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
        bottom: 0.125rem;
        left: 0.125rem;
        right: 0.125rem;
    }
    
    .toggle-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .toggle-switch {
        font-size: 0.8rem;
    }
    
    .detail-panel {
        width: 100%;
        right: -100%;
    }
    
    .panel-header {
        padding: 1rem;
    }
    
    .panel-body {
        padding: 1rem;
    }
    
    .panel-footer {
        padding: 1rem;
    }
    
    .panel-footer .nav-btn,
    .panel-footer .btn-danger {
        min-width: 60px;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .save-actions,
    .share-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-link-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-capture {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shared-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    /* Review responsive styles */
    .review-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .review-header h3 {
        font-size: 1.5rem;
    }
    
    .review-subtitle {
        font-size: 1rem;
    }
    
    .review-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .review-tags {
        justify-content: flex-start;
    }
    
    .review-tags-left {
        justify-content: flex-start;
    }
    
    .review-value,
    .review-empty {
        text-align: left;
    }
    
    .review-value-left,
    .review-empty-left {
        text-align: left;
    }
    
    .review-items {
        padding: 1rem;
    }
    
    .review-card-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    #step-container {
        padding: 1.5rem 1rem;
    }
    
    .sample-configurations {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tools-grid {
        padding: 0.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
}

/* Educational Content Styles */
.clickable-category, span.clickable-axis {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
}

.clickable-category:hover, span.clickable-axis:hover {
    background-color: var(--blue-50);
    text-decoration-color: var(--blue-400);
    color: var(--blue-700);
}

.clickable-category::after, span.clickable-axis::after {
    content: " ℹ️";
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clickable-category:hover::after, span.clickable-axis:hover::after {
    opacity: 0.8;
}

/* Education Modal Styles */
.education-content {
    color: var(--gray-800);
    line-height: 1.6;
}

.education-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    font-style: italic;
}

.education-section {
    margin-bottom: 1.5rem;
}

.education-section h4 {
    color: var(--blue-600);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--blue-100);
    padding-bottom: 0.5rem;
}

.education-list {
    list-style: none;
    padding-left: 0;
}

.education-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--blue-200);
}

.education-list li::before {
    content: "•";
    color: var(--blue-500);
    font-weight: bold;
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
}

/* Category labels - remove pointer-events restriction since labels are now clickable */
.category-label {
    /* Labels can now receive clicks */
}

/* Team Summary in Modal */
.team-summary-section {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-stats {
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--graphite);
}

.stat-value {
    font-weight: 600;
    color: var(--soft-copper);
}

.category-breakdown {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.category-breakdown h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.8rem;
}

.category-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.category-stat:last-child {
    border-bottom: none;
}

.last-saved {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Offsite Scheduler Styles */
.offsite-header {
    background: linear-gradient(135deg, var(--soft-copper), var(--primary-blue-dark));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.offsite-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon fill="rgba(255,255,255,0.05)" points="0,20 100,0 100,20"/></svg>');
}

.offsite-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.offsite-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.offsite-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: fit-content;
}

.employee-info-section,
.availability-instructions,
.export-section {
    margin-bottom: 2rem;
}

.employee-info-section h2,
.availability-instructions h3 {
    color: var(--dark-walnut);
    margin-bottom: 1rem;
}

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

.availability-instructions ul {
    margin-left: 1.5rem;
    color: var(--graphite);
}

.availability-instructions li {
    margin-bottom: 0.5rem;
}

.export-note {
    font-size: 0.875rem;
    color: var(--graphite);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    overflow: auto;
}

.availability-calendar {
    display: grid;
    gap: 2rem;
}

.calendar-month {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.calendar-header {
    background: var(--soft-copper);
    color: white;
    padding: 1rem;
    text-align: center;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
}

.calendar-cell {
    background: white;
    padding: 0.75rem;
    text-align: center;
    border: none;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.week-header,
.day-header {
    background: var(--gray-100);
    color: var(--graphite);
    font-size: 0.875rem;
    font-weight: 600;
}

.week-number {
    background: var(--light-blue);
    color: var(--soft-copper);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.week-number:hover {
    background: var(--soft-copper);
    color: white;
}

.day-cell {
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.day-cell:hover {
    background: var(--light-blue);
}

.day-cell.unavailable {
    background: var(--red);
    color: white;
}

.day-cell.unavailable:hover {
    background: #dc2626;
}

.day-cell.other-month {
    color: var(--gray-300);
    cursor: not-allowed;
}

/* Manager Analysis Styles */
.manager-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.manager-container {
    display: grid;
    gap: 2rem;
}

.import-section,
.analysis-calendar-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.import-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.imported-team-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.team-member-item {
    background: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.team-member-item strong {
    display: block;
    color: var(--dark-walnut);
}

.member-info {
    color: var(--graphite);
    font-size: 0.875rem;
}

.dietary-info {
    color: var(--graphite);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Analysis Calendar */
.analysis-calendar {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.analysis-month {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
}

.analysis-day {
    position: relative;
    cursor: default;
}

.analysis-day.available {
    background: var(--green);
    color: white;
}

.analysis-day.unavailable {
    background: var(--red);
    color: white;
}

.analysis-day.partial {
    background: #f59e0b;
    color: white;
}

/* Analysis Summary */
.analysis-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.stat-label {
    display: block;
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft-copper);
}

.recommended-periods {
    background: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.recommended-periods li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.recommended-periods li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .offsite-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .offsite-sidebar {
        order: 1;
    }
    
    .calendar-container {
        order: 2;
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        font-size: 0.875rem;
    }
    
    .calendar-cell {
        padding: 0.5rem;
        min-height: 35px;
    }
    
    .import-actions {
        flex-direction: column;
    }
}

/* Compensation Calculator Styles */
.compensation-header {
    background: linear-gradient(135deg, var(--soft-copper), var(--primary-blue-dark));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.compensation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon fill="rgba(255,255,255,0.05)" points="0,20 100,0 100,20"/></svg>');
}

.compensation-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.compensation-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.compensation-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: fit-content;
}

.provider-section,
.sla-section,
.compensation-section,
.timeframe-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.timeframe-section {
    border-bottom: none;
}

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

.required {
    color: var(--red);
    font-weight: 600;
}

.compensation-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--graphite);
    margin-top: 0.25rem;
}

.disclaimer-section {
    background: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.disclaimer-text {
    font-size: 0.875rem;
    color: var(--graphite);
    margin: 0;
}

/* Results Display */
.results-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.welcome-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.welcome-content h2 {
    color: var(--dark-walnut);
    margin-bottom: 1rem;
}

.welcome-content p {
    color: var(--graphite);
    margin-bottom: 2rem;
    max-width: 400px;
}

.feature-highlights {
    display: grid;
    gap: 1rem;
    max-width: 300px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-blue);
    border-radius: var(--border-radius);
}

.highlight-icon {
    font-size: 1.25rem;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--soft-copper);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Display */
.summary-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.compensation-result {
    background: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem 0;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--soft-copper);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.1rem;
    color: var(--graphite);
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-walnut);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--graphite);
    margin-top: 0.5rem;
}

/* Incidents List */
.incidents-list {
    max-height: 400px;
    overflow-y: auto;
}

.incident-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-50);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.incident-title {
    font-weight: 600;
    color: var(--dark-walnut);
}

.incident-impact {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.impact-minor {
    background: #fbbf24;
    color: #92400e;
}

.impact-major {
    background: #f87171;
    color: #991b1b;
}

.impact-critical {
    background: var(--red);
    color: white;
}

.incident-details {
    font-size: 0.875rem;
    color: var(--graphite);
}

.incident-time,
.incident-duration {
    margin-bottom: 0.25rem;
}

.no-incidents {
    text-align: center;
    color: var(--graphite);
    font-style: italic;
    padding: 2rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.error-state {
    text-align: center;
    color: var(--red);
}

.error-state h2 {
    color: var(--red);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .compensation-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .compensation-sidebar {
        order: 1;
    }
    
    .results-container {
        order: 2;
    }
    
    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .export-actions {
        flex-direction: column;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .result-amount {
        font-size: 2rem;
    }
}