/* HR-US Time Zone Converter Stilovi */

.hr-us-timezone-converter {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hr-us-timezone-converter h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Input sekcija */
.timezone-input-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timezone-input-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.timezone-input,
.timezone-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

.timezone-input:focus,
.timezone-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.convert-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.convert-button:hover {
    background: #005a87;
}

/* Rezultati pretvorbe */
.conversion-results {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.conversion-results h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.conversion-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.conversion-item.highlight-hr {
    background: #e3f2fd;
    border-color: #1976d2;
}

.conv-timezone {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* NOVO: Gradovi ispod vremenske zone */
.conv-cities {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-style: italic;
}

.conv-time {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.conv-date {
    font-size: 14px;
    color: #666;
}

/* Trenutna vremena */
.current-times {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.current-times h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.current-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.timezone-item {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.timezone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timezone-item.highlight-hr {
    background: #ffebee;
    border-color: #f44336;
}

.timezone-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.timezone-time {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.timezone-date {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* Loading i error stilovi */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ef5350;
}

/* Responsive dizajn */
@media (max-width: 600px) {
    .hr-us-timezone-converter {
        padding: 15px;
    }

    .timezone-input-section,
    .conversion-results,
    .current-times {
        padding: 15px;
    }

    .current-times-grid,
    .conversion-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .timezone-item,
    .conversion-item {
        padding: 10px;
    }

    .timezone-time,
    .conv-time {
        font-size: 18px;
    }
}
