.sidebar {
    position: sticky;
    top: 50px;
}

.time-result-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-align: center;
}

#big-font-time {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

#medium-font-date {
    font-size: 1.8rem;
    font-weight: 500;
    
    color: var(--text-muted-color);
}

.input-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--clock-bg);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-wrap: nowrap;
}

#hoursInput {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px 12px 45px;
    font-size: 1rem;
    border: 1px solid var(--text-muted-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
}

#calculateBtn {
    flex-shrink: 0;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}





#dynamic-breakdown-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

#result-breakdown-title-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted-color);
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
}

.info-table td {
    padding: 12px 8px; 
}

.info-table .label-cell,
.breakdown-table .label-cell {
    width: 40%;
}

.info-table .value-cell,
.breakdown-table .value-cell {
    font-weight: 500; 
    color: var(--text-color);
}

.info-table .country-cell {
    font-weight: 400;
}

.info-table .flag-cell {
    text-align: center;
}

.info-table .date-cell {
    font-weight: 500; 
}


@media (max-width: 600px) {
    .input-section {
        flex-direction: column;   
        align-items: center;      
        text-align: center;
    }

    #hoursInput {
        width: 100%;              
    }

    #calculateBtn {
        width: auto;              
        margin-top: 10px;         
        align-self: center;       
    }
    #big-font-time {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.5;
}

 #medium-font-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-muted-color);
}

}



@media (max-width: 768px) {
    #big-font-time {
        font-size: 2rem;
    }

    #medium-font-date {
        font-size: 1.1rem;
    }

    .info-table .flag-cell {
        font-size: 1.5rem;
        width: 50px;
    }

    #hoursInput {
        padding: 12px 15px 12px 45px;
        font-size: 1rem;
    }

    .input-wrapper::before {
        left: 15px;
        font-size: 1.2rem;
    }

    #calculateBtn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}