/* --- ESTILOS DO HUB DE ABAS --- */
.hub-menu-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.hub-menu-list {
    display: flex;
    list-style: none;
    padding: 6px;
    margin: 0;
    width: 100%;
    max-width: 760px;
    gap: 6px;
    border-radius: 14px;
    background: #f3f6fb;
    border: 1px solid #d6e0ef;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.hub-menu-item {
    flex: 1 1 0;
}
.hub-menu-link {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #26364d;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border-radius: 10px;
    min-height: 46px;
}
.hub-menu-link:hover {
    color: #0b57d0;
    background: #eaf2ff;
    border-color: #c5dafd;
}
.hub-menu-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #0b57d0);
    border-color: #0b57d0;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.24);
}
.hub-menu-link:focus-visible {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.22);
}

/* --- BOTÕES DE MODO --- */
.mode-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #dee2e6;
}
.hours-mode-inline {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
}
.btn-mode {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-mode.active {
    background-color: #fff;
    color: #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.btn-mode:hover:not(.active) {
    color: #495057;
}

.calculator-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.calculator-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILOS DO CONVERSOR --- */
.converter-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr auto 1.5fr; 
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.converter-grid .tool-input-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
.converter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    color: #0d6efd;
    font-size: 1.2rem;
    margin-top: 25px;
}
.conv-presets-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.btn-conv-preset {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-conv-preset:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #0d6efd;
}

/* Result Conversor Hero */
.converter-result-hero {
    text-align: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}
.conv-hero-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}
.conv-hero-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}
.conv-hero-unit {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.95;
}
.conv-hero-context {
    margin-top: 15px;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Cards Equivalencias */
.equivalencias-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    text-transform: uppercase;
}
.equivalencias-section-title.corridos {
    border-left-color: #6c757d;
    margin-top: 30px;
}
.conv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}
.conv-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}
.conv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #dee2e6;
}
.conv-card-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
}
.conv-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}
.conv-card.highlight {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}
.conv-card.highlight .conv-card-val {
    color: #0d6efd;
}
.note-corridos {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

/* --- CALENDARIO INTERATIVO & GRID --- */
.horas-grid.interval-hours-layout,
.interval-hours-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

#section-intervalo-horas .horas-inputs-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
    height: 100%;
}

#section-intervalo-horas .horas-calendar-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.hours-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.interval-date-input {
    flex: 1 1 auto;
    min-width: 0;
}

.interval-time-input {
    flex: 0 0 118px;
    min-width: 108px;
}

.btn-calendar-toggle {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1.05rem;
    width: 46px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-calendar-toggle:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.hours-type-toggle {
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #dbe4ef;
    padding: 6px;
}

.hours-type-toggle .radio-option {
    flex: 1;
}

.hours-type-toggle .radio-option input[type="radio"] {
    display: none;
}

.hours-type-toggle .radio-card {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #475569;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hours-type-toggle .radio-option input[type="radio"]:checked + .radio-card {
    background: #0d6efd;
    color: #fff;
    border-color: #0b57d0;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.28);
}

.hours-type-toggle .radio-option:hover .radio-card {
    border-color: #b9d3ff;
    color: #1e3a8a;
}

.sum-hours-toggle-row {
    margin-top: 12px;
}

.action-section-below-grid {
    margin-top: 16px;
}

.full-width-separator {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 0 0 18px;
}

.sidebar-panel-stack {
    position: sticky;
    top: 20px;
    min-height: 440px;
}

.glass-summary-card,
.glass-calendar-card {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.glass-summary-card {
    padding: 14px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

.sidebar-panel-stack > .glass-summary-card,
.sidebar-panel-stack > .glass-calendar-card {
    position: absolute;
    inset: 0;
    margin: 0 !important;
}

.glass-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.glass-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.9rem;
}

.glass-summary-row:last-child {
    border-bottom: 0;
}

.glass-summary-label {
    color: #64748b;
}

.glass-summary-value {
    color: #0f172a;
    font-weight: 600;
}

.glass-summary-card.is-hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    pointer-events: none;
    filter: blur(1px);
}

.glass-calendar-card {
    padding: 12px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.985);
}

.glass-calendar-card.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.calendar-guidance {
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(0, 113, 227, 0.1);
    border-radius: 8px;
    display: block;
}

#section-intervalo-horas .interactive-calendar-container.calendar-popover {
    padding: 0 !important;
    max-width: 100%;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow-x: hidden;
    overflow-y: auto;
}

#intervalHoursCalendarCard {
    overflow-x: hidden;
    overflow-y: auto;
}

#section-intervalo-horas .interactive-calendar-container {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#section-intervalo-horas .interactive-calendar-container.is-open {
    opacity: 1;
    transform: translateY(0);
}
.interactive-calendar-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.interactive-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cal-nav-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
}
.cal-nav-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.month-year-display {
    font-weight: 700;
    text-transform: capitalize;
    color: #212529;
}
.interactive-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.interactive-calendar-grid .weekday {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 5px;
}
.interactive-calendar-grid .weekday.weekend-label {
    color: #dc3545;
}
.day-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 40px;
    height: auto;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    margin: 0 auto;
    padding: 0;
}
.day-btn:hover:not(:disabled) { background-color: #e9ecef; }
.day-btn.weekend { color: #6c757d; background-color: #f8f9fa; }
.day-btn.holiday { color: #dc3545; font-weight: bold; background-color: #fff5f5; }
.day-btn.today { border: 2px solid #0d6efd; }
.day-btn.selected {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color) !important;
    outline: none;
}

@keyframes click-glow-zoom {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 15px var(--primary-color);
        background-color: var(--primary-color);
        color: #fff;
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 5px var(--primary-color);
    }
}

.day-btn.animate-selection {
    animation: click-glow-zoom 0.4s ease-out forwards;
    z-index: 10;
    position: relative;
}

@keyframes input-flash-green {
    0% {
        border-color: #e0e0e0;
        background-color: #fff;
        box-shadow: none;
    }
    25% {
        border-color: #2ecc71;
        background-color: rgba(46, 204, 113, 0.15);
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    }
    100% {
        border-color: #e0e0e0;
        background-color: #fff;
        box-shadow: none;
    }
}

.input-success-flash {
    animation: input-flash-green 1s ease-out;
}

.interactive-calendar-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #dee2e6;
    text-align: left;
}
.interactive-calendar-footer h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 700;
}
.int-cal-holiday-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.int-cal-holiday-item {
    font-size: 0.8rem;
    color: #dc3545;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.int-cal-holiday-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dc3545;
}

/* --- RESULTADO FLEX --- */
.result-wrapper-flex {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
}
.result-hero-container {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-calendar-widget {
    width: 320px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.result-hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}
.result-label-top {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 700;
}
.result-context-text {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 15px;
    background: #f1f3f5;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}
.result-hero-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #212529;
    line-height: 1.1;
    margin-bottom: 5px;
}
.result-hero-time {
    font-size: 1.8rem;
    color: #0d6efd;
}
.result-hero-weekday {
    font-size: 1.1rem;
    color: #198754;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 5px;
}

/* Micro Cards & Tooltips */
.micro-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}
.micro-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.micro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    border-color: #cbd5e0;
}
.micro-card-icon {
    font-size: 1.1rem;
    color: #adb5bd;
    margin-bottom: 6px;
}
.micro-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 2px;
}
.micro-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #495057;
    line-height: 1.2;
}
.micro-card[data-tooltip] { position: relative; cursor: help; }
.micro-card[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%); background: #333;
    color: #fff; padding: 5px 10px; border-radius: 4px;
    font-size: 0.75rem; white-space: nowrap; z-index: 10;
    margin-bottom: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); pointer-events: none;
}
.micro-card[data-tooltip]:hover::before {
    content: ''; position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%); border: 6px solid transparent;
    border-top-color: #333; margin-bottom: -4px; z-index: 10; pointer-events: none;
}

/* --- RESULT CALENDAR WIDGET & LIST --- */
.res-cal-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
}
.res-cal-title {
    font-weight: 700; color: #212529;
    text-transform: capitalize; font-size: 1rem;
}
.res-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; text-align: center;
}
.res-cal-head {
    font-size: 0.75rem; color: #adb5bd;
    font-weight: 600; margin-bottom: 5px; text-transform: uppercase;
}
.res-cal-day {
    position: relative; aspect-ratio: 1 / 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 8px; font-size: 0.9rem;
    color: #495057; border: 1px solid transparent;
    transition: all 0.2s;
}
.res-cal-day.weekend-bg { background-color: #f1f3f5; color: #adb5bd; }
.res-cal-day.holiday-bg { background-color: #fff5f5; color: #dc3545; border-color: #fecaca; }
.res-cal-day.useful-day-bg { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.res-cal-day .day-hours {
    font-size: 0.65rem; font-weight: 700; display: block;
    line-height: 1; margin-top: 2px;
}
.res-cal-day.holiday-bg .day-hours { color: #dc3545; }
.res-cal-day.useful-day-bg .day-hours { color: #0f5132; }

.full-calendar-list-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-top: 30px;
}
.res-cal-card {
    background: #fff; border: 1px solid #e9ecef;
    border-radius: 12px; padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Granularity Controls */
.granularity-btn-group {
    display: flex; gap: 5px; flex: 0 0 auto;
    flex-wrap: nowrap; justify-content: flex-end;
    align-items: center; overflow-x: auto;
    -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.details-header-row {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px; flex-wrap: nowrap; overflow: hidden;
}
.details-header-row h6 {
    margin: 0; flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-granularity {
    border: 1px solid #dee2e6; background: #fff;
    color: #6c757d; padding: 4px 12px;
    border-radius: 15px; font-size: 0.8rem;
    font-weight: 600; transition: all 0.2s;
    cursor: pointer; white-space: nowrap;
}
.btn-granularity:hover { background: #f8f9fa; color: #495057; }
.btn-granularity.active {
    background: #6c757d; color: #fff;
    border-color: #6c757d; box-shadow: none; 
}

.btn-interval-preset {
    background-color: #fff; border: 1px solid #dee2e6;
    color: #6c757d; font-size: 0.85rem; padding: 8px 16px;
    border-radius: 50px; font-weight: 600;
    transition: all 0.2s; white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); margin-bottom: 5px;
}
.btn-interval-preset:hover {
    background-color: #f8f9fa; color: #0d6efd;
    border-color: #0d6efd; transform: translateY(-1px);
}

/* Presets Grid */
.presets-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.btn-preset {
    background-color: #f8f9fa; border: 1px solid #dee2e6;
    color: #495057; font-size: 0.8rem; padding: 8px 10px;
    border-radius: 6px; font-weight: 600;
    transition: all 0.2s; cursor: pointer;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.btn-preset:hover {
    background-color: #e9ecef; color: #0d6efd; border-color: #ced4da;
}

.result-actions-area {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px dashed #dee2e6; display: flex;
    justify-content: center; gap: 16px; flex-wrap: nowrap;
    align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.btn-action-secondary {
    background: #fff; border: 1px solid #ced4da; color: #495057;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-action-secondary:hover {
    background: #f8f9fa; color: #212529; border-color: #adb5bd;
    transform: none !important;
}
.btn-action-primary {
    background: #0d6efd; border: 1px solid #0d6efd; color: #fff;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2); transition: all 0.2s;
}
.btn-action-primary:hover {
    background: #0b5ed7;
    box-shadow: 0 5px 10px rgba(13, 110, 253, 0.28);
    transform: none !important;
}

.holiday-list-container {
    margin-top: 20px; margin-bottom: 20px; padding: 15px;
    background: #fff5f5; border: 1px solid #fecaca;
    border-radius: 8px; text-align: left;
}
.holiday-list-container h6 {
    color: #dc2626; font-weight: 700; margin-bottom: 10px; font-size: 0.9rem;
}
.holiday-list-ul {
    list-style: none; padding: 0; margin: 0; font-size: 0.85rem; color: #7f1d1d;
}
.holiday-list-ul li {
    margin-bottom: 4px; border-bottom: 1px dashed rgba(220, 38, 38, 0.2); padding-bottom: 2px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    /* Hub Menu - Horizontal Scroll */
    .hub-menu-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .hub-menu-list {
        flex-wrap: nowrap;
        min-width: max-content;
        width: auto;
        max-width: none;
        gap: 6px;
        padding: 6px;
    }
    
    .hub-menu-item {
        flex: 0 0 auto;
    }

    .hub-menu-link {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 140px;
        min-height: 42px;
    }
    
    /* Converter Grid - Stack Vertically */
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .converter-arrow {
        display: none;
    }
    
    /* Interval Grid - Stack Vertically */
    .interval-hours-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile alignment: intervalo segue fluxo simples, como "Prazo em Horas" */
    #section-intervalo-horas .horas-calendar-column {
        display: none;
    }

    #section-intervalo-horas .sidebar-panel-stack {
        min-height: 0;
    }

    .sidebar-panel-stack {
        position: relative;
        top: auto;
        min-height: 460px;
    }

    .hours-input-row {
        gap: 6px;
    }

    #section-intervalo-horas .hours-input-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .interval-time-input {
        flex: 0 0 96px;
        min-width: 96px;
    }

    #section-intervalo-horas .interval-date-input,
    #section-intervalo-horas .interval-time-input {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .btn-calendar-toggle {
        width: 40px;
        height: 40px;
    }

    #section-intervalo-horas .btn-calendar-toggle {
        display: none;
    }

    #section-intervalo-horas .hours-mode-inline {
        gap: 8px;
    }

    #section-intervalo-horas .hours-mode-inline .btn-mode {
        flex: 1 1 0;
        padding: 10px 12px;
    }
    
    /* Calendar Container - Full Width, Prevent Overflow */
    .interactive-calendar-container {
        max-width: 100%;
        padding: 15px;
        margin: 0;
        overflow-x: hidden;
    }
    
    .interactive-calendar-header {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .month-year-display {
        font-size: 0.95rem;
        flex: 1;
        text-align: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .interactive-calendar-grid .day-btn {
        max-width: none;
        font-size: 0.8rem;
    }
    
    /* Result Wrapper - Stack Vertically */
    .result-wrapper-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-calendar-widget {
        width: 100%;
        max-width: 100%;
    }
    
    .result-hero-value {
        font-size: 1.8rem;
    }
    
    .result-hero-time {
        font-size: 1.4rem;
    }
    
    /* Micro Cards - 2 columns */
    .micro-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .micro-card {
        padding: 10px 8px;
    }
    
    .micro-card-value {
        font-size: 0.85rem;
    }
    
    /* Res Cal Cards - Single Column */
    .full-calendar-list-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Mode Buttons - Wrap */
    .mode-buttons-container {
        flex-wrap: wrap;
        width: 100%;
        padding: 8px;
    }

    .hours-mode-inline {
        justify-content: center;
    }
    
    .btn-mode {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* Presets - Smaller */
    .conv-presets-container {
        gap: 8px;
    }
    
    .btn-conv-preset {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    /* Details Header Row - Stack */
    .details-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .granularity-btn-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Action Buttons - Keep one line with horizontal scroll */
    .result-actions-area {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .btn-action-secondary,
    .btn-action-primary {
        width: auto;
        justify-content: center;
        flex: 0 0 auto;
    }
    
    /* Converter Result Hero - Smaller */
    .converter-result-hero {
        padding: 20px;
    }
    
    .conv-hero-value {
        font-size: 2.2rem;
    }
    
    .conv-hero-unit {
        font-size: 1.2rem;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

body.dark-mode .hub-menu-container {
    border-bottom-color: transparent;
}

body.dark-mode .hub-menu-list {
    background: #1e2633;
    border-color: #33445f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

body.dark-mode .hub-menu-link {
    color: #d8e4f6;
    border-color: transparent;
    background: transparent;
}

body.dark-mode .hub-menu-link:hover {
    color: #9fc5ff;
    background: rgba(88, 166, 255, 0.16);
    border-color: rgba(88, 166, 255, 0.35);
}

body.dark-mode .hub-menu-link.active {
    color: #fff;
    background: linear-gradient(135deg, #2f76ef, #255fca);
    border-color: #255fca;
    box-shadow: 0 6px 14px rgba(36, 95, 202, 0.38);
}

body.dark-mode .mode-buttons-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

body.dark-mode .btn-mode {
    color: #adb5bd;
}

body.dark-mode .btn-mode.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #58a6ff;
}

body.dark-mode .hours-type-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

body.dark-mode .hours-type-toggle .radio-card {
    color: #cbd5e1;
}

body.dark-mode .hours-type-toggle .radio-option:hover .radio-card {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.4);
}

body.dark-mode .converter-grid,
body.dark-mode .conv-card,
body.dark-mode .micro-card,
body.dark-mode .result-hero-container,
body.dark-mode .hero-calendar-widget,
body.dark-mode .res-cal-card,
body.dark-mode .glass-summary-card,
body.dark-mode .glass-calendar-card,
body.dark-mode .interactive-calendar-container {
    background-color: var(--content-bg);
    border-color: var(--border-color);
}

body.dark-mode .converter-result-hero {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
}

body.dark-mode .conv-card-val,
body.dark-mode .micro-card-value,
body.dark-mode .result-hero-value,
body.dark-mode .month-year-display,
body.dark-mode .res-cal-title {
    color: var(--text-color);
}

body.dark-mode .conv-card-label,
body.dark-mode .micro-card-label,
body.dark-mode .result-label-top,
body.dark-mode .glass-summary-label,
body.dark-mode .equivalencias-section-title {
    color: #9ca3af;
}

body.dark-mode .glass-summary-title,
body.dark-mode .glass-summary-value {
    color: var(--text-color);
}

body.dark-mode .result-context-text {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: #d1d5db;
}

body.dark-mode .cal-nav-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-mode .cal-nav-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

body.dark-mode .day-btn {
    color: var(--text-color);
}

body.dark-mode .day-btn.weekend {
    background-color: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
}

body.dark-mode .day-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .interactive-calendar-grid .weekday {
    color: #9ca3af;
}

body.dark-mode .btn-conv-preset,
body.dark-mode .btn-preset,
body.dark-mode .btn-granularity,
body.dark-mode .btn-interval-preset {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: #d1d5db;
}

body.dark-mode .btn-conv-preset:hover,
body.dark-mode .btn-preset:hover,
body.dark-mode .btn-interval-preset:hover {
    background-color: rgba(88, 166, 255, 0.1);
    border-color: #3b82f6;
    color: #58a6ff;
}

body.dark-mode .btn-granularity.active {
    background-color: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

body.dark-mode .btn-action-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: #d1d5db;
}

body.dark-mode .btn-action-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
}

body.dark-mode .res-cal-day {
    color: var(--text-color);
}

body.dark-mode .res-cal-day.weekend-bg {
    background-color: rgba(255, 255, 255, 0.02);
    color: #6b7280;
}

body.dark-mode .res-cal-day.useful-day-bg {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

body.dark-mode .res-cal-head {
    color: #6b7280;
}

body.dark-mode .interactive-calendar-footer {
    border-top-color: var(--border-color);
}

body.dark-mode .interactive-calendar-footer h6 {
    color: #9ca3af;
}

/* Dark Mode - d-flex gap-3 (Bootstrap-like) */
body.dark-mode .d-flex,
body.dark-mode [class*="flex-wrap"],
body.dark-mode [class*="align-items"] {
    color: var(--text-color);
}

/* Dark Mode - Text Classes */
body.dark-mode .text-dark,
body.dark-mode .fw-bold,
body.dark-mode .h5 {
    color: var(--text-color) !important;
}

body.dark-mode .text-muted {
    color: #9ca3af !important;
}

/* Holiday List Dark Mode */
body.dark-mode .holiday-list-container {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

body.dark-mode .holiday-list-container h6 {
    color: #f87171;
}

body.dark-mode .holiday-list-ul {
    color: #fca5a5;
}

/* Mobile hotfixes: menu de abas e largura no wrapper */
@media (max-width: 920px) {
    body.tool-calculadora-de-horas .tool-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .hub-menu-container {
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 18px;
    }

    .hub-menu-list {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        box-sizing: border-box;
    }

    .hub-menu-item {
        width: 100%;
        min-width: 0;
    }

    .hub-menu-link {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
        white-space: normal;
        padding: 10px 12px;
    }
}

