/* Scholaro Report Form - Modern UI Styles (Apple/Microsoft inspired) */

:root {
    --scholaro-orange: #ff6358;
    --scholaro-blue: #848AA5;
    --scholaro-yellow: #fedb21;
    --primary-blue: #0066cc;
    --text-dark: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border-light: #d2d2d7;
    --border-lighter: #e5e5ea;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* Main Form Container */
.report-form-container {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}



.toolbar-container + .container {
    margin-top: 50px !important;
}

/* Card Sections */
.form-card {
    background: #f5f5f5;
    padding: 0;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
    border: 0px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 5px !important;
    margin: 1.5rem;
}


.form-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: #f5f5f5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-card-header h3 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.form-card-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Report Header Section */
.report-header-card {
    background: #f5f5f5;
    padding: 5px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
    border: 0px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 5px !important;
    margin: 1.5rem;
}

.report-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    padding: 1rem 1.5rem 1rem 1.5rem;
    background: #f5f5f5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.report-title h6 {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #888888;
    margin: 0.375rem 0 0 0;
    letter-spacing: 0;
}

/* Title container - simplified */
.report-title-container {
    /*padding-bottom: 0.75rem;*/
}

.report-title {
    margin-bottom: 0;
}

.report-title span {
    line-height: 1.3;
}

.report-title h6 {
    margin: 0.25rem 0 0.125rem 0;
}

/* All info items including dates on one line */
.report-info-inline-with-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.report-info-text-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-item {
    white-space: nowrap;
}

.info-item strong {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.25rem;
}

.info-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.report-dates-inline {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-shrink: 0;
}

.date-picker-inline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-label-inline {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Condensed grid with only 3 items */
.report-info-grid-condensed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    margin: 0.75rem 0.75rem 1.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1200px) {
    .report-info-grid-condensed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .report-info-inline-with-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .report-dates-inline {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .report-info-text-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-separator {
        display: none;
    }

    .report-dates-inline {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .date-picker-inline-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .report-info-grid-condensed {
        grid-template-columns: 1fr;
    }
}

/* Old grid - keep for backward compatibility if needed */
.report-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: var(--bg-white);
    padding: 1.5rem;
    margin: 0.75rem 0.75rem 2rem 0.75rem;
    border-radius: var(--radius-sm);
}

.report-info-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.report-info-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.report-info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Form Controls */
.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.form-row-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-col {
    flex: 0 1 auto;
    min-width: 240px;
    max-width: 320px;
}

/* Report Type Selection */
.report-type-selector {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin: 1.5rem;
}

.report-type-selector:has(.k-dropdown:focus-within) {
    border-color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .form-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Darker red delete button */
.k-button-solid-error {
    background-color: #a82f2f !important;
    border-color: #a82f2f !important;
}

.k-button-solid-add {
    border-color: #009eb4;
    color: var(--kendo-color-on-success, #ffffff);
    background-color: #009eb4;
}

.k-button-solid-error:hover {
    background-color: #a61e1e !important;
    border-color: #a61e1e !important;
}

.k-button-solid-error:active,
.k-button-solid-error.k-active {
    background-color: #8b1818 !important;
    border-color: #8b1818 !important;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0 2rem 0;
    gap: 1rem;
}

.section-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--scholaro-orange), transparent);
}

.section-divider-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
    padding: 0 0.5rem;
}

/* U.S. Equivalency Section */
.equivalency-section {
    background: var(--bg-white);
    border-left: 3px solid var(--scholaro-blue);
    border-right: 3px solid var(--scholaro-blue);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-top: none;
    border-bottom: none;
}

.equivalency-label, academic-performance-header {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.01em;
}

/* Institution Sections */
.institution-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}


.institution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-lighter);
}

.institution-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.institution-number {
    background: var(--text-dark);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* GPA Display */
.gpa-institution-wrapper {
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: none;
    margin-bottom: 1rem;
}

.academic-performance-section-compact .gpa-institution-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: inline-block;
    vertical-align: top;
}

/* First row - Checkboxes (GR, UG, HS) */
.academic-performance-section-compact .gpa-institution-wrapper > div:first-child {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.academic-performance-section-compact .gpa-institution-wrapper > div:first-child > div {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.academic-performance-section-compact .gpa-institution-wrapper > div:first-child > div label {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

/* Second row - GPA items (U.S. Units, U.S. GPA) */
.academic-performance-section-compact .gpa-institution-wrapper > div:last-child {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.academic-performance-section-compact .gpa-institution-wrapper .gpa-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.academic-performance-section-compact .gpa-institution-wrapper .gpa-label {
    font-size: 0.75rem;
    color: #666;
}

.academic-performance-section-compact .gpa-institution-wrapper .gpa-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #000;
}

.gpa-display-section {
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: none;
}

.gpa-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.gpa-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    min-width: 0;
    text-align: left;
}

.gpa-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
    font-weight: 400;
    display: block;
    width: 100%;
}

.gpa-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
    word-break: break-word;
}

/* Ribbon Banner */
.ribbon-banner {
    position: relative;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.ribbon-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.ribbon-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ribbon-banner-content {
    position: relative;
    z-index: 1;
}

.ribbon-banner-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.ribbon-banner-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Academic Performance Section */
.academic-performance-section {
    background: var(--bg-white);
    border-left: 3px solid var(--scholaro-blue);
    border-right: 3px solid var(--scholaro-blue);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: none;
    border-top: none;
    border-bottom: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.academic-performance-section-compact {
    background: var(--bg-white);
    border-left: 3px solid var(--scholaro-blue);
    border-right: 3px solid var(--scholaro-blue);
    padding: 15px 1.5rem 15px 1.5rem;
    border-radius: var(--radius-sm);
    margin: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-top: none;
    border-bottom: none;
}

.academic-performance-section-compact .equivalency-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.01em;
}

    .academic-performance-section-compact .gpa-institution-wrapper {
        background: whitesmoke;
        border-radius: 10px;
        padding: 0.75rem 1.25rem .5rem 1.25rem;
        margin-right: 1rem;
        align-items: center;
        flex-wrap: wrap;
        width: auto;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        margin-bottom: 1.5rem;
    }

.academic-performance-section-compact .gpa-institution-wrapper:hover {
    background: #f0f1f3;
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.academic-performance-section-compact .gpa-institution-wrapper:last-child {
    margin-bottom: 0 !important;
}

.academic-performance-section-compact .gpa-institution-wrapper:only-child {
    margin-bottom: 0 !important;
}

    .academic-performance-section-compact .gpa-display-section {
        background: transparent;
        padding: 0 ;
        display: flex;
        gap: .6rem;
        flex-wrap: wrap;
        margin-top: 0;
        align-items: center;

    }

.academic-performance-section-compact .gpa-item {
    min-width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-right: 1px solid #d5d5d5;
    border-radius: 0;
    padding: 0;
    padding-right: .5rem;
    margin-right: 0;
}

.academic-performance-section-compact .gpa-item:last-child {
    border-right: none;
    padding-right: 0;
}

.academic-performance-section-compact .gpa-label {
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.2;
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
}

.academic-performance-section-compact .gpa-value {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: #1d1d1f;
}

/* Notes Section */
.notes-section {
    background: var(--bg-white);
    border-left: 3px solid var(--scholaro-blue);
    border-right: 3px solid var(--scholaro-blue);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-top: none;
    border-bottom: none;
}

/* Validation Link */
.validation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.validation-link:hover {
    background: rgba(0, 102, 204, 0.12);
    text-decoration: none;
}

/* Course Grid Styling */
.courses-section {
    margin-top: 1.5rem;
}

/* Grid Container Spacing */
.grid-container {
    margin-bottom: 1.25rem;
}

.courses-grid .k-grid {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.courses-grid .k-grid-header {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.courses-grid .k-grid-header .k-header {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-dark);
    padding: 0.75rem 0.875rem;
}

/* Telerik Overrides */
.k-input-value-text {
    overflow: unset;
}

.k-dropdown, .k-datepicker, .k-textbox, .k-textarea, .k-combobox {
    border-radius: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
    background-color: var(--bg-white) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* Default all textareas to 3 rows */
.k-textarea textarea,
textarea.k-input,
.k-textarea .k-input-inner {
    min-height: 4.5rem !important;
}

.k-dropdown:hover, .k-datepicker:hover, .k-textbox:hover, .k-textarea:hover, .k-combobox:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    background-color: var(--bg-white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.k-dropdown:focus-within, .k-datepicker:focus-within, .k-textbox:focus, .k-textarea:focus, .k-combobox:focus-within {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) !important;
    outline: none !important;
    background-color: var(--bg-white) !important;
}

/* Improve input text appearance */
.k-input, .k-textarea {
    font-size: 0.9375rem !important;
    color: var(--text-dark) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-card {
        padding: 1.25rem;
    }

    .report-header-card {
        padding: 1.25rem;
    }

    .report-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row-inline {
        flex-direction: column;
    }

    .gpa-display-section {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Modern Toolbar */
.toolbar-container {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f8f8f8 !important;
    border-bottom: 1px solid #c8c8c8 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.toolBar {
    padding: 10px 16px !important;
    min-height: 52px !important;
/*    background: transparent !important;
*/    border: none !important;
    /*box-shadow: none !important;*/
    gap: var(--kendo-spacing-1\.5, 0.375rem) !important;
}

.toolBar .k-toolbar-group {
    gap: 6px !important;
    align-items: center !important;
}

    .toolBar .k-toolbar-item {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: .375rem !important;
    }

.toolBar .k-toolbar-button {
    margin: 0 2px !important;
}

.toolBar .k-toolbar-spacer {
    flex: 1 !important;
    min-width: 24px !important;
}

/* Template items with dropdowns */
.toolBar .k-toolbar-template-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Toolbar Buttons - Clean Default Style */
.toolBar .k-button {
    border-radius: 5px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    min-height: 32px !important;
    height: 32px !important;
    border: 1px solid #adadad !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%) !important;
    color: #1d1d1f !important;
    transition: all 0.15s ease !important;
    letter-spacing: -0.01em !important;
    line-height: 18px !important;
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.15) !important;
}

.toolBar .k-button:hover {
    background: linear-gradient(180deg, #fafafa 0%, #ebebeb 100%) !important;
    border-color: #8a8a8a !important;
}

.toolBar .k-button:active {
    background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%) !important;
    border-color: #8a8a8a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.toolBar .k-button:focus,
.toolBar .k-button:focus-visible,
.toolBar .k-button.k-focus {
    outline: none !important;
    box-shadow: none !important;
}

.toolBar .k-button.k-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.toolBar .k-button .k-icon {
    font-size: 15px !important;
    margin-right: 5px !important;
}

.toolBar .k-button .k-button-text {
    line-height: 18px !important;
    font-weight: 500 !important;
}

/* Primary Action Button (Save) - Same as default */
.toolBar .k-button.myBoldButton {
    /* Uses default button styling - no color override */
}

/* Secondary Action Button (Create PDF) - Slightly emphasized */
.toolBar .k-button.myItalicButton {
    font-weight: 500 !important;
}

/* USCIS Letter Button - uses default styling */
.toolBar .k-button.uscis-button {
    /* Uses default button styling */
}

/* Delete Button - Critical action with red border */
.toolBar .k-button.delete-button {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.toolBar .k-button.delete-button:hover {
    border-color: #c82333 !important;
    background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%) !important;
    color: #c82333 !important;
}

.toolBar .k-button.delete-button:active {
    background: linear-gradient(180deg, #ffe8e8 0%, #ffd4d4 100%) !important;
    border-color: #bd2130 !important;
    color: #bd2130 !important;
}

.toolBar .k-button.delete-button .k-icon {
    color: #dc3545 !important;
}

.toolBar .k-button.delete-button:hover .k-icon {
    color: #c82333 !important;
}

.k-toolbar .k-separator, .k-toolbar-separator {
    border-color: inherit;
    display: none !important;
}

/* Toolbar Dropdowns */
.toolBar .k-dropdown,
.toolBar .toolbarDropdown,
.toolBar .k-dropdown-wrap {
    border-radius: 5px !important;
    border: 1px solid #adadad !important;
    font-size: 13.5px !important;
    height: 32px !important;
    min-height: 32px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%) !important;
    font-weight: 500 !important;
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.15) !important;
    margin: 0 2px !important;
}

.toolBar .k-dropdown:hover,
.toolBar .toolbarDropdown:hover,
.toolBar .k-dropdown-wrap:hover {
    border-color: #8a8a8a !important;
    background: linear-gradient(180deg, #fafafa 0%, #ebebeb 100%) !important;
}

.toolBar .k-dropdown:focus-within,
.toolBar .toolbarDropdown:focus-within,
.toolBar .k-dropdown-wrap:focus-within {
    border-color: #4d90fe !important;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2) !important;
}

/* Toolbar Dropdown inner elements */
.toolBar .k-dropdown .k-input,
.toolBar .toolbarDropdown .k-input,
.toolBar .k-dropdown .k-input-value-text {
    font-size: 13.5px !important;
    line-height: 30px !important;
    padding: 0 10px !important;
    font-weight: 500 !important;
    color: #333333 !important;
}

.toolBar .k-dropdown .k-button,
.toolBar .toolbarDropdown .k-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 4px !important;
}

/* Toolbar Text */
    .toolBar span {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

/* Toolbar User Info Section */
.toolbar-user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
    padding: 0 8px !important;
}

.toolbar-user-info .last-saved-text {
    font-size: 11px !important;
    color: #888888 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

    .toolbar-user-info .username-text {
        font-size: 13px !important;
        color: #333333 !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

.toolBar #lastSaved,
.toolBar #pdfCreated {
    padding: 0 !important;
}

/* Hide Kendo automatic overflow button - we use our own custom menu */
.toolBar .k-toolbar-overflow-button {
    display: none !important;
}

/* Toolbar Menu Button (3 Dots) */
.toolBar .k-dropdown-button.user-menu-button,
.toolBar .user-menu-button {
    border-radius: 5px !important;
    height: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #666666 !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.toolBar .k-dropdown-button.user-menu-button:hover,
.toolBar .user-menu-button:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333333 !important;
}

.toolBar .k-dropdown-button.user-menu-button:active,
.toolBar .user-menu-button:active {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #333333 !important;
}

.toolBar .k-dropdown-button.user-menu-button .k-icon,
.toolBar .k-dropdown-button.user-menu-button .k-svg-icon,
.toolBar .user-menu-button .k-icon,
.toolBar .user-menu-button .k-svg-icon {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

/* Dropdown Menu Items */
.k-popup .k-menu-item,
.k-animation-container .k-menu-item,
.k-popup .k-item,
.k-animation-container .k-item {
    font-size: 13.5px !important;
    font-weight: 400 !important;
    padding: 10px 16px !important;
    color: #333333 !important;
    min-height: 36px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
    border-radius: 4px !important;
}

.k-popup .k-menu-item:hover,
.k-animation-container .k-menu-item:hover,
.k-popup .k-item:hover,
.k-animation-container .k-item:hover {
    background-color: #f5f5f5 !important;
    color: #333333 !important;
}

/* Remove focus/active states and inner element backgrounds */
.k-popup .k-menu-item:focus,
.k-popup .k-menu-item:focus-visible,
.k-popup .k-menu-item.k-focus,
.k-popup .k-item:focus,
.k-popup .k-item:focus-visible,
.k-popup .k-item.k-focus,
.k-animation-container .k-menu-item.k-focus,
.k-animation-container .k-item.k-focus,
li.k-item.k-menu-item.k-focus,
li.k-item.k-focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    background-color: transparent !important;
}

.k-popup .k-menu-item:focus:hover,
.k-popup .k-menu-item.k-focus:hover,
.k-popup .k-item:focus:hover,
.k-popup .k-item.k-focus:hover,
.k-animation-container .k-menu-item.k-focus:hover,
.k-animation-container .k-item.k-focus:hover,
li.k-item.k-menu-item.k-focus:hover,
li.k-item.k-focus:hover {
    background-color: #f5f5f5 !important;
}

/* Force remove any Telerik default focus styling */
.k-menu-item.k-focus,
.k-item.k-focus {
    background: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Remove background from inner button/link elements */
.k-popup .k-menu-item .k-menu-link,
.k-popup .k-menu-item button,
.k-popup .k-item .k-menu-link,
.k-popup .k-item button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

.k-popup .k-menu-item .k-menu-link:hover,
.k-popup .k-menu-item button:hover,
.k-popup .k-item .k-menu-link:hover,
.k-popup .k-item button:hover {
    background: transparent !important;
}

/* Delete Menu Item - Dark Red Styling */
.k-popup .k-menu-item.delete-menu-item,
.k-animation-container .k-menu-item.delete-menu-item,
.k-popup .k-item.delete-menu-item,
.k-animation-container .k-item.delete-menu-item {
    color: #a82f2f !important;
    font-weight: 500 !important;
}

.k-popup .k-menu-item.delete-menu-item:hover,
.k-animation-container .k-menu-item.delete-menu-item:hover,
.k-popup .k-item.delete-menu-item:hover,
.k-animation-container .k-item.delete-menu-item:hover {
    background-color: #ffebee !important;
    color: #8b1818 !important;
}

.k-popup .k-menu-item.delete-menu-item .k-menu-link,
.k-popup .k-menu-item.delete-menu-item button,
.k-popup .k-item.delete-menu-item .k-menu-link,
.k-popup .k-item.delete-menu-item button {
    color: inherit !important;
}

/* Responsive Menu Items - Hidden on large screens, shown on small */
.k-popup .k-menu-item.responsive-menu-item,
.k-popup .k-item.responsive-menu-item {
    display: none !important;
}

.k-popup .k-menu-item.responsive-separator,
.k-popup .k-item.responsive-separator {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

@media (max-width: 1300px) {
    .k-popup .k-menu-item.responsive-menu-item,
    .k-popup .k-item.responsive-menu-item,
    .k-animation-container .k-menu-item.responsive-menu-item,
    .k-animation-container .k-item.responsive-menu-item {
        display: flex !important;
        visibility: visible !important;
    }

    .k-popup .k-menu-item.responsive-separator,
    .k-popup .k-item.responsive-separator,
    .k-animation-container .k-menu-item.responsive-separator,
    .k-animation-container .k-item.responsive-separator {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 1px !important;
        padding: 6px 12px !important;
        margin: 4px 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        cursor: default !important;
        pointer-events: none !important;
        background: transparent !important;
    }

    .k-popup .k-menu-item.responsive-separator:hover,
    .k-popup .k-item.responsive-separator:hover,
    .k-animation-container .k-menu-item.responsive-separator:hover,
    .k-animation-container .k-item.responsive-separator:hover {
        background: transparent !important;
    }

    .k-popup .k-menu-item.responsive-separator button,
    .k-popup .k-item.responsive-separator button,
    .k-popup .k-menu-item.responsive-separator .k-menu-link,
    .k-popup .k-item.responsive-separator .k-menu-link,
    .k-animation-container .k-menu-item.responsive-separator button,
    .k-animation-container .k-item.responsive-separator button {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Hide toolbar buttons on small screens */
@media (max-width: 1300px) {
    .toolBar .k-button.uscis-button,
    .toolBar .k-button.myItalicButton {
        display: none !important;
    }

    /* Keep Save button visible - it's the primary action */
    .toolBar .k-button.myBoldButton {
        display: inline-flex !important;
    }
}

/* Only the outermost animation container has styling */
.k-animation-container.telerik-blazor {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    min-width: 180px !important;
}

/* Remove all styling from nested containers */
.k-animation-container .k-child-animation-container,
.k-child-animation-container,
.k-popup,
.k-popup.k-menu-popup {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.k-popup .k-list,
.k-popup .k-menu-group,
.k-menu-group,
.k-list-ul,
.k-menu-group-md {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.k-popup .k-list .k-item,
.k-popup .k-menu-group .k-menu-item {
    border-radius: 4px !important;
    margin: 1px 0 !important;
}

/* Toolbar Container */
.toolbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
}

/* Toolbar Logo */
.toolbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 8px;
    height: 32px;
    border-radius: 5px;
    transition: all 0.15s ease;
    text-decoration: none;
    margin-right: 8px;
}

.toolbar-logo:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toolbar-logo:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
}

.toolbar-logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* Modern Loading Screen with Skeleton */
.loading-container {
    min-height: 100vh;
    background: #f5f5f7;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-content {
    text-align: center;
    margin: 3rem 0 2rem;
}

.loading-icon {
    justify-items: center;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-icon img {
    max-width: 200px;
    height: auto;
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.loading-message {
    font-size: 1rem;
    color: #86868b;
    margin: 0;
}

/* Skeleton Loader */
.skeleton-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.skeleton-toolbar {
    height: 52px;
    background: linear-gradient(90deg, #e5e5ea 25%, #f0f0f2 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.skeleton-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.skeleton-title {
    height: 24px;
    width: 200px;
    background: linear-gradient(90deg, #e5e5ea 25%, #f0f0f2 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.skeleton-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-field {
    height: 40px;
    background: linear-gradient(90deg, #e5e5ea 25%, #f0f0f2 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #e5e5ea 25%, #f0f0f2 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-grid {
    height: 200px;
    background: linear-gradient(90deg, #e5e5ea 25%, #f0f0f2 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Course Grid Section Modernization */
/* Style the course grid wrapper - target containers that have TelerikGrid as child */
.containerTanscript:has(> .row + .courses-grid),
.containerTanscript:has(> .courses-grid) {
    background: whitesmoke;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Style the course section title */
.containerTanscriptHeader[style*="font-weight:bold"][style*="text-align: center"] {
    background: white;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
    font-size: 1rem;
    font-weight: 600 !important;
    color: #2c3e50;
    letter-spacing: -0.01em;
}

/* Style the credential/grading scale row above the grid */
.container:has(> .courses-grid) > .row:first-of-type {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

/* Remove background from grid cells to keep clean white appearance */
.courses-grid .k-grid-content {
    background: white;
}

.courses-grid .k-grid-header {
    background: white;
    border-bottom: 2px solid #e8e8e8;
}

/* Spacing Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

/* Fix Dropdown List Height and Scrollbar Issues */
.k-animation-container .k-list,
.k-popup .k-list {
    max-height: 300px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.k-animation-container .k-list-content,
.k-popup .k-list-content {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    padding: 4px 0 !important;
}

/* Ensure scrollbar stays within bounds */
.k-animation-container .k-list-ul,
.k-popup .k-list-ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Remove extra spacing in dropdown items */
.k-list-item,
.k-list .k-item {
    padding: 8px 12px !important;
    min-height: unset !important;
    height: auto !important;
}

/* Fix dropdown popup container - prevent overflow */
.k-animation-container,
.k-popup {
    overflow: hidden !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: white !important;
    padding: 0 !important;
}

/* Ensure inner list has proper background */
.k-animation-container .k-list-ul,
.k-popup .k-list-ul,
.k-animation-container .k-list,
.k-popup .k-list {
    background: white !important;
    margin: 0 !important;
}

.k-animation-container .k-list-scroller,
.k-popup .k-list-scroller {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ribbon Banner - Tab Style Design */
/* Remove any container styling that might affect the ribbon */
.container:has(.ribbon-container) {
    background: white;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.ribbon-container {
    margin: 1.5rem;
    position: relative;
}

.ribbon {
    position: absolute;
    top: -20px;
    left: 36px;
    padding: 10px 25px;
    background: var(--scholaro-orange);
    color: white;
    font-size: 18px;
    font-weight: 500;
    width: 19rem;
    text-align: center;
}

.ribbon:before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #cc4f46 transparent transparent;
    top: 0;
    left: -10px;
}

.ribbon:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #cc4f46 transparent transparent transparent;
    bottom: -10px;
    right: 0;
}

.summary-content {
    margin: 3rem 0px;
    padding: 70px 75px 50px;
    background: white;
    border-radius: 10px;
    border: 2px solid #ff6358;
    line-height: 1.5;
    font-size: 1.2rem;
    box-shadow: 3px 2px 7px 0px rgb(0 0 0 / 20%), 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: center;
}

/* Bottom Sections - Education System Chart Integration */
.container:has(> span > strong:first-child) {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

/* Evaluation Notes Section */
.container:has(> hr.brown) {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

/* Submitted Documents Grid Container */
.container.grid-container {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

/* Course Grid Toolbar Button Spacing Fix */
.courses-grid .k-grid-toolbar .container-fluid .row {
    gap: 0.5rem;
}

.courses-grid .k-grid-toolbar .float-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.courses-grid .k-grid-toolbar .k-button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* AI Import Container - Dedicated Section */
.ai-import-container {
    margin: 1rem 0;
    padding: 0;
    width: 100%;
}

/* AI Service Component Styling */
.ai-import-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.ai-import-wrapper .container.px-0.mx-0,
.ai-import-container .container.px-0.mx-0 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
    flex-wrap: nowrap !important;
}

.ai-import-wrapper .k-dropdownlist,
.ai-import-container .k-dropdownlist {
    flex: 0 0 auto !important;
}

.ai-import-wrapper .k-button,
.ai-import-container .k-button {
    flex: 0 0 auto !important;
}

/* AI Status Toast - Appears above controls */
.ai-status-toast {
    margin-bottom: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Status Messages - Apple/Google inspired */
.ai-status-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-status-message .ai-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ai-status-message .ai-status-text {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* Loading State - Light blue/gray */
.ai-status-loading {
    background: #F0F4F8;
    border: 1px solid #D0DCE8;
}

.ai-status-loading .ai-status-text {
    color: #5A6C7D;
}

/* Success State - Green (Apple iOS style) */
.ai-status-success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
}

.ai-status-success .ai-status-text {
    color: #2E7D32;
}

/* Error State - Red (Apple iOS style) */
.ai-status-error {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
}

.ai-status-error .ai-status-text {
    color: #C62828;
}

/* AI Status Badge - Compact inline version */
.ai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    margin-left: 0.75rem;
}

.ai-status-badge .ai-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* AI Loading Bar in Grid Title Row */
.grid-title-row {
    position: relative;
    overflow: visible;
}

.grid-ai-loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6358, transparent);
    background-size: 50% 100%;
    animation: loadingSlide 1.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes loadingSlide {
    0% {
        background-position: -50% 0;
    }
    100% {
        background-position: 150% 0;
    }
}

.ai-importing-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--scholaro-orange);
    margin-left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 99, 88, 0.1);
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Transcript Toolbar Layout */
.transcript-toolbar {
    width: 100%;
    padding: 0.5rem 0;
}

/* Main toolbar row - everything on one line */
.transcript-toolbar .toolbar-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    min-height: 38px;
}

/* Ensure all children align to center */
.transcript-toolbar .toolbar-main > * {
    display: flex;
    align-items: center;
}

/* Upper division row - separate row when shown */
.transcript-toolbar .toolbar-upper-division {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-lighter);
}

.transcript-toolbar .toolbar-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transcript-toolbar .toolbar-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transcript-toolbar .toolbar-middle {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-start;
}

/* Checkbox + Label groups */
.transcript-toolbar .toolbar-middle .k-checkbox + label {
    margin-left: 0.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Align checkboxes vertically */
    .transcript-toolbar .toolbar-middle .k-checkbox-wrap {
        display: inline-flex;
        align-items: center;
        align-self: center;
    }

.transcript-toolbar .toolbar-middle .k-checkbox {
    margin: 0;
    vertical-align: middle;
}

/* Radio button group alignment */
    .transcript-toolbar .toolbar-right .k-radio-list {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        background: var(--bg-light);
        border: 1px solid var(--border-lighter);
        border-radius: var(--radius-sm);
        padding: 0 10px;
        height: 32px;
        margin-right: 0px !important;
        flex-shrink: 0;
        min-width: max-content;
    }

.transcript-toolbar .toolbar-right .k-radio-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.375rem 0.75rem;
    border-right: 1px solid var(--border-lighter);
    height: 100%;
}

.transcript-toolbar .toolbar-right .k-radio-item:last-child {
    border-right: none;
}

.transcript-toolbar .toolbar-right .k-radio-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.transcript-toolbar .toolbar-right .k-radio-item .k-radio:checked + .k-radio-label {
    font-weight: 600;
}

.transcript-toolbar .toolbar-right {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-width: 0;
    overflow: visible;
}

/* Total Credits Group - styled box */
    .transcript-toolbar .total-credits-group {
        padding-right: 0px !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.625rem;
        background: var(--bg-light);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-lighter);
        height: 32px;
    }

.transcript-toolbar .total-credits-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

.transcript-toolbar label {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    color: var(--text-dark) !important;
}

.transcript-toolbar span {
    font-size: 0.875rem;
    white-space: nowrap;
    color: var(--text-dark);
}

/* Ensure Telerik components stay compact */
.transcript-toolbar .k-checkbox {
    margin: 0;
}

.transcript-toolbar .k-radio-list {
    gap: 0.5rem;
}

/* Ensure radio group component doesn't get cut off */
.transcript-toolbar .k-radio-group {
    flex-shrink: 0;
    min-width: max-content;
}

/* Transcript Notes Section */
.transcript-notes-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.3rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.transcript-notes-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transcript-notes-row .form-label-modern {
    margin-bottom: 0;
    white-space: nowrap;
    align-self: start;
    font-size: 15px;
}

.transcript-notes-row .k-combobox,
.transcript-notes-row .k-combobox .k-dropdown-wrap {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 0 !important;
}

.transcript-notes-section .k-textarea {
    min-height: 4rem !important;
}

.transcript-notes-section .k-textarea textarea {
    min-height: 4rem !important;
}

/* Responsive layout for smaller screens */
@media (max-width: 1100px) {
    .transcript-toolbar .toolbar-main {
        flex-wrap: wrap;
    }

    .transcript-toolbar .toolbar-left,
    .transcript-toolbar .toolbar-right {
        width: 100%;
    }

    .transcript-toolbar .toolbar-middle {
        justify-content: flex-start;
    }

    .transcript-notes-section {
        grid-template-columns: 1fr;
    }
}

/* === INSTITUTION PROFILE CARD STYLES === */
.institution-profile-card {
    background: #f5f5f5;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 0px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 1.5rem;
    max-width: calc(100vw - 3rem); /* Prevent overflow beyond viewport */
    box-sizing: border-box;
}

.institution-profile-header {
    background: #f5f5f5;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 3px;
}

.institution-profile-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.institution-profile-content {
    border: 20px solid whitesmoke;
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    gap: 3rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 25px;
    overflow: hidden; /* Prevent content overflow */
}

/* Zoom and scale adjustments - catches 150% zoom at 1920px = effective 1280px */
@media (max-width: 1600px) {
    .institution-profile-content {
        gap: 2rem;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    }

    
}

@media (max-width: 1400px) {
    .institution-profile-content {
        border: 15px solid whitesmoke;
        gap: 1.5rem;
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .institution-details-grid .row [class*="col-lg-3"] {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .institution-details-grid .row [class*="col-lg-9"] {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

.k-upload .k-dropzone, .k-upload .k-upload-dropzone {
    padding-block: var(--kendo-spacing-2, 0.5rem) !important;
    padding-inline: var(--kendo-spacing-2, 0.5rem) !important;
    border-width: 0 !important;
    text-align: end !important;
    display: grid !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 16px !important;
}

/* Logo Container */
.institution-logo-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.logo-wrapper {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.2s ease;
    position: relative;
}

.logo-wrapper:hover {
    border-color: var(--scholaro-orange);
    background: #fff;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-delete-action {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.logo-delete-action .k-button {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-delete-action .k-button:hover {
    background: #fff;
    border-color: var(--scholaro-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo-upload-wrapper {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.logo-upload-wrapper:hover {
    border-color: var(--scholaro-orange);
    background: #fff;
}

.logo-upload-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Institution Details Grid */
.institution-details-grid {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-width: 0;
    overflow: hidden;
    padding: 0px 5px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Institution Details Grid - Better responsive handling */
.institution-details-grid .row {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0; /* Allow row to shrink */
}

.institution-details-grid .row [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-width: 0; /* Allow columns to shrink */
}

.institution-details-grid .detail-label {
    margin-bottom: 0.25rem;
}

/* Ensure Telerik inputs respect container width */
.institution-details-grid .k-textbox,
.institution-details-grid .k-input,
.institution-details-grid .k-combobox,
.institution-details-grid .k-numerictextbox {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.institution-details-grid .k-textbox .k-input-inner,
.institution-details-grid .k-input .k-input-inner,
.institution-details-grid .k-combobox .k-input-inner,
.institution-details-grid .k-numerictextbox .k-input-inner {
    min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .institution-profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        border: 12px solid whitesmoke;
    }

    .institution-logo-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .institution-details-grid .row [class*="col-lg-3"] {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .institution-details-grid .row [class*="col-lg-9"] {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

@media (max-width: 992px) {
    .institution-details-grid .row [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .institution-details-grid .detail-label {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .detail-row-inline {
        grid-template-columns: 1fr;
    }

    .institution-profile-content {
        border: 10px solid whitesmoke;
        padding: 1rem;
    }

    .institution-profile-card {
        margin: 1rem;
    }
}
/* === END INSTITUTION PROFILE CARD STYLES === */

/* === EDUCATIONAL SYSTEM CARD STYLES === */
.educational-system-card {
    background: #f5f5f5;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 0px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 1.5rem;
}

.educational-system-header {
    background: #f5f5f5;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 3px;
}

.educational-system-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.educational-system-content {
    border: 20px solid whitesmoke;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 25px;
}

.education-system-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.education-system-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.education-system-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-sm);
}

.education-system-placeholder p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .education-system-image img {
        max-width: 100%;
    }
}
/* === END EDUCATIONAL SYSTEM CARD STYLES === */

/* === FOOTER CARD STYLES === */
.footer-card {
    background: #f5f5f5;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 0px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 1.5rem;
}

.footer-content {
    border: 20px solid whitesmoke;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 25px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

.evaluation-notes-section,
.assumptions-section {
    margin-bottom: 2rem;
}

.notes-text,
.assumptions-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.notes-text strong,
.assumptions-text strong {
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.assumptions-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.assumptions-text li {
    margin-bottom: 0.5rem;
}

.signature-section {
    margin-bottom: 1.5rem;
}

.signature-image {
    margin-bottom: 0.5rem;
}

.signature-image img {
    max-width: 200px;
    height: auto;
}

.signature-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.footer-bar {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 2rem -2rem -2rem -2rem;
    font-size: 0.875rem;
    border-radius: 0 0 25px 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        padding: 1.5rem;
    }

    .signature-section {
        margin-top: 2rem;
    }
}
/* === END FOOTER CARD STYLES === */

/* === ERROR PAGE STYLES === */
.error-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    padding: 2rem;
}

.error-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--scholaro-orange);
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.error-description {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.error-reasons {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 400px;
    padding-left: 1.5rem;
}

.error-reasons li {
    color: #515154;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.error-details {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.error-details summary {
    cursor: pointer;
    color: #515154;
    font-weight: 600;
    user-select: none;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.error-details summary:hover {
    color: var(--scholaro-orange);
}

.error-details code {
    display: block;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #dc3545;
    overflow-x: auto;
    margin-top: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.error-button svg {
    width: 16px;
    height: 16px;
}

.error-button.primary {
    background: var(--scholaro-orange);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.error-button.primary:hover {
    background: #e55a4e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.error-button.secondary {
    background: white;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.error-button.secondary:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
    .error-card {
        padding: 2rem 1.5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        justify-content: center;
    }
}
/* === END ERROR PAGE STYLES === */

/* === GRADING SCALE CARD STYLES === */
.grading-scale-section {
    background: #f5f5f5;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem;
}

.grading-scale-header {
    background: #f5f5f5;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 3px;
}

.grading-scale-header .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.grading-scale-content {
    border: 20px solid whitesmoke;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grading-scale-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.grading-scale-title {
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 0;
    margin-bottom: 0.25rem;
}

.grading-scale-description {
    font-weight: 400;
    text-align: center;
    color: #6e6e73;
    font-size: 0.8rem;
    padding: 0;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.grading-scale-table-wrapper {
    overflow-x: auto;
    margin: 0.25rem 0;
}

.grading-scale-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.grading-scale-table thead {
    background: #f5f5f7;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.grading-scale-table th {
    padding: 0.35rem 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.grading-scale-table th.text-left {
    text-align: left;
}

.grading-scale-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease;
}

.grading-scale-table tbody tr:hover {
    background-color: #f9f9f9;
}

.grading-scale-table tbody tr:last-child {
    border-bottom: none;
}

.grading-scale-table td {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
    vertical-align: middle;
}

.grading-scale-table td.text-left {
    text-align: left;
}

.grading-scale-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 0 0;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
}

.grading-scale-footer .show-columns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.grading-scale-footer .show-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.grading-scale-footer label {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-left: 0.25rem;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grading-scale-section {
        margin: 0.75rem 0.5rem;
        padding: 1rem;
    }

    .grading-scale-table th,
    .grading-scale-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.8125rem;
    }

    .grading-scale-footer .show-columns {
        flex-wrap: wrap;
    }
}
/* === END GRADING SCALE CARD STYLES === */

/* ===== CREATE PAGE - GLOBAL LAYOUT STYLES ===== */
/* These styles affect fixed-position elements and need to be global */

/* Split Layout Container */
.split-layout-container {
    display: flex;
    width: 100%;
    position: relative;
}

.form-content-area {
    flex: 1;
    min-width: 0;
}

/* PDF Preview Slide-out Panel */
.pdf-preview-panel {
    position: fixed;
    right: 0;
    top: 60px;
    width: 500px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transform: translateX(500px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.pdf-preview-panel.open {
    transform: translateX(0);
}

/* Pull Tab */
.pdf-preview-tab {
    position: fixed;
    right: 0;
    top: 173px;
    transform: translateY(-50%);
    background: #3c3c3c;
    color: white;
    padding: 12px 8px;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.15s, box-shadow 0.15s, transform 0.1s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    will-change: right;
}

    .pdf-preview-tab:hover {
        background: #282828;
    }

.pdf-preview-tab:active {
    box-shadow: -1px 1px 4px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(0.98);
}

.pdf-preview-tab.open {
    right: 500px;

}

/* Ripple effect on click */
.pdf-preview-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
    pointer-events: none;
}

.pdf-preview-tab:active::after {
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.4s;
}

.pdf-preview-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.pdf-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pdf-preview-actions {
    display: flex;
    gap: 8px;
}

.pdf-preview-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pdf-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-preview-loading,
.pdf-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.pdf-preview-loading p,
.pdf-preview-empty p {
    margin-top: 15px;
    font-size: 14px;
}

/* ===== FORM NAVIGATION SIDEBAR ===== */
.form-nav-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 220px;
    height: calc(100vh - 60px);
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 998;
    padding: 20px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    transition: width 0.3s ease;
}

.form-nav-header {
    padding: 0 20px 15px 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-nav-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    outline: none;
}

.nav-toggle-btn:hover {
    background: #e0e0e0;
    color: #ff6358;
}

.nav-toggle-btn:focus,
.nav-toggle-btn:active {
    outline: none;
    box-shadow: none;
}

/* Collapsed state */
.form-nav-sidebar.collapsed {
    width: 50px;
}

/* Expand on hover */
.form-nav-sidebar.collapsed:hover {
    width: 220px;
}

.form-nav-sidebar.collapsed .form-nav-header h4 {
    display: none;
}

/* Show header title on hover */
.form-nav-sidebar.collapsed:hover .form-nav-header h4 {
    display: block;
}

.form-nav-sidebar.collapsed .form-nav-header {
    padding: 0 10px 15px 10px;
    justify-content: center;
    border-bottom: none;
}

/* Restore header on hover */
.form-nav-sidebar.collapsed:hover .form-nav-header {
    padding: 0 20px 15px 20px;
    justify-content: space-between;
    border-bottom: 2px solid #e0e0e0;
}

/* Hide text and show icons when collapsed */
.form-nav-sidebar.collapsed .form-nav-list {
    padding-top: 10px;
}

.form-nav-sidebar.collapsed .form-nav-link {
    padding: 12px;
    justify-content: center;
    border-left: none;
    position: relative;
}

/* Restore link styling on hover */
.form-nav-sidebar.collapsed:hover .form-nav-link {
    padding: 10px 20px;
    justify-content: flex-start;
}

.form-nav-sidebar.collapsed .form-nav-icon {
    margin-right: 0;
}

/* Restore icon margin on hover */
.form-nav-sidebar.collapsed:hover .form-nav-icon {
    margin-right: 10px;
}

.form-nav-sidebar.collapsed .form-nav-link span {
    display: none;
}

/* Show text on hover */
.form-nav-sidebar.collapsed:hover .form-nav-link span {
    display: inline;
    position: static;
    transform: none;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    white-space: normal;
    z-index: auto;
    font-size: inherit;
    font-weight: inherit;
    box-shadow: none;
    pointer-events: auto;
    animation: none;
}

.form-nav-sidebar.collapsed .form-nav-subitem {
    display: none;
}

/* Show subitems on hover */
.form-nav-sidebar.collapsed:hover .form-nav-subitem {
    display: flex;
}

/* Restore subitem styling on hover */
.form-nav-sidebar.collapsed:hover .form-nav-subitem {
    padding-left: 60px;
}

/* Show nested subitems on hover */
.form-nav-sidebar.collapsed:hover .form-nav-subitem-nested {
    display: flex;
    padding-left: 75px;
}

.form-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-nav-item {
    margin: 0;
}

.form-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.form-nav-link:hover {
    background: #ffe8e6;
    color: #ff6358;
    border-left-color: #ff6358;
}

.form-nav-link.active {
    background: #ffe8e6;
    color: #ff6358;
    border-left-color: #ff6358;
    font-weight: 600;
}

.form-nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: 0.7;
}

.form-nav-link:hover .form-nav-icon,
.form-nav-link.active .form-nav-icon {
    opacity: 1;
}

/* Sub-menu item styling */
.form-nav-subitem {
    padding-left: 60px;
    font-size: 12px;
    font-weight: 400;
    border-left-width: 0;
    background: #f0f1f2;
    position: relative;
}

.form-nav-subitem::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50%;
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.2s;
}

.form-nav-subitem:hover {
    background: #ffe8e6;
    color: #ff6358;
    padding-left: 64px;
}

.form-nav-subitem:hover::before {
    background: #ff6358;
    width: 4px;
    height: 4px;
    left: 40px;
}

/* Nested subitem styles (for transcripts under credentials) */
.form-nav-subitem-nested {
    padding-left: 75px;
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.form-nav-subitem-nested::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
}

.form-nav-subitem-nested:hover {
    background: #ffe8e6;
    color: #ff6358;
    padding-left: 79px;
}

.form-nav-subitem-nested:hover::before {
    background: #ff6358;
    width: 3px;
    height: 3px;
    left: 60px;
}

.form-nav-subitem-nested .form-nav-icon {
    margin-right: 6px;
}

/* Hide nested subitems when sidebar is collapsed */
.form-nav-sidebar.collapsed .form-nav-subitem-nested {
    display: none;
}

.form-content-area.with-nav.with-preview {
    margin-right: 500px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===== REPORT TYPE SELECTOR ===== */
.report-type-selector {
    background: white;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.report-type-row {
    display: flex;
    align-items: flex-end;
    gap: 3rem;
}

.report-type-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-type-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* ===== GRADING SCALE STYLING ===== */
.grading-scales-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .grading-scales-grid {
        grid-template-columns: 1fr;
    }
}

#grading-scale .institution-profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin: 0;
}

.grading-scale-card-header {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    text-align: center;
}

.grading-scale-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.grading-scale-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Modern Toolbar */
.grading-scale-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.grading-scale-toolbar .toolbar-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #2c3e50;
    margin-right: 0.5rem;
}

.grading-scale-toolbar .toolbar-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.grading-scale-toolbar .toolbar-checkbox:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.grading-scale-toolbar .toolbar-checkbox span {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

/* Table Container */
.grading-scale-table-container {
    padding: 1.5rem;
}

#grading-scale .table-responsive {
    border-radius: 8px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    overflow: hidden;
}

#grading-scale .customTable {
    margin-bottom: 0;
}

#grading-scale .customTable thead th {
    background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
    font-weight: 600;
    font-size: 0.8125rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

#grading-scale .customTable tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s;
}

/* AI Import Dialog Styles */
.ai-import-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none; /* Allow clicking through when not visible */
}

.ai-import-dialog-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable click to close when visible */
}

.ai-import-dialog {
    position: fixed;
    right: 0;
    top: 60px;
    width: 900px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.3);
    transform: translateX(900px);
    transition: transform 0.3s ease-in-out;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.ai-import-dialog.open {
    transform: translateX(0);
}

/* Dialog Header */
.ai-import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    flex-wrap: wrap;
    gap: 12px;
}

.ai-import-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-import-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Loading Overlay */
.ai-import-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.ai-import-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 32px 48px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-import-loader-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
}

/* Dialog Content - Two Panel Layout */
.ai-import-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Left Panel - Document List */
.ai-import-documents-panel {
    width: 400px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    background: white;
}

    .ai-import-documents-panel .panel-header {
        display: flex;
        gap: 1px;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-lighter);
    }

.ai-import-documents-panel .panel-header h4 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ai-import-chx {
    top: -3px;
}

.document-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 4px 6px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.no-documents {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Institution Groups Section */
.institution-groups-section {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
    max-height: 239px;
    overflow-y: auto;
}

.institution-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.institution-group-item + .institution-group-item {
    margin-top: 8px;
}

.institution-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    
}

.institution-group-label strong {
    font-size: 0.875rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.doc-count-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.institution-group-country {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 300px;
}

.institution-group-country .k-combobox.k-focus,
.institution-group-country .k-combobox:focus-within {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.institution-group-country .k-input-inner:focus {
    box-shadow: none !important;
    outline: none !important;
}

.document-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 10px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}



    .document-item.selected {
        border-color: #ffb058;
        box-shadow: 4px 3px 3px rgb(197 197 197 / 10%);
    }

    .document-item.previewing {
        background: #fff3ed;
    }

.document-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
}

.document-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    line-height: 1.4;
}

.document-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.credential-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.credential-label {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
}

.document-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.document-institution-select {
    min-width: 140px;
    max-width: 160px;
}

.document-institution-select .k-dropdownlist {
    width: 100%;
}

/* ============================================
   Document Order Controls - Bordered capsule style
   ============================================ */
.document-order-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.order-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.document-order-controls .reorder-btn {
    width: 28px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6358;
    font-size: 8px;
    transition: background 0.1s ease;
}

.document-order-controls .reorder-btn:hover:not(.disabled):not(:disabled) {
    background: #f3f4f6;
    color: #374151;
}

.document-order-controls .reorder-btn.disabled,
.document-order-controls .reorder-btn:disabled {
    color: #d1d5db;
    cursor: default;
    background: #fff;
}

/* Program/University Match Indicator */
.program-input-wrapper,
.university-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.program-input-wrapper .k-combobox,
.university-input-wrapper .k-combobox {
    flex: 1;
}

/* Match badge container - icon and text inside */
.program-match-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 6px;
    margin-right: 8px;
    flex-shrink: 0;
    cursor: help;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
}

.program-no-match-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 6px;
    margin-right: 8px;
    flex-shrink: 0;
    cursor: help;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
}

.program-match-icon {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    line-height: 1;
}

.program-match-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.program-no-match-icon {
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    line-height: 1;
}

.program-no-match-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/*.k-i-file-excel {
    color: #009200 !important;
}

.k-i-x-outline::before {
    content: "\e11c";
    color: darkred !important;

}

.k-i-calculator {
    color: dimgray !important;
}*/
/* Temporary highlight animation - fades after 8 seconds and collapses space */
@keyframes iconFadeOut {
    0% { opacity: 1; width: 32px; height: 32px; margin-right: 8px; border-width: 1px; }
    87% { opacity: 1; width: 32px; height: 32px; margin-right: 8px; border-width: 1px; }
    95% { opacity: 0; width: 32px; height: 32px; margin-right: 8px; border-width: 1px; }
    100% { opacity: 0; width: 0; height: 0; margin-right: 0; border-width: 0; }
}

@keyframes matchHighlight {
    0% { background-color: #dcfce7; border-color: #86efac !important; }
    87% { background-color: #dcfce7; border-color: #86efac !important; }
    100% { background-color: transparent; border-color: rgba(0,0,0,.08) !important; }
}

@keyframes noMatchHighlight {
    0% { background-color: #fef3c7; border-color: #fbbf24 !important; }
    87% { background-color: #fef3c7; border-color: #fbbf24 !important; }
    100% { background-color: transparent; border-color: rgba(0,0,0,.08) !important; }
}

/* Matched state - green border with animation (only when animating) */
.program-input-wrapper.matched.animating .k-combobox,
.program-input-wrapper.matched.animating .k-combobox .k-input-inner,
.program-input-wrapper.matched.animating .k-combobox .k-picker-wrap,
.university-input-wrapper.matched.animating .k-combobox,
.university-input-wrapper.matched.animating .k-combobox .k-input-inner,
.university-input-wrapper.matched.animating .k-combobox .k-picker-wrap {
    animation: matchHighlight 8s ease-out forwards;
    border-radius: 4px;
}

/* Not matched state - yellow/orange border with animation (only when animating) */
.program-input-wrapper.not-matched.animating .k-combobox,
.program-input-wrapper.not-matched.animating .k-combobox .k-input-inner,
.program-input-wrapper.not-matched.animating .k-combobox .k-picker-wrap,
.university-input-wrapper.not-matched.animating .k-combobox,
.university-input-wrapper.not-matched.animating .k-combobox .k-input-inner,
.university-input-wrapper.not-matched.animating .k-combobox .k-picker-wrap {
    animation: noMatchHighlight 8s ease-out forwards;
    border-radius: 4px;
}

/* Right Panel - Document Preview */
    .ai-import-preview-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: #fafafa;
    }

        .ai-import-preview-panel .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid var(--border-lighter);
        }

            .ai-import-preview-panel .panel-header h4 {
                margin: 0;
                font-size: 0.9375rem;
                font-weight: 600;
                color: var(--text-dark);
            }

    .preview-doc-id {
        font-size: 0.8125rem;
        color: var(--text-secondary);
    }

    .preview-content {
        flex: 1;
        position: relative;
        overflow: hidden;
    }

    .document-preview-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .no-preview {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--text-muted);
        font-size: 0.9375rem;
    }
    /* Dialog Footer */
    .ai-import-footer {
        border-top: 1px solid var(--border-light);
        background: white;
        padding: 16px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .import-options {
        display: flex;
        align-items: center;
        gap: 20px;
        flex: 1;
    }

    .option-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .option-group label {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0;
        }

    .credential-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: #f0f7ff;
        border-radius: var(--radius-sm);
        border: 1px solid #4a90e2;
        font-size: 0.8125rem;
        color: #2c5f8d;
    }

        .credential-info strong {
            color: #1a4d7a;
        }

        .credential-info.warning {
            background: #fff8e1;
            border-color: #ffb74d;
            color: #e65100;
        }

    .import-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        font-size: 0.8125rem;
    }

    .institution-summary-item {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        background: #f8f9fa;
        border-radius: 10px;
        color: #495057;
        white-space: nowrap;
    }

        .institution-summary-item strong {
            color: #212529;
            margin-right: 4px;
        }

    .import-result-message {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        border: 1px solid;
        font-size: 0.8125rem;
        font-weight: 500;
    }

        .import-result-message.success {
            background: #e8f5e9;
            border-color: #4caf50;
            color: #2e7d32;
        }

        .import-result-message.error {
            background: #ffebee;
            border-color: #f44336;
            color: #c62828;
        }

    .action-buttons {
        display: flex;
        gap: 12px;
    }
    /* Responsive */
    @media (max-width: 1200px) {
        .ai-import-dialog {
            width: 700px;
            transform: translateX(700px);
        }

        .ai-import-documents-panel {
            width: 300px;
        }
    }

    @media (max-width: 768px) {
        .ai-import-dialog {
            width: 100%;
            transform: translateX(100%);
        }

        .ai-import-content {
            flex-direction: column;
        }

        .ai-import-documents-panel {
            width: 100%;
            height: 250px;
            border-right: none;
            border-bottom: 1px solid var(--border-light);
        }

        .ai-import-footer {
            flex-direction: column;
            align-items: stretch;
        }

        .action-buttons {
            width: 100%;
        }
    }

    .document-institution-select {
        flex: 1;
    }

        .document-institution-select .k-dropdown {
            font-size: 0.8125rem;
            width: 100%;
        }
    /* AI Import Pull Tab */
    .ai-import-tab {
        position: fixed;
        right: 0;
        top: 282px;
        transform: translateY(-50%);
        background: #ff6358;
        color: white;
        padding: 12px 8px;
        cursor: pointer;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
        z-index: 998;
        transition: right 0.3s ease-in-out, background 0.15s, box-shadow 0.15s, transform 0.1s;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-weight: 600;
        font-size: 14px;
        user-select: none;
        will-change: right;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 110px;
        min-width: 42px;
    }

        .ai-import-tab .import-spinner {
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: center;
            justify-content: center;
            writing-mode: initial;
            height: 85px;
        }

        .ai-import-tab .import-spinner::before,
        .ai-import-tab .import-spinner::after {
            content: '';
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            animation: pulse-dots 1.4s ease-in-out infinite;
        }

        .ai-import-tab .import-spinner::before {
            animation-delay: 0s;
        }

        .ai-import-tab .import-spinner::after {
            animation-delay: 0.7s;
        }

        @keyframes pulse-dots {
            0%, 100% {
                opacity: 0.3;
                transform: scale(0.8);
            }
            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        .ai-import-tab:hover {
            background: #ea5a51;
        }

        .ai-import-tab:active {
            box-shadow: -1px 1px 4px rgba(0,0,0,0.3);
            transform: translateY(-50%) scale(0.98);
        }

        .ai-import-tab.open {
            right: 900px;
        }

        .ai-import-tab::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            /*transition: width 0.6s, height 0.6s, opacity 0.6s;*/
            opacity: 0;
            pointer-events: none;
        }

        .ai-import-tab:active::after {
            width: 100px;
            height: 100px;
            opacity: 0;
            transition: width 0s, height 0s, opacity 0.4s;
        }

    @media (max-width: 1200px) {
        .ai-import-tab.open {
            right: 700px;
        }
    }

    @media (max-width: 768px) {
        .ai-import-tab {
            top: 300px;
        }

            .ai-import-tab.open {
                right: 100%;
            }
    }



/* Transcript divider within credential card */
.credential-transcript-divider {
    margin: 2rem 0 1.5rem 0;
    padding-top: 2rem;
    text-align: center;
}

.credential-transcript-divider h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    white-space: nowrap;
}

.credential-transcript-divider h4::before,
.credential-transcript-divider h4::after {
    content: '';
    flex: 1;
    height: 2px;
}

.credential-transcript-divider h4::before {
    background: linear-gradient(to right, transparent, #ff6358);
}

.credential-transcript-divider h4::after {
    background: linear-gradient(to left, transparent, #ff6358);
}

.credential-transcript-divider p {
    font-size: 0.875rem;
    color: #6e6e73;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Transcript section within credential card */
.credential-transcript-section {
    /*padding: 1.5rem 0;
   background: #fafbfc;*/
}

/* Transcript header within credential */
.credential-transcript-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Transcript container styling */
.containerTanscript {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ===== UNIVERSITY LOOKUP DIALOG ===== */
.k-window.university-lookup-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.k-window.university-lookup-window .k-window-titlebar {
    background: #f5f5f5;
    color: var(--text-dark);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 1rem;
}

.k-window.university-lookup-window .k-window-titlebar .k-window-title {
    font-weight: 600;
}

.k-window.university-lookup-window .k-window-actions .k-button {
    color: var(--text-secondary);
}

.k-window.university-lookup-window .k-window-content {
    padding: 0;
}

.university-lookup-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
}

.university-lookup-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-lighter);
}

.university-lookup-toolbar label {
    font-weight: 500;
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.university-lookup-toolbar .k-combobox,
.university-lookup-toolbar .k-textbox {
    height: 32px;
}

.university-lookup-toolbar .k-button.search-btn {
    height: 32px;
    padding: 0 12px;
}

.university-lookup-grid {
    flex: 1;
    overflow: hidden;
    padding: 0;
    background: var(--bg-white);
}

.university-lookup-grid .k-grid {
    border: none;
    font-size: 0.82rem;
}

.university-lookup-grid .k-grid-header th {
    padding: 8px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #fafafa;
    border-bottom: 1px solid var(--border-lighter);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Filter row styling */
.university-lookup-grid .k-grid-header .k-filter-row th {
    padding: 4px 4px;
    background: #fff;
}

.university-lookup-grid .k-grid-header .k-filter-row .k-filtercell {
    padding: 0;
}

.university-lookup-grid .k-grid-header .k-filter-row .k-filtercell > span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.university-lookup-grid .k-grid-header .k-filter-row .k-textbox,
.university-lookup-grid .k-grid-header .k-filter-row .k-input {
    font-size: 0.75rem;
    padding: 4px 6px;
    height: 28px;
}

.university-lookup-grid .k-grid-header .k-filter-row .k-button {
    padding: 2px;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.university-lookup-grid .k-grid td {
    padding: 6px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

.university-lookup-grid .k-grid td:first-child {
    text-align: center;
}

.university-lookup-grid .k-grid td:first-child img {
    display: block;
    margin: 0 auto;
}

.university-lookup-grid .k-grid-content tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.university-lookup-grid .k-grid .k-selected,
.university-lookup-grid .k-grid .k-selected:hover {
    background: #e3f2fd !important;
}

.university-lookup-grid .k-pager {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #fafafa;
    border-top: 1px solid var(--border-lighter);
}

.university-lookup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border-lighter);
    background: #fafafa;
}

.k-window.university-lookup-window .k-window-content {
    padding: 0;
}

/* University search button inline with ComboBox */
.university-input-flex {
    display: flex;
    gap: 4px;
    align-items: stretch;
    width: 100%;
}

.university-input-flex .k-combobox {
    flex: 1;
}

button.university-lookup-btn {
    flex-shrink: 0;
    height: auto;
    padding: 0 10px;
    min-width: fit-content;
    border-radius: var(--radius-sm);
    background: #f5f5f7;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.15s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

button.university-lookup-btn svg {
    width: 16px;
    height: 16px;
}

button.university-lookup-btn:hover:not(:disabled) {
    background: #e8e8ed;
    color: var(--text-dark);
    border-color: var(--border-light);
}

button.university-lookup-btn:disabled,
button.university-lookup-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

button.university-lookup-btn:focus {
    outline: none;
    box-shadow: none;
}
