/* Palet Warna Biru mirip Facebook:
   - Primer (untuk Header/Tombol): #1877F2 (Biru Cerah FB)
   - Sekunder (untuk Footer/Aksen): #4267B2 (Biru Tua FB)
   - Latar Belakang Konten: #f0f2f5 (Abu-abu Cerah FB)
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5; /* Latar belakang abu-abu cerah */
  color: #1c1e21; /* Teks gelap */
  line-height: 1.6;
}

/* Header Styling */
header {
  background-color: #1877F2; /* Biru Cerah */
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1em;
}

/* Main Container and Layout */
.container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  height: fit-content; /* Sesuai dengan konten */
}

.sidebar h2 {
    color: #4267B2;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.sidebar ul {
  list-style-type: none;
}

.sidebar li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #1c1e21;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar li a:hover {
  background-color: #f0f2f5; /* Biru sangat muda */
}

.sidebar li a.active {
    background-color: #1877F2; /* Biru Cerah */
    color: white;
    font-weight: bold;
}

/* Content Area */
.content {
  flex-grow: 1;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #1877F2;
    margin-bottom: 20px;
    border-bottom: 3px solid #1877F2;
    padding-bottom: 10px;
    font-size: 1.8em;
}

/* Table Styling */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.schedule-table th, .schedule-table td {
  border: 1px solid #dddfe2; /* Garis abu-abu muda */
  padding: 12px;
  text-align: left;
}

.schedule-table thead th {
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: #4267B2; /* Biru Tua */
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.schedule-table tbody tr:nth-child(even){
  background-color: #f7f8fa; /* Sedikit abu-abu */
}

.schedule-table tbody tr:hover {
  background-color: #ebf5ff; /* Aksen biru saat di-hover */
}

/* Footer Styling */
footer {
  background-color: #4267B2; /* Biru Tua */
  padding: 15px;
  text-align: center;
  color: white;
  margin-top: 20px;
  font-size: 0.9em;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .sidebar h2 {
    text-align: center;
    border-bottom: none;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .sidebar li {
    flex-grow: 1;
  }

  .sidebar li a {
    text-align: center;
  }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    .content {
        padding: 15px;
    }
}