/* static/style.css */
body {
    background-color: #0d1117; /* Dark background */
    color: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* --- Headings and Frames --- */
.header {
    color: #58a6ff; /* Light blue heading */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.frame-group {
    width: 90%;
    max-width: 600px;
    background-color: #161b22; /* Darker frame background */
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.frame-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 5px;
}

.us-title {
    color: #79c0ff; /* Blue for US title */
}

.tb-title {
    color: #f85149; /* Red for Tbilisi title */
}

/* --- Clock Rows --- */
.clock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #21262d;
}

.clock-row:last-child {
    border-bottom: none;
}

.clock-name {
    font-family: 'Consolas', monospace;
    color: #8b949e; /* Gray name */
    font-size: 1.1em;
    flex-grow: 1;
}

.clock-time {
    font-family: 'Consolas', monospace;
    font-size: 1.8em;
    font-weight: bold;
    color: #ffa657; /* Orange time */
    min-width: 100px;
    text-align: right;
}

.clock-abbr {
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: #ff7b72; /* Red/pink abbreviation */
    min-width: 50px;
    text-align: left;
    margin-left: 15px;
}

/* --- Tbilisi Specific --- */
.tbilisi-display {
    display: flex;
    align-items: center;
}

#tbilisi-time {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b6b; /* Reddish time */
    margin-right: 20px;
}

#tbilisi-abbr {
    font-size: 1.5em;
    color: #ffaaf0; /* Pink offset */
}

/* --- Search Area --- */
.search-controls {
    display: flex;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 30px;
}

.search-controls label {
    font-size: 1em;
    margin-right: 10px;
}

.search-controls input[type="text"] {
    padding: 8px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background-color: #21262d; /* Input background */
    color: white;
    font-size: 1em;
    width: 250px;
    margin-right: 15px;
}

.search-controls button {
    padding: 8px 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
    margin-left: 5px;
}

#search-btn {
    background-color: #238636; /* Green for Search */
    color: white;
}

#search-btn:hover {
    background-color: #39a64e;
}

#refresh-btn {
    background-color: #30363d; /* Gray for Refresh */
    color: white;
}

#refresh-btn:hover {
    background-color: #444c56;
}

/* --- Result Area --- */
#result-display {
    min-height: 25px; /* Reserve space */
    font-family: 'Consolas', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #a5d6ff; /* Default result color */
    margin-top: 20px;
}

.result-error {
    color: #ff6b6b !important; /* Error color */
}