/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

html, body {
    height: 100%;
    -webkit-tap-highlight-color: transparent; /* Menghilangkan highlight tap pada perangkat sentuh */
    -moz-user-focus: none; /* Menghindari fokus otomatis */
}

body {
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Navbar */
header {
    background: #1e90ff;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

a:focus, a:active {
    outline: none;
    color: inherit; /* Warna tetap tidak berubah */
}


header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
        height: 45px;
        width: auto;
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #d0e9ff;
}

nav ul li a:focus {
    outline: none;
    background-color: transparent;
    background: none;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

nav ul li a.login {
    background: #fff;
    color: #1e90ff;
    border: 2px solid #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a.login:hover {
    background: #d0e9ff;
    color: #003366;
}

nav ul li a.register {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a.register:hover {
    background: #fff;
    color: #1e90ff;
}

/* Hero Section */
.hero {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1e90ff;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #555;
}

.hero a {
    background: #1e90ff;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero a:hover {
    background: #005bbb;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #1e90ff;
    color: #fff !important;
    margin-top: auto;
}

/* Gaya untuk ikon media sosial */
.social-icons {
    margin-bottom: 10px;
}

.social-icon {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
    font-size: 24px; /* Ukuran ikon */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* tombol hamburger */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

.menu-icon:focus {
    outline: none !important;
    border: none !important;
}

/* sembunyikan checkbox */
#menu-toggle {
    display: none;
}

/* mode hp */
@media (max-width: 414px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #1e90ff;
        padding: 1rem;
        position: absolute;
        top: 60px; /* tinggi header */
        left: 0;
        right: 0;
    }

    /* tampilkan menu kalau toggle dicentang */
    #menu-toggle:checked + .menu-icon + .logo + nav ul {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    header {
        display: flex;
        justify-content: space-between; /* menu kiri & kanan */
        align-items: center;
        padding: 10px 20px;
        background: #1e90ff;
        border-bottom: 1px solid #ddd;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: bold;
        font-size: 20px;
    }

    .logo img {
        height: 45px;
        width: auto;
    }

    button:focus,
    a:focus {
        outline: none !important;
    }
}

/* ---------- Tambahan CSS untuk template HTML di zip ---------- */
/* Container umum untuk form/halaman */
.container {
    max-width: 980px;
    margin: 2.5rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container h1 {
    text-align: center;
    color: #1e90ff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h1 {
    color: #1e90ff;
    text-align: center;
    margin-bottom: 20px;
}

/* Gaya untuk daftar artikel */
.article {
    margin: 10px 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.article h2 {
    font-size: 18px;
    color: #333;
    margin: 15px;
}
.article p {
    font-size: 14px;
    margin-left: 15px;
}

.article a {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 15px;
    transition: background-color 0.3s ease;
}

.article a:hover {
    background-color: #004494;
}

/* Gaya untuk elemen pagination */
.paginasi {
    text-align: center;
    margin: 50px 10px 50px 10px;
}

.paginasi a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.paginasi a:hover {
    background-color: #0056b3;
    color: #fff;
}

.paginasi span {
    font-size: 1.1em;
    color: #333;
    padding: 10px 10px;
}

.paginasi a:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.paginasi a:disabled:hover {
    background-color: transparent;
    color: #ccc;
}

/* Responsif untuk pagination */
@media (max-width: 400px) {
    .paginasi a {
        font-size: 0.9em;
        padding: 3px 6px;
        margin: 0 1px;
    }

    .paginasi span {
        font-size: 0.9em;
    }
}

/* Header dan Footer placeholder (digunakan di template sebagai #header / #footer) */
#header {
    background: transparent; /* header sering dimuat via partial; biarkan fleksibel */
    padding: 0;
    margin-bottom: 1rem;
}
#footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    color: #ffffff;
    background: #1e90ff; /* sama seperti header theme */
}

/* Kartu info sederhana */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #1e90ff;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
}

.card-body {
    padding: 20px;
    background-color: #f9f9f9;
}

.card-body ul {
    list-style: none;
}

.card-body ul li {
    padding: 8px 0;
}

/* Dashboard container */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* Tombol keluar / logout */
.card-body a.logout-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff6347;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.card-body a.logout-btn:hover {
    background-color: #e5533b;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

select.form-control {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 1em;
}

select.form-control:focus {
    border-color: #1e90ff;
    outline: none;
}

/* Link kecil seperti 'forgot' */
a.forgot {
    display: inline-block;
    margin-top: 0.8rem;
    color: #1e90ff;
    text-decoration: none;
    font-size: 0.95rem;
}
a.forgot:hover { text-decoration: underline; }

/* Form umum */
form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #233247;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(34,50,71,0.08);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    background: #fbfdff;
    border: 1px solid #ddd;
    box-shadow: 0 0 0 2px rgba(30,144,255,0.15);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #1e90ff;
    outline: none;
}

/* tombol submit / primer */
button[type="submit"],
.btn-primary {
    background: #1e90ff;
    color: #fff;
    border: none;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(30,144,255,0.12);
}

button[type="submit"]:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(30,144,255,0.16);
}

/* Tombol dan link hover dan focus */
button[type="submit"]:hover,
.btn-primary:hover,
button:hover,
a:hover,
a:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(30,144,255,0.16);
    outline: none; /* Pastikan tidak ada outline biru */
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}

button.btn-primary {
    background-color: #1e90ff;
}

button.btn-warning {
    background-color: #ffbf00;
}

button.btn-danger {
    background-color: #ff6347;
}

button:hover {
    opacity: 0.9;
}

/* Pesan flash/error/success */
.flash-message-container p {
  margin-top: 10px;
  font-size: 1em;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.flash-message-container .success {
  background-color: #4CAF50;
  color: white;
}

.flash-message-container .info {
  background-color: #2196F3;
  color: white;
}

.flash-message-container .warning {
  background-color: #ff9800;
  color: white;
}

.flash-message-container .error {
  background-color: #f44336;
  color: rgb(255, 255, 255);
}

/* Password field with toggle eye */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 0;
    margin-top: 20px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: rgba(34,50,71,0.6);
}

/* Khusus daftar-siaran: detail container dan filter select */
#detail {
  margin-top: 20px;
}

#detail .alert-siaran {
  background-color: #ffcc00;
  color: #333;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  margin: 0.6rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

#detail .card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

#detail .card h3 {
    color: #1e90ff;
}

#detail .card p {
  font-size: 1em;
  color: #666;
  line-height: 1.5;
}

#detail .card p strong {
  color: #444;
}

#detail .card h4 {
  font-size: 1.2em;
  color: #444;
  margin-top: 20px;
}

#detail ul {
  padding-left: 20px;
}

#detail ul li {
  font-size: 1em;
  color: #555;
  margin: 5px 0;
}

/* Responsif tambahan */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .container { margin: 1rem; padding: 1rem; }
  #footer { padding: 1rem; }
}

/* Perbaikan tampilan forms pada hp kecil */
@media (max-width: 414px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
    
  .card { padding: 0.85rem; 
  }  
}

/* Utility kecil */
.text-center { text-align: center; }
.muted { color: #6b7280; font-size: 0.94rem; }
.small { font-size: 0.85rem; }


