/* style.css */
:root {
    --bg-color: #f4f7f6;
    --text-color: #333;
    --primary-color: #4a90e2;
    --secondary-color: #fff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.search-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-box label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.divider {
    margin: 1.5rem 0;
    font-weight: bold;
    color: #999;
    font-size: 0.9rem;
}

input[type="text"], button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    outline: none;
}

input[type="text"] {
    flex-grow: 1;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 120px;
}

button:hover:not(:disabled) {
    background-color: #357abd;
}

button:disabled {
    background-color: #a0c4e8;
    cursor: not-allowed;
}

.error {
    color: #d9534f;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

.hidden {
    display: none;
}

/* Dashboard Grid */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Clock Cards */
.clock-card {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: auto;
}

.delete-btn:hover {
    background: #cc0000;
}

.timezone-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    word-break: break-all;
}

.country-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.date-display {
    font-size: 1rem;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    button {
        width: 100%;
    }
}