/* Main Container */
#skills-radar-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--theme-palette-color-8); /* Dark blue background */
    overflow: hidden;
    direction: rtl;
    font-family: var(--theme-font-family);
    font-weight: 300; /* Set default font weight to light */
    font-size: var(--theme-font-size);
    line-height: var(--theme-line-height);
    letter-spacing: var(--theme-letter-spacing);
    display: flex;
}

/* Logo Styles */
.radar-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.radar-logo:hover {
    transform: scale(1.05);
}

.radar-logo img {
    max-width: 150px;
    height: auto;
}

/* Ensure all text inherits the light weight by default */
#skills-radar-container * {
    font-weight: inherit;
}

/* Typography - Bold elements */
.panel-header h2,
.tooltip-title,
.category-header,
.skill-list-info h4,
.institute-list-item h3,
.panel-title {
    font-weight: 700; /* Bold weight for headings */
}

/* Common headings style */
h1, h2, h3, h4, h5, h6,
.panel-header h2,
.category-header,
.skill-list-info h4,
.institute-list-item h3,
.panel-title,
.tooltip-title,
.category-title,
.skill-title,
.institute-title {
    color: var(--theme-palette-color-8) !important; /* White color for all headings */
}

/* Vertical Navigation */
.vertical-nav {
    width: 70px;
    height: 100vh;
    background-color: var(--theme-palette-color-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: relative;
    z-index: 1000; /* Raise above filter and canvas, align with main panel */
}

/* Nav and Panel tab shared styles */
.nav-item, .panel-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    color: var(--theme-palette-color-8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item:hover, .panel-tab:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

.nav-item.active, .panel-tab.active {
    opacity: 1;
    background-color: rgba(255,255,255,0.15);
}

.nav-item.active:after, .panel-tab.active:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--theme-palette-color-1);
}

.nav-item.active:after {
    left: 52px;
}

.panel-tab.active:after {
    left: -1px;
}

.nav-icon, .panel-tab-icon {
    font-size: 22px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon Styles */
.nav-icon img, .panel-tab-icon img, .filter-tab-btn .icon img, .svg-icon {
    width: 24px;
    height: 24px;
    color: inherit;
    fill: currentColor;
}

.nav-icon svg, .panel-tab-icon svg, .filter-tab-btn .icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
    fill: currentColor;
}

.nav-label, .panel-tab-label {
    font-size: 10px;
    text-align: center;
    display: none;
    position: absolute;
    top: 100%;
    background-color: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 100;
}

.nav-item:hover .nav-label, .panel-tab:hover .panel-tab-label {
    display: block;
}

.panel-tab-label {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

/* Radar Content Area */
.radar-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Establish base stacking context for canvas */
}

#skills-radar-canvas {
    display: block;
    margin: 0 auto;
    background: transparent;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* Panel Styles */
#skills-radar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 800px; /* Default width: tabs + content */
    height: 100vh;
    background: var(--theme-palette-color-3); /* Background for the content area part */
    color: var(--theme-palette-color-8);
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: width 0.3s cubic-bezier(.4,0,.2,1); /* Added: Transition width */
    overflow: hidden; /* Changed from auto to hidden - Crucial for clipping */
    padding: 0;
    direction: rtl;
    font-family: var(--theme-font-family);
    display: flex; 
}

/* New style for when content is hidden - replaces old .inactive */
#skills-radar-panel.panel-content-hidden {
    width: 70px; /* Shrink to width of panel-tabs */
}

/* Remove old .inactive style for sliding the whole panel */
/*
#skills-radar-panel.inactive {
    right: -800px; 
}
*/

/* Panel Content Area */
.panel-content-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--theme-content-spacing);
    position: relative;
    background-color: var(--theme-palette-color-9);
    height: 100%; /* Added: ensure full height */
    /* transform and its transition are no longer needed here for sliding */
}

/* Panel Tabs */
.panel-tabs {
    width: 70px;
    background-color: var(--theme-palette-color-9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    padding: 20px 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    height: 100%; 
    flex-shrink: 0; /* Added: Prevent shrinking */
}

.panel-tab {
    border-radius: 8px;
    margin: 10px 0;
}

/* Common image container styles */
.skill-image, .category-image, .institute-image, .page-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--theme-palette-color-1); /* Teal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-image img, .category-image img, .institute-image img, .page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Common content section styles */
.skill-content, .category-description, .institute-description, .page-content {
    margin-bottom: calc(var(--theme-content-spacing) * 1.5);
    line-height: var(--theme-line-height);
    font-size: var(--theme-font-size);
}

.skill-content p, .category-description p, .institute-description p, .page-content p {
    margin-bottom: var(--theme-content-spacing);
}

.skill-content ul, .category-description ul, .institute-description ul, .page-content ul {
    margin-right: var(--theme-content-spacing);
    margin-bottom: var(--theme-content-spacing);
}

.skill-content ul li, .category-description ul li, .institute-description ul li, .page-content ul li {
    margin-bottom: calc(var(--theme-content-spacing) * 0.5);
}

/* Lists styling */
.skills-list, .institutes-list, .categories-list, .institute-skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Common list item styles */
.skill-item, .institute-item, .category-list-item, .skill-list-item, .institute-list-item {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Clickable panel items styling */
.panel-item, .skill-list-item, .category-list-item, .institute-list-item {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.panel-item:hover, .skill-list-item:hover, .category-list-item:hover, .institute-list-item:hover {
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.panel-item:active, .skill-list-item:active, .category-list-item:active, .institute-list-item:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Icon styles for list items */
.skill-icon, .institute-icon, .category-list-icon, .skill-list-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: var(--theme-content-spacing);
    background: var(--theme-palette-color-1); /* Teal */
}

.skill-icon img, .institute-icon img, .category-list-icon img, .skill-list-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info sections in list items */
.skill-info, .institute-info, .category-list-info, .skill-list-info {
    flex: 1;
}

.skill-info h4, .institute-info h4, .category-list-info h4, .skill-list-info h4 {
    margin: 0 0 8px;
    font-size: calc(var(--theme-font-size) * 1.125);
    color: var(--theme-palette-color-8);
}

.skill-info p, .institute-info p, .category-list-info p, .skill-list-info p {
    margin: 0;
    font-size: var(--theme-font-size);
    color: rgba(255,255,255,0.8);
}

/* Page panel specific */
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--theme-content-spacing) 0;
}

.page-content h3, .page-content h4 {
    margin: calc(var(--theme-content-spacing) * 1.5) 0 var(--theme-content-spacing);
}

.page-content a {
    color: var(--theme-palette-color-1); /* Teal */
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--theme-palette-color-2); /* Green */
    text-decoration: underline;
}

/* Section Headers */
.category-skills h3, .skill-institutes h3, .institute-skills h3 {
    font-size: calc(var(--theme-font-size) * 1.25);
    margin: 0 0 var(--theme-content-spacing);
    padding-bottom: calc(var(--theme-content-spacing) * 0.66);
    border-bottom: 2px solid var(--theme-palette-color-1); /* Teal */
    color: var(--theme-palette-color-8); /* White */
}

/* Loading and error styles */
.loading-indicator, .panel-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--theme-palette-color-8);
    text-align: center;
    padding: 40px 20px;
}

.spinner, .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 4px solid var(--theme-palette-color-1); /* Teal */
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.error-message, .panel-error-message {
    text-align: center;
    padding: 20px;
    color: var(--theme-palette-color-8); /* White */
    background-color: rgba(255,0,0,0.2);
    border-radius: 8px;
    margin: 20px;
    position: relative; /* For positioning close buttons */
    min-height: 100px; /* Ensure enough space for the message and buttons */
}

/* New Filter Panel Styles */
#new-filter-container {
    position: fixed;
    bottom: 70px; /* Position above bottom tabs ON MOBILE, desktop might vary */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(var(--theme-palette-color-3-rgb), 0.95); /* Navy, semi-transparent */
    color: var(--theme-palette-color-8); /* White */
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 900; /* Corrected: Below side navs (1000), above canvas (1) for DESKTOP */
    transition: all 0.3s ease-in-out;
    width: 400px; /* Default collapsed width */
    max-width: 90vw;
    overflow: hidden;
}

#new-filter-container.collapsed {
    height: 60px; /* Height of the tab bar */
    border-radius: 15px;
    background-color: var(--theme-palette-color-9);
}

#new-filter-container.expanded {
    height: auto;
    min-height: 250px;
    max-height: calc(100vh - 140px); /* Don't overlap with bottom tabs */
    width: 600px; /* Wider when expanded */
    border-radius: 15px 15px 0 0;
    background-color: var(--theme-palette-color-9);
}

/* Filter tabs and buttons */
.filter-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background-color: rgba(var(--theme-palette-color-4-rgb), 0.8); /* Dark Blue, semi-transparent */
    padding: 0 10px;
    border-bottom: 1px solid rgba(var(--theme-palette-color-1-rgb), 0.3); /* Teal border */
}

/* Common button styles for filter tabs */
.filter-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background-color: transparent;
    color: var(--theme-palette-color-8);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    position: relative;
}

.filter-tab-btn .icon {
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-tab-btn.expand-btn .icon {
    transition: transform 0.3s ease;
}

#new-filter-container.expanded .filter-tab-btn.expand-btn .icon {
    transform: rotate(180deg);
}

/* Filter content sections */
.filter-content {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(70vh - 60px); /* Max height minus tab bar */
    display: none; /* Hidden by default, shown when expanded */
    color: var(--theme-palette-color-8); /* Ensure all text is white */
}

#new-filter-container.expanded .filter-content {
    display: block;
}

.filter-content-section {
    display: none; /* Each section hidden by default */
    animation: fadeIn 0.3s ease;
    color: var(--theme-palette-color-8); /* White text */
}

.filter-content-section.active {
    display: block;
}

/* Filter headings */
.filter-content-section h4, .filter-content-section h5, .filter-group-title {
    color: var(--theme-palette-color-8); /* White */
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.filter-content-section h5, .filter-group-title {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1em;
}

/* Readiness sort list */
#readiness-sort-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

#readiness-sort-list li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: rgba(var(--theme-palette-color-8-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.sort-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.sort-icon img, .sort-icon svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

#readiness-sort-list li:hover,
#readiness-sort-list li.active {
    background-color: rgba(var(--theme-palette-color-1-rgb), 0.3);
}

/* Search input */
#new-search-skills {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(var(--theme-palette-color-1-rgb), 0.5); /* Teal border */
    border-radius: 5px;
    background-color: rgba(var(--theme-palette-color-5-rgb), 0.1); /* Light Gray, very transparent */
    color: var(--theme-palette-color-8); /* White */
}
#new-search-skills::placeholder {
    color: rgba(var(--theme-palette-color-8-rgb), 0.7); /* White, semi-transparent */
}

/* Filter groups */
#new-category-filters, #new-institute-filters {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(var(--theme-palette-color-4-rgb), 0.3);
    border-radius: 8px;
    color: var(--theme-palette-color-8); /* White text */
}

/* Common filter checkbox styles */
#new-category-filters label, #new-institute-filters label,
.filter-content-section .settings-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-align: right;
    color: var(--theme-palette-color-8); /* White text */
}

.filter-checkbox-text {
    color: var(--theme-palette-color-8); /* White text */
}

#new-category-filters label:hover, #new-institute-filters label:hover,
.filter-content-section .settings-group label:hover {
    background-color: rgba(var(--theme-palette-color-1-rgb), 0.2); /* Teal, transparent */
}

#new-category-filters input[type="checkbox"], #new-institute-filters input[type="checkbox"],
.filter-content-section .settings-group input[type="checkbox"] {
    margin-left: 8px; /* For RTL, change to margin-right if LTR text */
    accent-color: var(--theme-palette-color-1); /* Teal */
}

/* Button styles */
.filter-content-section .clear-history-btn, .retry-btn {
    display: block;
    padding: 10px;
    background-color: var(--theme-palette-color-1); /* Blue */
    color: var(--theme-palette-color-8); /* White */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}
.filter-content-section .clear-history-btn:hover,
.retry-btn:hover {
    background-color: var(--theme-palette-color-2);
}

/* Ensure consistent text colors in filters */
.filter-content input[type="text"],
.filter-content input[type="search"],
.filter-content select,
.filter-content option,
.filter-content p,
.filter-content span,
.filter-content div,
.filter-no-results {
    color: var(--theme-palette-color-8); /* White text */
}

.filter-no-results {
    text-align: center;
    padding: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Node and text states */
.node-inactive, .text-inactive {
    opacity: 0.3;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.category-focused .node-inactive, .category-focused .text-inactive {
    opacity: 0.15; /* Even more transparent when a category is focused */
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.category-focused .node-active, .category-focused .text-active {
    opacity: 1;
    filter: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.line-inactive {
    opacity: 0.15;
}

/* Tooltip */
.radar-tooltip {
    position: absolute;
    background-color: var(--theme-palette-color-3);
    color: var(--theme-palette-color-8);
    border: 1px solid var(--theme-palette-color-1);
    border-radius: 8px;
    padding: 10px 15px;
    max-width: 300px;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: var(--theme-font-family);
    font-size: calc(var(--theme-font-size) * 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none;
    pointer-events: none;
}

.radar-tooltip.visible {
    opacity: 1;
    display: block;
}

.tooltip-title {
    font-weight: var(--theme-button-font-weight);
    margin-bottom: 5px;
    border-bottom: 1px solid var(--theme-palette-color-1);
    padding-bottom: 3px;
}

.tooltip-category {
    color: var(--theme-palette-color-2);
    font-size: calc(var(--theme-font-size) * 0.8);
    margin-bottom: 5px;
}

.tooltip-description {
    font-size: calc(var(--theme-font-size) * 0.8);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* No results message */
.no-results-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: var(--theme-palette-color-8);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 900;
    display: none;
    text-align: center;
}

.no-results-message.visible {
    display: block;
}

/* Panel header and content */
.panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--theme-content-spacing);
    padding-top: var(--theme-content-spacing);
}

.panel-header h2 {
    margin: 15px 0 0;
    font-size: calc(var(--theme-font-size) * 1.5);
    font-weight: var(--theme-button-font-weight);
    text-align: center;
    color: var(--theme-palette-color-8);
}

.panel-tab-content {
    padding: 20px;
}

/* Close button */
.close-panel-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: var(--theme-palette-color-8);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    z-index: 1001;
    transition: all 0.2s ease;
}

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

/* Skill list item specific */
.skill-list-item.active {
    background-color: rgba(var(--theme-palette-color-1-rgb), 0.2);
    border-right: 3px solid var(--theme-palette-color-1);
}

.skill-list-item.visited {
    opacity: 0.8;
}

.skill-list-item.visited::after {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-palette-color-2);
    font-size: 1.2em;
}

.skill-list-item.active.visited::after {
    color: var(--theme-palette-color-1);
}

/* SVG icon styling */
.panel-tab-icon img,
.filter-tab-btn .icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.panel-tab.active .panel-tab-icon img,
.filter-tab-btn.active .icon img {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.panel-tab:hover .panel-tab-icon img,
.filter-tab-btn:hover .icon img {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

/* Mobile navigation buttons */
.mobile-close-btn, 
.mobile-back-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.2s ease;
}

.mobile-close-btn:hover, 
.mobile-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.mobile-close-btn {
    top: 10px;
    right: 10px;
}

.mobile-back-btn {
    top: 10px;
    left: 10px;
}

.mobile-close-btn svg,
.mobile-back-btn svg,
.mobile-close-btn img,
.mobile-back-btn img {
    width: 24px;
    height: 24px;
    color: white;
    fill: currentColor;
}

/* Class to hide filter panel when content panel is active on mobile */
.filter-panel-hidden-by-content {
    display: none !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
    /* Main container adjustments */
    #skills-radar-container {
        height: 100vh;
        padding-bottom: 60px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Hide logo when panel is active on mobile */
    #skills-radar-panel.panel-active ~ .radar-logo {
        display: none;
    }
    
    /* Move panel tabs to bottom */
    .panel-tabs {
        width: 100%;
        height: 60px;
        flex-direction: row;
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--theme-palette-color-4);
        z-index: 1100;
        pointer-events: auto;
    }
    
    /* Adjust tabs for horizontal layout */
    .panel-tab {
        margin: 0;
        flex: 1;
        height: 100%;
        border-radius: 0;
    }
    
    /* Panel layout & positioning */
    #skills-radar-panel {
        width: 100%;
        height: calc(100vh - 60px);
        right: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }
    
    #skills-radar-panel.panel-active {
        pointer-events: auto;
    }
    
    /* Content area - this is what slides */
    .panel-content-area {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--theme-palette-color-9);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    #skills-radar-panel.panel-active .panel-content-area {
        transform: translateY(0);
    }
    
    /* Header section adjustments */
    .panel-header {
        padding-top: 40px;
    }
    
    /* Filter panel positioning */
    #new-filter-container {
        bottom: 70px;
        z-index: 1040;
    }
    
    #new-filter-container.expanded {
        max-height: calc(100vh - 140px);
    }
    
    /* Hide labels on mobile */
    .panel-tab-label {
        display: none;
    }

    /* Maintain full width for panel */
    #skills-radar-panel.panel-content-hidden {
        width: 100%;
    }
    
    /* Reduce padding for tab content */
    .panel-tab-content {
        padding: 10px 0;
    }
    
    /* Adjust icon sizes */
    .skill-icon, .institute-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* Smaller mobile screens */
@media screen and (max-width: 480px) {
    #skills-radar-panel.inactive .panel-content-area {
        transform: translateY(-100%);
    }
    
    .panel-header h2 {
        font-size: calc(var(--theme-font-size) * 1.25);
    }
} 
.institute-list-icon {
    aspect-ratio: 1/1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.institute-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}