/**
 * SähköNyt - Tyylit
 * Pörssisähkön hintaseuranta
 */

.sahkonyt-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Nykyinen hinta -kortti */
.current-price-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1a2e 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.price-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.price-side {
    flex: 0 0 auto;
    opacity: 0.7;
    min-width: 80px;
}

.price-side-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-side-value {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.price-side-unit {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 3px;
}

.price-main {
    flex: 0 0 auto;
    padding: 0 30px;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
}

.current-price-label {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.current-time {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 5px;
}

.current-price-value {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.current-price-unit {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Hintavertailu */
.price-comparison {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.comparison-value {
    font-size: 1rem;
    font-weight: 600;
}

.comparison-value.higher {
    color: #ef4444;
}

.comparison-value.lower {
    color: #22c55e;
}

.comparison-value i {
    font-size: 0.8rem;
}

/* Kompaktit tilastot hintakortin sisällä */
.price-stats-inline {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.price-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.price-stat-label {
    opacity: 0.6;
}

.price-stat-value {
    font-weight: 600;
}

.price-stat-time {
    opacity: 0.5;
    font-size: 0.75rem;
}

/* Päivänvalitsimet */
.day-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.day-btn {
    flex: 1;
    padding: 12px 16px;
    border: 3px solid var(--btn-accent, #dee2e6);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.day-btn-text {
    flex: 1;
    text-align: center;
}

.day-btn-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.day-btn:hover:not(.disabled) {
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day-btn.active {
    background: var(--btn-accent, #3b82f6);
    border-color: var(--btn-accent, #3b82f6);
    color: white;
}

.day-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #dee2e6 !important;
}

.sahkonyt-sponsored-banner {
    margin: 12px 0;
    width: 100%;
    overflow: hidden;
}

.sahkonyt-sponsored-banner .centering-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sahkonyt-sponsored-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Päiväkatsaus */
.paivakatsaus-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
}

.paivakatsaus-box.is-fallback {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde047;
}

.paivakatsaus-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.paivakatsaus-header i {
    font-size: 1.2rem;
    color: #0284c7;
}

.paivakatsaus-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0c4a6e;
}

.paivakatsaus-text {
    color: #1e3a5f;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.paivakatsaus-fallback-note {
    font-size: 0.75rem;
    color: #92400e;
    margin-top: 8px;
    font-style: italic;
}

/* App-promo */
.app-promo {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1a2e 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.app-promo a {
    color: #fbbf24;
}

.app-promo .btn-warning {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1e3a5f;
    font-weight: 600;
}

.app-promo .btn-warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e3a5f;
}

/* Widget-promo */
.widget-promo {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1a2e 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
}

.widget-preview {
    display: flex;
    justify-content: center;
}

.widget-preview iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.widget-code {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 10px;
    overflow-x: auto;
}

.widget-code code {
    color: #fbbf24;
    font-size: 0.8rem;
    word-break: break-all;
}

.widget-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.widget-option-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.widget-option-btn:hover {
    background: rgba(255,255,255,0.2);
}

.widget-option-btn.active {
    background: #fbbf24;
    color: #1e3a5f;
    border-color: #fbbf24;
}

/* Yläkulman painikkeet */
.top-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.calendar-btn, .settings-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.calendar-btn:hover, .settings-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Kalenteri-modaali */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.calendar-modal.show {
    display: flex;
}

.calendar-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-header h4 {
    margin: 0;
    color: #1e3a5f;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 8px;
}

.year-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e3a5f;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.year-btn:hover {
    background: #e9ecef;
    border-color: #3b82f6;
}

#selectedYearDisplay {
    font-weight: 600;
    color: #1e3a5f;
    min-width: 45px;
    text-align: center;
}

.calendar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav button {
    background: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-nav button:hover {
    background: #e0e0e0;
}

.calendar-nav span {
    font-weight: 600;
    color: #1e3a5f;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.month-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.month-item:hover {
    background: #e9ecef;
    border-color: #3b82f6;
}

.month-item .month-name {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 5px;
}

.month-item .month-avg {
    font-size: 1.1rem;
    font-weight: bold;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-header {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    padding: 5px;
}

.day-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    min-height: 50px;
}

.day-item.empty {
    background: transparent;
    cursor: default;
}

.day-item .day-num {
    font-size: 0.85rem;
    color: #666;
}

.day-item .day-avg {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.day-item.today {
    border: 2px solid #3b82f6;
}

.back-to-months {
    margin-bottom: 15px;
}

.back-to-months button {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.9rem;
}

.back-to-months button:hover {
    text-decoration: underline;
}

/* Asetukset-modaali */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.settings-modal.show {
    display: flex;
}

.settings-content {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.settings-header h4 {
    margin: 0;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.settings-body {
    padding: 20px 25px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h5 {
    margin: 0 0 8px 0;
    color: #1e3a5f;
    font-size: 1rem;
}

.settings-desc {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-row label {
    color: #333;
    font-size: 0.9rem;
}

.settings-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-input-group input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    text-align: right;
}

.settings-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-input-group span {
    color: #666;
    font-size: 0.85rem;
}

.volatility-legend {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
}

.volatility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #333;
}

.volatility-item .emoji {
    font-size: 1.2rem;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.settings-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.settings-footer .btn-primary {
    background: #3b82f6;
    color: white;
}

.settings-footer .btn-primary:hover {
    background: #2563eb;
}

.settings-footer .btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.settings-footer .btn-secondary:hover {
    background: #d1d5db;
}

/* Beta-testaus lomake */
.beta-signup-form {
    margin-top: 15px;
}

.beta-signup-form .input-group {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.beta-signup-form .form-control {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
}

.beta-signup-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.beta-signup-form .form-control:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255,255,255,0.15);
}

.beta-signup-form .btn {
    border-radius: 0 8px 8px 0;
    padding: 12px 24px;
    font-weight: 600;
}

.beta-privacy-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.beta-privacy-note i {
    color: #22c55e;
}

.beta-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #22c55e;
    font-weight: 500;
}

.beta-success i {
    margin-right: 8px;
}

/* Responsiivisuus */
@media (max-width: 576px) {
    .price-timeline {
        gap: 10px;
    }
    .price-side {
        min-width: 60px;
    }
    .price-side-value {
        font-size: 1.2rem;
    }
    .price-main {
        padding: 0 15px;
    }
    .current-price-value {
        font-size: 2.5rem;
    }
    .current-price-unit {
        font-size: 1rem;
    }
    .price-comparison {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    /* Päivänapit mobiilissa */
    .day-btn {
        padding: 10px 8px;
        flex-direction: column;
        gap: 4px;
    }
    
    .day-btn-emoji {
        font-size: 1rem;
    }
}

/* Verkon tila - tilastoissa */
.grid-status-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    margin-left: 5px;
}

.grid-status-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

.grid-status-text {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 6px 2px currentColor;
    }
}

/* Tilastot-nappi */
.statistics-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    margin-left: 5px;
    transition: opacity 0.2s;
}

.statistics-btn:hover {
    opacity: 0.8;
}

.statistics-btn i {
    margin-right: 5px;
}

/* Tilastot-modaali */
.statistics-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.statistics-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.statistics-content {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1a2e 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    color: white;
    overflow: hidden;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.statistics-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.statistics-close:hover {
    opacity: 1;
}

.statistics-body {
    padding: 20px;
}

.statistics-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.statistics-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.statistics-card-header i {
    font-size: 1.2rem;
}

.statistics-info-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.statistics-info-btn:hover {
    opacity: 1;
}

/* Liikennevalot */
.traffic-lights {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.traffic-light {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s;
}

.statistics-status-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.statistics-update-freq {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Tuotanto/kulutus laatikot */
.production-consumption-boxes {
    display: flex;
    gap: 12px;
}

.prod-cons-box {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.prod-cons-box.production {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.prod-cons-box.consumption {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.prod-cons-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.prod-cons-box.production .prod-cons-label {
    color: #22c55e;
}

.prod-cons-box.consumption .prod-cons-label {
    color: #ef4444;
}

.prod-cons-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.prod-cons-box.production .prod-cons-value {
    color: #22c55e;
}

.prod-cons-box.consumption .prod-cons-value {
    color: #ef4444;
}

/* Sähkön siirto kartta */
.power-flow-map {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    min-height: 300px;
}

.finland-map {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
    opacity: 0.8;
    filter: brightness(1.2);
}

.flow-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.flow-label {
    position: absolute;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.flow-label.import {
    background: #0d9488;
    color: white;
}

.flow-label.export {
    background: #64748b;
    color: white;
}

/* Sijoittelu kartalla */
.flow-label.norway { top: 10px; left: 10px; }
.flow-label.sweden-se1 { top: 50px; left: 10px; }
.flow-label.sweden-se3 { bottom: 120px; left: 10px; }
.flow-label.aland { bottom: 80px; left: 10px; }
.flow-label.estonia { bottom: 40px; left: 10px; }

.statistics-source {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
    padding-top: 10px;
}

/* Grid Status Info -modaali */
.grid-status-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    padding: 20px;
    overflow-y: auto;
}

.grid-status-info-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.grid-status-info-content {
    background: #1e3a5f;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    color: white;
}

.grid-status-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-status-info-header h5 {
    margin: 0;
}

.grid-status-info-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.grid-status-info-header button:hover {
    opacity: 1;
}

.grid-status-info-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Responsiivisuus tilastoille */
@media (max-width: 576px) {
    .statistics-content {
        margin: 10px;
    }
    
    .traffic-light {
        width: 20px;
        height: 20px;
    }
    
    .production-consumption-boxes {
        flex-direction: column;
    }
}

/* ========== HINTATAULU-MODAALI ========== */

.price-table-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    padding: 20px;
    overflow-y: auto;
}

.price-table-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price-table-content {
    background: #1e3a5f;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    color: white;
}

.price-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-table-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.price-table-close:hover {
    opacity: 1;
}

.price-table-body {
    padding: 20px 25px;
}

.price-table-day-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.price-table-day-btn {
    flex: 1;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-table-day-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.price-table-day-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f59e0b;
}

.price-table-day-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.price-table-container {
    display: none;
}

.price-table-container.active {
    display: block;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.price-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.price-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.price-table th:last-child {
    text-align: right;
}

.price-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.price-table tbody tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 10px 15px;
    font-size: 0.95rem;
}

.price-table td:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
}

.price-table td:last-child {
    text-align: right;
}

.price-table-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
    font-style: italic;
}

.price-table-date-row {
    background: rgba(255, 255, 255, 0.15) !important;
}

.price-table-date-row td {
    font-weight: 700;
    text-transform: capitalize;
    padding: 8px 15px !important;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.price-table-current-row {
    background: rgba(255, 255, 255, 0.1);
}

.price-table-now-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsiivisuus hintataululle */
@media (max-width: 576px) {
    .price-table-content {
        margin: 20px 10px;
    }
    
    .price-table-header {
        padding: 15px 20px;
    }
    
    .price-table-header h4 {
        font-size: 1.1rem;
    }
    
    .price-table-body {
        padding: 15px 20px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Desimaalivalinta */
.decimal-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.decimal-btn {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid rgba(100, 150, 200, 0.4);
    border-radius: 12px;
    background: rgba(100, 150, 200, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.decimal-btn:hover {
    background: rgba(100, 150, 200, 0.25);
    border-color: rgba(100, 150, 200, 0.6);
}

.decimal-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #60a5fa;
}
