body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* Dodajemy globalne box-sizing */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #222222;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.logo {
    height: 50px;
}

h1 {
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    font-size: 1.8rem;
    flex: 1;
    text-align: center;
}

/* Style dla selektora języka w nagłówku */
header .language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

header .language-flags {
    display: flex;
    gap: 8px;
}

header .flag-item {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

header .flag-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

header .flag-item.active {
    opacity: 1;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

header .flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    color: #aaaaaa;
    font-weight: 300;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.date-range-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 2;
}

.date-range-input label {
    margin-right: 5px;
    font-weight: 500;
    color: #bbbbbb;
}

.date-range-input input {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #444;
    background-color: #333;
    color: #ffffff;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

/* Dodajemy style dla selektora modelu cen */
.price-model-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.price-model-selector label {
    font-weight: 500;
    color: #bbbbbb;
}

.price-model-selector select {
    padding: 8px 12px;
    border: 1px solid #444;
    background-color: #333;
    color: #ffffff;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    min-width: 150px;
}

.price-model-selector select:hover {
    border-color: #555;
}

.price-model-selector select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.timestamp {
    font-size: 0.9em;
    color: #999;
    text-align: right;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin: 20px 0;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8em;
    color: #777;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
}

.footer-logo {
    height: 100px;
    width: auto;
    opacity: 0.9;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85em;
    color: #999;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-mini-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: -18px;
}

.footer-mini-link {
    padding: 10px 22px;
    border-radius: 999px;
    background: #a81717;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 12px 25px rgba(216, 38, 38, 0.1);
}

.footer-mini-link:hover {
    transform: translateY(-2px);
    background: #e70808;
    box-shadow: 0 16px 30px rgba(255, 77, 77, 0.2);
    opacity: 0.9;

    transition: all 0.4s ease;
}

.footer-contact-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(20, 27, 44, 0.96), rgba(7, 11, 19, 0.92));
    border: 1px solid rgba(142, 180, 231, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 640px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.footer-contact-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.footer-contact-info {
    text-align: left;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95em;
    align-items: flex-start;
    width: 100%;
}

.footer-contact-caption {
    font-size: 1.15em;
    letter-spacing: 0.25em;
    color: #e7f0ff;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    align-self: stretch;
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(231, 240, 255, 0.25);
    background: none;
    box-shadow: none;
}

.footer-contact-role {
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffdede;
    margin: 0;
}

.footer-contact-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.footer-contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
    margin-top: 12px;
    width: 100%;
}

.footer-contact-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.footer-contact-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.chart-container {
    margin: 30px 0;
    height: 400px;
    width: 100%;
    position: relative;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    padding-bottom: 50px;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.chart-title {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    color: #ffffff;
}

/* Style dla kafelków podsumowujących */
.summary-tiles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.summary-tile {
    flex: 1;
    min-width: 220px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tile-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.tile-content {
    flex: 1;
}

.tile-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.tile-label {
    font-size: 0.9rem;
    color: #aaa;
}

/* Kolorystyka dla poszczególnych kafelków */
.energy-consumed {
    border-left: 4px solid #3498db;
}

.energy-consumed .tile-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.energy-produced {
    border-left: 4px solid #e67e22;
}

.energy-produced .tile-icon {
    background-color: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.cop-value {
    border-left: 4px solid #2ecc71;
}

.cop-value .tile-icon {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.avg-temperature {
    border-left: 4px solid #3498db;
}

.avg-temperature .tile-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.average-cost {
    border-left: 4px solid #9b59b6;
}

.average-cost .tile-icon {
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.heat-cost .tile-icon {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.total-cost {
    border-left: 4px solid #e74c3c;
}

.total-cost .tile-icon {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Style dla sekcji CWU i CO */
.summary-section-title {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.cwu-section .summary-section-title {
    border-bottom-color: #3498db;
    color: #3498db;
}

.co-section .summary-section-title {
    border-bottom-color: #e67e22;
    color: #e67e22;
}

/* Style dla sekcji CWU */
.energy-produced-cwu .tile-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.total-cost-cwu .tile-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.heat-cost-cwu .tile-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.energy-produced-cwu {
    border-left: 4px solid #3498db;
}

.total-cost-cwu {
    border-left: 4px solid #3498db;
}

.heat-cost-cwu {
    border-left: 4px solid #3498db;
}

/* Style dla sekcji CO */
.energy-produced-co .tile-icon {
    background-color: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.total-cost-co .tile-icon {
    background-color: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.heat-cost-co .tile-icon {
    background-color: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.energy-produced-co {
    border-left: 4px solid #e67e22;
}

.total-cost-co {
    border-left: 4px solid #e67e22;
}

.heat-cost-co {
    border-left: 4px solid #e67e22;
}

/* Tabela danych */
.data-section {
    margin: 30px 0;
}

.data-toggle {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.data-toggle:hover {
    background-color: #444;
}

.data-toggle:after {
    content: '▼';
    font-size: 0.8em;
}

.data-toggle.active:after {
    content: '▲';
}

.data-content {
    display: none;
    margin-top: 15px;
    overflow-x: auto;
}

.data-content.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2a2a2a;
    font-weight: 500;
    color: #fff;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #2a2a2a;
}

tr:hover {
    background-color: #333;
}

.value-cell {
    font-weight: 400;
}

.value-cell.energy {
    color: #3498db;
}

.value-cell.temperature {
    color: #e67e22;
}

.value-cell.flow {
    color: #9b59b6;
}

.value-cell.cop {
    color: #2ecc71;
}

.value-cell.cost {
    color: #e74c3c;
}

.value-cell.tariff {
    color: #9b59b6;
}

/* Responsywność */
@media (max-width: 1200px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    h1 {
        margin-bottom: 15px;
    }
    
    header .language-selector {
        justify-content: center;
        margin-top: 10px;
    }
    
    .date-range-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .price-model-selector {
        width: 100%;
    }
    
    .price-model-selector select {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-logo {
        max-width: 50%;
        height: auto;
    }

    .footer-contact-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact-info {
        text-align: center;
        align-items: center;
    }

    .footer-contact-links {
        grid-template-columns: 1fr;
    }
    
    .timestamp {
        text-align: center;
    }
    
    .summary-row {
        flex-direction: column;
    }
    
    .summary-tile {
        width: 100%;
        min-width: auto;
    }
    
    .container {
        padding: 15px 10px;
    }
    
    .alternative-fuels-row {
        flex-direction: column;
    }
    
    .fuel-tile {
        width: 100%;
        min-width: auto;
    }
}

/* Dodajemy specjalne style dla bardzo małych ekranów */
@media (max-width: 480px) {
    .tile-icon, .fuel-icon {
        margin-right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .tile-value, .fuel-value {
        font-size: 1.2rem;
    }
    
    .summary-tile, .fuel-tile {
        padding: 15px 10px;
    }
}

/* Style dla kafelek ekwiwalentów paliw */
.alternative-fuels {
    margin: 30px 0;
}

.alternative-fuels-title {
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.alternative-fuels-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.fuel-tile {
    flex: 1;
    min-width: 220px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fuel-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fuel-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.fuel-content {
    flex: 1;
}

.fuel-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.fuel-subvalue {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
}

.fuel-label {
    font-size: 0.9rem;
    color: #aaa;
}

/* Style dla poszczególnych kafelek paliw */
.fuel-gas {
    border-left: 4px solid #4287f5;
}

.fuel-gas .fuel-icon {
    background-color: rgba(66, 135, 245, 0.2);
    color: #4287f5;
}

.fuel-coal {
    border-left: 4px solid #5c5c5c;
}

.fuel-coal .fuel-icon {
    background-color: rgba(92, 92, 92, 0.2);
    color: #aaaaaa;
}

.fuel-pellet {
    border-left: 4px solid #d17a22;
}

.fuel-pellet .fuel-icon {
    background-color: rgba(209, 122, 34, 0.2);
    color: #d17a22;
}

.fuel-oil {
    border-left: 4px solid #3498db;
}

.fuel-oil .fuel-icon {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Przycisk z pytajnikiem */
.info-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.info-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Popup ze szczegółami */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.popup-content h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.popup-content p {
    margin: 10px 0;
    line-height: 1.5;
    color: #ddd;
}

.popup-content hr {
    border: none;
    border-top: 1px solid #555;
    margin: 15px 0;
}

.popup-content strong {
    color: #fff;
    font-weight: 500;
}

/* Navigation styles */
.main-navigation {
    --nav-bg: rgba(25, 25, 25, 0.95);
    --nav-border: rgba(255, 255, 255, 0.08);
    width: 100%;
    margin: 0 0 2rem;
    position: relative;
    z-index: 60;
    transition: transform 0.4s ease, width 0.45s cubic-bezier(0.4, 0.0, 0.2, 1), margin-left 0.45s cubic-bezier(0.4, 0.0, 0.2, 1), margin-right 0.45s cubic-bezier(0.4, 0.0, 0.2, 1), position 0s linear 0.45s;
    display: flex;
    justify-content: center;
}

.main-navigation__inner {
    background-color: var(--nav-bg);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--nav-border);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    transition:
        background-color 0.4s ease,
        border-radius 0.4s ease,
        box-shadow 0.4s ease,
        padding 0.4s ease,
        border 0.4s ease,
        width 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
        max-width 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
        margin-left 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
        margin-right 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: center;
}

.nav-sentinel {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.nav-spacer {
    display: block;
    width: 100%;
    height: 0;
    transition: none;
    pointer-events: none;
}

@media (min-width: 992px) {
    .main-navigation.is-sticky ~ .nav-spacer {
        height: var(--nav-height, 0);
    }

    .subtitle {
        padding-left: 80px;
        padding-right: 80px;
    }
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.4rem;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-item.active .nav-link {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.35);
}

.nav-toggle {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.85);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-toggle-bar {
    position: relative;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: background 0.3s ease;
    margin: 0 auto;
    display: block;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-toggle.is-active .nav-toggle-bar {
    background: transparent;
}

.nav-toggle.is-active .nav-toggle-bar::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 3, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .main-navigation {
        position: sticky;
        top: 0;
    }

    .main-navigation.is-sticky {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        animation: navDrop 0.45s ease;
    }

    .main-navigation.is-sticky .main-navigation__inner {
        border-radius: 0;
        background-color: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(2rem, 5vw, 4rem);
        padding-right: clamp(2rem, 5vw, 4rem);
    }

    .main-navigation.is-sticky .nav-list {
        justify-content: center;
    }
}

@keyframes navDrop {
    0% {
        transform: translateY(-18px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle {
        position: fixed;
        top: 1.25rem;
        right: 1.25rem;
        display: flex;
        z-index: 70;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 78vw);
        height: 100vh;
        margin: 0;
        transform: translateX(105%);
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        pointer-events: none;
    }

    .main-navigation__inner {
        height: 100%;
        padding: 4.5rem 1.75rem 2.5rem;
        border-radius: 0;
        box-shadow: -30px 0 50px rgba(0, 0, 0, 0.4);
        background-color: rgba(12, 12, 12, 0.96);
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        margin-top: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.25rem;
    }
}

/* Live Status Indicator Styles */
.live-status-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.live-text {
    color: #ccc;
    white-space: nowrap;
}

/* Status Colors */
.live-status.status-green .live-dot {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse-green 2s infinite;
}

.live-status.status-green .live-text {
    color: #e8f5e9;
}

.live-status.status-yellow .live-dot {
    background-color: #FFC107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.live-status.status-yellow .live-text {
    color: #fff8e1;
}

.live-status.status-orange .live-dot {
    background-color: #FF9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

.live-status.status-orange .live-text {
    color: #fff3e0;
}

.live-status.status-red .live-dot {
    background-color: #F44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

.live-status.status-red .live-text {
    color: #ffebee;
}

@keyframes pulse-green {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@media (max-width: 768px) {
    .live-status-container {
        justify-content: center;
        margin-top: 10px;
    }
}
