/* Variabel Warna */
:root {
    --bg-color-dark: #121212; --card-color-dark: #1e1e1e; --text-color-dark: #e0e0e0; --text-muted-dark: #a0a0a0; --accent-color-dark: #00bfff; --border-color-dark: #333;
    --bg-color-light: #f4f6f9; --card-color-light: #ffffff; --text-color-light: #1c1e21; --text-muted-light: #606770; --accent-color-light: #1877f2; --border-color-light: #ddd;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; padding: 20px; transition: background-color 0.3s ease, color 0.3s ease; }

/* Sistem Tema */
.dark-mode { background-color: var(--bg-color-dark); color: var(--text-color-dark); }
.dark-mode .local-time-display { color: #fff; }
.dark-mode .local-date-display { color: var(--text-muted-dark); }
.dark-mode .clock-card { background: var(--card-color-dark); border: 1px solid var(--border-color-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.dark-mode .time { color: var(--accent-color-dark); }
.dark-mode #searchInput { background-color: #3a3b3c; color: #e4e6eb; border: 1px solid #555; }
.dark-mode #theme-switcher { background-color: #3a3b3c; color: #e4e6eb; }

.light-mode { background-color: var(--bg-color-light); color: var(--text-color-light); }
.light-mode .local-time-display { color: #1c1e21; }
.light-mode .local-date-display { color: var(--text-muted-light); }
.light-mode .clock-card { background: var(--card-color-light); border: 1px solid var(--border-color-light); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.light-mode .time { color: var(--accent-color-light); }
.light-mode #searchInput { background-color: #fff; border: 1px solid #ccc; color: #333; }
.light-mode #theme-switcher { background-color: #fff; color: #333; border: 1px solid #ccc; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto 20px auto; }
.logo-link {
    text-decoration: none; /* Menghapus garis bawah */
    color: inherit; /* Mengambil warna dari parent (body) */
    transition: transform 0.2s ease;
}
.logo-link:hover {
    transform: scale(1.03); /* Efek hover kecil */
}
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo { height: 40px; width: 40px; }
.title-group h1 { font-size: 1.5rem; margin: 0; }
#theme-switcher { border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; border: none; }

/* Area Jam Lokal */
.local-time-container { text-align: center; padding: 4vh 20px; margin-bottom: 40px; }
.local-time-display { font-size: clamp(4rem, 18vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.local-date-display { font-size: clamp(1rem, 4vw, 1.5rem); margin-top: 10px; }

/* Area Jam Dunia */
.world-clocks-section { max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 600; margin-bottom: 25px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.search-container { position: relative; }
.search-container .material-icons { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #999; }
#searchInput { padding: 14px 20px 14px 50px; border-radius: 30px; width: 100%; max-width: 400px; font-size: 1rem; border: none; outline: none; }

/* Kartu Jam Dunia */
.clock-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.clock-card { border-radius: 15px; padding: 20px; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.clock-card:hover { transform: translateY(-8px); }
.dark-mode .clock-card:hover { box-shadow: 0 8px 30px rgba(0, 191, 255, 0.2); }
.light-mode .clock-card:hover { box-shadow: 0 8px 30px rgba(24, 119, 242, 0.15); }
.card-header h2 { font-size: 1.5rem; }
.card-header .flag { font-size: 1.8rem; }
.card-header .country { font-size: 0.9rem; margin-top: -3px; }
.card-body { text-align: center; margin: 15px 0; }
.time { font-size: 2.8rem; font-weight: 600; }
.date { font-size: 0.9rem; }
.card-footer { text-align: center; margin-top: auto; }
.timezone { font-size: 0.85rem; padding: 4px 10px; border-radius: 20px; display: inline-block; }

/* Lain-lain */
.placeholder-text, footer { text-align: center; margin-top: 40px; color: #888; }