/* ========================================
   INSTITUTIONAL NAVBAR STYLES
   ======================================== */
.navbar-institutional {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

.navbar-institutional .nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-institutional .nav-brand a {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 0.5rem;
}

.nav-logo {
    height: 38px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 6px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    background: #fff;
}

.navbar-institutional .username {
    color: rgba(255, 255, 255, 0.9);
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   ROADMAP SECTION STYLES - GANTT STYLE
   ======================================== */
.roadmap-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.roadmap-widget-label {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
    z-index: 20;
}

.roadmap-widget-label i {
    font-size: 0.85rem;
}

/* Legenda Gantt */
.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0 0.75rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: #64748b;
}

.legend-bar-total {
    width: 24px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.legend-bar-progress {
    width: 24px;
    height: 6px;
    background: linear-gradient(90deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    border-radius: 3px;
}

.legend-line-today {
    width: 2px;
    height: 14px;
    background: #ef4444;
    border-radius: 1px;
    box-shadow: 0 0 4px 1px rgba(239, 68, 68, 0.4);
}

.legend-area-past {
    width: 20px;
    height: 12px;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 2px;
}

/* Gantt Container */
/* Gantt Container con linea verticale unica */
.roadmap-gantt {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    position: relative;
}

/* Linea verticale blu unica continua */
.roadmap-gantt::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 25px;
    width: 2px;
    background: #94a3b8;
    z-index: 5;
}

/* Linea rossa "oggi" continua */
.roadmap-gantt::after {
    content: '';
    position: absolute;
    left: calc(140px + 1.5rem + 5.5%);
    top: 0;
    bottom: 25px;
    width: 1px;
    background: #ef4444;
    z-index: 10;
    box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.6);
}

/* Rettangolo passato semi-trasparente continuo */
.gantt-past-area {
    position: absolute;
    left: calc(140px + 2px);
    top: 0;
    width: calc(1.5rem + 5.5% - 2px);
    bottom: 25px;
    background: rgba(100, 116, 139, 0.18);
    z-index: 4;
    pointer-events: none;
}

/* Gantt Row - 1 modulo per riga */
.gantt-row {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding: 0.5rem 0;
    position: relative;
}

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

/* Labels Column */
.gantt-labels {
    width: 140px;
    min-width: 140px;
    display: flex;
    align-items: center;
    padding: 0 1rem 0 0;
}

.gantt-module-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a365d;
    white-space: nowrap;
    line-height: 1.4;
}

/* Bars Column con griglia mesi */
.gantt-bars {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.4rem 0 0.4rem 1.5rem;
    min-height: 28px;
}

/* Individual Bar - posizione assoluta per controllo preciso */
.gantt-bar {
    position: absolute;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    z-index: 2;
}

.gantt-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Progress percentages */
.gantt-bar[data-progress="0"]::before { width: 0%; }
.gantt-bar[data-progress="5"]::before { width: 5%; }
.gantt-bar[data-progress="10"]::before { width: 10%; }
.gantt-bar[data-progress="15"]::before { width: 15%; }
.gantt-bar[data-progress="20"]::before { width: 20%; }
.gantt-bar[data-progress="30"]::before { width: 30%; }
.gantt-bar[data-progress="40"]::before { width: 40%; }
.gantt-bar[data-progress="50"]::before { width: 50%; }
.gantt-bar[data-progress="60"]::before { width: 60%; }
.gantt-bar[data-progress="70"]::before { width: 70%; }
.gantt-bar[data-progress="80"]::before { width: 80%; }
.gantt-bar[data-progress="100"]::before { width: 100%; }

/* Timeline Mesi */
.gantt-timeline {
    display: flex;
    margin-left: 140px;
    padding-left: 1.5rem;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.gantt-timeline-month {
    flex: 1;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.4rem 0;
    border-left: 1px solid #e2e8f0;
    position: relative;
}

.gantt-timeline-month:first-child {
    border-left: none;
}

/* Griglia verticale mesi (dietro le barre) */
.gantt-bars-grid {
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
}

.gantt-grid-line {
    flex: 1;
    border-left: 1px dashed #e2e8f0;
}

.gantt-grid-line:first-child {
    border-left: none;
}


/* ========================================
   FILTER BAR TOP - SEARCH + BUTTON
   ======================================== */
.filter-bar-top {
    background: linear-gradient(145deg, rgba(249, 250, 251, 0.92), rgba(241, 245, 249, 0.92));
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.filter-form-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ========================================
   FILTER SECTION - COLLAPSIBLE WITH COLUMNS
   ======================================== */
.filter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-section-header:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-title i {
    font-size: 1.1rem;
    color: #2c5282;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(26, 54, 93, 0.3);
}

.filter-toggle-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.filter-section-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

.filter-section-content.expanded {
    max-height: 500px;
    padding: 1.5rem;
}

.filter-form-secondary {
    display: flex;
    flex-direction: column;
}

.filter-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.filter-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.filter-chips-container label {
    cursor: pointer;
    display: inline-flex;
}

.tag-item.hidden-tag {
    display: none;
}

.show-more-tags-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.show-more-tags-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1e40af;
}

.show-more-tags-btn i {
    font-size: 0.75rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: color-mix(in srgb, var(--tag-color, #718096) 15%, white);
    color: color-mix(in srgb, var(--tag-color, #718096) 80%, black);
    border: 1px solid color-mix(in srgb, var(--tag-color, #718096) 30%, transparent);
}

.filter-chip.soft {
    border-radius: 8px;
    background: color-mix(in srgb, var(--tag-color, #4b5563) 6%, #fff);
    color: color-mix(in srgb, var(--tag-color, #4b5563) 85%, black);
    border: 1.5px dashed color-mix(in srgb, var(--tag-color, #4b5563) 55%, #e5e7eb);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.filter-chip:hover {
    background: color-mix(in srgb, var(--tag-color, #718096) 25%, white);
    border-color: color-mix(in srgb, var(--tag-color, #718096) 50%, transparent);
}

.filter-chip.soft:hover {
    background: color-mix(in srgb, var(--tag-color, #4b5563) 12%, #fff);
    border-color: color-mix(in srgb, var(--tag-color, #4b5563) 65%, #dfe3eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.filter-chip-selected,
.filter-chip.selected {
    background: color-mix(in srgb, var(--tag-color, #718096) 85%, white);
    color: #fff;
    border-color: var(--tag-color, #718096);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-chip-selected:hover,
.filter-chip.selected:hover {
    background: var(--tag-color, #718096);
}

.filter-chips-overflow {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-chip-expand {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.btn-chip-expand:hover {
    color: #2b6cb0;
}

.btn-chip-expand i {
    font-size: 0.85rem;
}

/* New Feedback Button - Institutional Style */
.btn-new-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-new-feedback:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    box-shadow: 0 3px 6px rgba(26, 54, 93, 0.3);
    transform: translateY(-1px);
}

.btn-new-feedback i {
    font-size: 0.9rem;
}

/* Action buttons - institutional pill style */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-width: 120px;
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-cta.primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
}

.btn-cta.primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-cta.warning {
    background: linear-gradient(135deg, #ff9f43 0%, #ee5a24 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(238, 90, 36, 0.2);
}

.btn-cta.warning:hover {
    background: linear-gradient(135deg, #ffc048 0%, #f0932b 100%);
    transform: translateY(-1px);
}

.btn-cta.secondary {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.25);
}

.btn-cta.secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-cta.danger {
    background: linear-gradient(135deg, #e5535f 0%, var(--danger-color) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.28);
}

.btn-cta.danger:hover {
    background: linear-gradient(135deg, #f0646f 0%, #bb2d2d 100%);
    transform: translateY(-1px);
}

/* ========================================
   TILE WIDGET - CANNY STYLE
   ======================================== */
.tile-canny {
    position: static;
    cursor: pointer;
    padding: 0;
}

.tile-main {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.tile-vote {
    flex-shrink: 0;
}

.tile-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    padding: 0.4rem 0;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #718096;
}

.tile-vote-btn:hover {
    border-color: #2b6cb0;
    color: #2b6cb0;
    background: #ebf8ff;
}

.tile-vote-btn.voted {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    border-color: #2b6cb0;
    color: #fff;
}

.tile-vote-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

.tile-vote-count {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.tile-content {
    flex: 1;
    min-width: 0;
}

/* Module badge - flush with feedback-card edge */
.feedback-card {
    position: relative;
    border: 1px solid #d1d5db !important;
    padding: 0.6rem !important;
}

.tile-module-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.58rem;
    font-weight: 500;
    color: #1a365d;
    background: linear-gradient(135deg, #e2e8f0 0%, #edf2f7 100%);
    padding: 0.15rem 0.45rem;
    border-radius: 0 8px 0 8px;
    border: 1px solid #cbd5e0;
    border-top: none;
    border-right: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 5;
}

.tile-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.15rem 0;
    padding-right: 4rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile-desc {
    font-size: 0.55rem;
    color: #718096;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tags row - full width, starts from left */
.tile-tags-row {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.tile-tag {
    font-size: 0.55rem;
    font-weight: 500;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tag-color, #718096) 15%, white);
    color: color-mix(in srgb, var(--tag-color, #718096) 80%, black);
    white-space: nowrap;
    flex-shrink: 0;
}

.tile-tag.soft {
    border-radius: 6px;
    background: #fff;
    color: color-mix(in srgb, var(--tag-color, #718096) 80%, black);
    border: 1.5px dashed color-mix(in srgb, var(--tag-color, #718096) 60%, #e5e7eb);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tile-tag.tag-unapproved-tile {
    opacity: 0.85;
    border-style: dashed;
    border-width: 1.5px;
}

.tag-pending-icon {
    font-size: 0.5rem;
    color: #f59e0b;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.feedback-dialog-tags.secondary .dialog-tag {
    border-radius: 6px;
    background: #fff;
    color: color-mix(in srgb, var(--tag-color, #718096) 80%, black);
    border: 1.5px dashed color-mix(in srgb, var(--tag-color, #718096) 60%, #e5e7eb);
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
}

/* Dialog overlay for feedback description */
.feedback-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.feedback-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.feedback-dialog-overlay.active .feedback-dialog {
    transform: scale(1);
}

.feedback-dialog-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.feedback-dialog-header-content {
    flex: 1;
    min-width: 0;
}

.feedback-dialog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.feedback-dialog-module {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: #1a365d;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.feedback-dialog-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.feedback-dialog-close:hover {
    color: #fff;
}

.feedback-dialog-body {
    padding: 1.25rem;
    max-height: 50vh;
    overflow-y: auto;
}

.feedback-dialog-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.feedback-dialog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.feedback-dialog-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #4a5568;
}

.feedback-dialog-author i {
    color: #718096;
}

.feedback-dialog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dialog-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--tag-color, #718096) 15%, white);
    color: color-mix(in srgb, var(--tag-color, #718096) 80%, black);
}

.feedback-dialog-tags.secondary {
    margin-top: 0.4rem;
}

.dialog-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.dialog-section.secondary {
    margin-top: 0.25rem;
}

.dialog-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.02em;
}

.feedback-dialog-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.feedback-dialog-btn {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.feedback-dialog-btn:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
}

/* ========================================
   STATUS CARDS - INSTITUTIONAL OVERRIDE
   ======================================== */
.status-card {
    padding: 0 !important;
    overflow: visible;
}

/* Hide the default ::before line and use border-left instead */
.status-card::before {
    display: none;
}

.status-card {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.status-card.status-programmed {
    border-left-color: var(--status-programmed) !important;
}

.status-card.status-inprogress {
    border-left-color: var(--status-inprogress) !important;
}

.status-card.status-completed {
    border-left-color: var(--status-completed) !important;
}

.status-card.status-backlog {
    border-left-color: var(--status-backlog) !important;
}

.status-card .status-header {
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-card .status-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-card .status-header h3 i {
    font-size: 1rem;
    opacity: 0.8;
}

.status-card.status-programmed .status-header {
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.12) 0%, rgba(49, 130, 206, 0.05) 100%);
    border-bottom: 2px solid rgba(49, 130, 206, 0.3);
}

.status-card.status-inprogress .status-header {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.12) 0%, rgba(237, 137, 54, 0.05) 100%);
    border-bottom: 2px solid rgba(237, 137, 54, 0.3);
}

.status-card.status-completed .status-header {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.12) 0%, rgba(72, 187, 120, 0.05) 100%);
    border-bottom: 2px solid rgba(72, 187, 120, 0.3);
}

.status-card.status-backlog .status-header {
    background: linear-gradient(135deg, rgba(113, 128, 150, 0.12) 0%, rgba(113, 128, 150, 0.05) 100%);
    border-bottom: 2px solid rgba(113, 128, 150, 0.3);
}

.status-card .status-header h3 {
    margin: 0;
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.1);
    color: #1a365d;
}

.status-programmed .status-count {
    background: rgba(49, 130, 206, 0.15);
    color: #2b6cb0;
}

.status-inprogress .status-count {
    background: rgba(237, 137, 54, 0.15);
    color: #c05621;
}

.status-completed .status-count {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

.status-backlog .status-count {
    background: rgba(113, 128, 150, 0.15);
    color: #4a5568;
}

.status-card .status-description {
    color: #4a5568;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.35rem 1rem 0;
    height: 40px;
}

.status-card .scroller {
    padding: 0.25rem 1rem 1rem;
    max-height: 312px;
}

/* Tile adjustments inside cards */
.status-card .feedback-card {
    position: relative;
    overflow: visible;
}

/* ========================================
   INSTITUTIONAL SEARCH BAR STYLES
   ======================================== */
.institutional-search-container {
    flex: 1;
    max-width: 600px;
}

.institutional-search-input-group {
    display: flex;
    align-items: stretch;
    position: relative;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.institutional-search-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #3182ce;
}

.institutional-search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #1a365d;
    font-weight: 500;
}

.institutional-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.institutional-search-button {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.institutional-search-button:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    transform: translateX(2px);
}

.institutional-search-button i {
    font-size: 1.1rem;
}



