/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Arial', sans-serif;
  background-color: #FFF6D9;
  margin: 0;
  padding: 0;
  position: relative; /* Added for logo positioning */
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
  background-color: #A6C672;
  padding: 10px 0;
  border-bottom: 2px solid #2c3e50;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  position: relative; /* Added for logo positioning */
  z-index: 99; /* Ensure nav stays above other elements */
}

.nav-container {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 5px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #2c3e50;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.nav-item:hover {
  background-color: #8FB359;
}

.nav-item.active {
  background-color: #7A9F4B;
  color: white;
}

.nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.nav-item span {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ===== HEADER ===== */
header {
  background-color: #FFD93B;
  padding: 20px 0;
  text-align: center;
  position: relative;
  border: 2px solid black;
  margin: 50px auto 0; /* Adjusted for logo space */
  width: 85%;
  max-width: 1000px;
  border-radius: 5px;
}

header h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
}

/* ===== SCHEDULE CONTAINER ===== */
.schedule-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 30px;
  width: 100%;
  max-width: 1200px; /* Tambahkan max-width untuk container utama */
  margin: 0 auto; /* Pusatkan container */
}

/* ===== SCHEDULE CARD ===== */
.schedule-card {
  background-color: white;
  border: 2px solid black;
  border-radius: 8px;
  padding: 20px;
  width: 85%; /* Disamakan dengan header */
  max-width: 1000px; /* Disamakan dengan header */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 0 auto 30px; /* Pusatkan dan beri margin bawah */
}

/* Schedule Tabs */
.day-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tab-button {
  padding: 8px 15px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: #A6C672;
  color: white;
}

.tab-content {
  display: none;
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.schedule-card h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #A6C672;
  padding-bottom: 5px;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}

.schedule-table th, .schedule-table td {
  padding: 12px 8px;
  border: 1px solid #ddd;
  word-wrap: break-word;
}

.schedule-table th {
  background-color: #A6C672;
  font-weight: bold;
  font-size: 16px;
  color: white;
}

.schedule-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.schedule-table tr:hover {
  background-color: #f1f1f1;
}

/* Time Column */
.schedule-table td:first-child {
  font-weight: bold;
  background-color: #e6f3ff;
}

/* Schedule highlight styles */
.schedule-table td.highlighted {
  background-color: #8FB359;
  color: white;
  font-weight: bold;
}

.schedule-table td.highlighted:hover {
  background-color: #7A9F4B;
}

/* ===== SCHOOL SPHERE LOGO ===== */
.logo-container {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  text-align: center;
  line-height: 1.2;
}

.logo-main {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}

.logo-school {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
}

.logo-sphere {
  font-size: 18px;
  font-weight: bold;
  color: #7A9F4B;
}

.logo-tagline {
  font-size: 10px;
  color: #666;
  line-height: 1.2;
}

/* ===== FOOTER ===== */
footer {
  background-color: white;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column h1 {
  font-size: 24px;
  color: #333;
}

.footer-column p {
  color: #666;
  line-height: 1.5;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links-group a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.links-group a:hover {
  color: #333;
}

.contact-info h3 {
  color: #333;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info li {
  color: #666;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter h3 {
  color: #333;
}

.email-input {
  position: relative;
}

.email-input input {
  padding: 10px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background-color: #ddd;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #666;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
  .nav-item {
    padding: 8px 10px;
    min-width: 70px;
    font-size: 12px;
  }
  
  .nav-item img {
    width: 20px;
    height: 20px;
  }
  
  header {
    width: 90%;
    margin-top: 60px;
  }
  
  header h1 {
    font-size: 28px;
  }
  
  .logo-container {
    top: 10px;
    right: 10px;
  }
  
  .logo-school {
    font-size: 14px;
  }
  
  .logo-sphere {
    font-size: 16px;
  }
  
  .logo-tagline {
    font-size: 9px;
  }
  
  .schedule-table th, 
  .schedule-table td {
    padding: 8px 4px;
    font-size: 14px;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-item {
    padding: 6px 8px;
    min-width: 60px;
  }
  
  .nav-item span {
    font-size: 12px;
  }
  
  header {
    width: 95%;
    margin-top: 50px;
    padding: 15px 0;
  }
  
  header h1 {
    font-size: 24px;
  }
  
  .logo-container {
    padding: 3px 8px;
  }
  
  .logo-school {
    font-size: 12px;
  }
  
  .logo-sphere {
    font-size: 14px;
  }
  
  .schedule-table th, 
  .schedule-table td {
    padding: 6px 2px;
    font-size: 12px;
  }
  
  .tab-button {
    padding: 6px 10px;
    font-size: 12px;
  }
}
.logo-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  text-align: right;
  line-height: 1;
}

.logo-line1 {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.logo-line2 {
  font-size: 18px;
  font-weight: bold;
  color: #7A9F4B;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.logo-line3 {
  font-size: 10px;
  color: #666;
  line-height: 1;
  margin: 2px 0 0 0;
}

.logo-line4 {
  font-size: 12px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1;
  margin: 1px 0 0 0;
}

/* Adjust header margin */
header {
  margin-top: 40px;
}

/* Schedule Container */
.schedule-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 30px;
  width: 100%;
}

.schedule-card {
  background-color: white;
  border: 2px solid black;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* Schedule highlight styles */
.schedule-table td.highlighted {
  background-color: #2c3e50;
  color: white;
  font-weight: bold;
  position: relative;
}

.schedule-table td.highlighted:hover {
  background-color: #1a2636;
}

/* Add this to make the highlight more visible on colored rows */
.schedule-table tr:nth-child(even) td.highlighted {
  background-color: #2c3e50;
}

.schedule-table tr:hover td.highlighted {
  background-color: #1a2636;
}

/* ===== NOTES CONTAINER ===== */
.notes-container {
  background-color: white;
  border: 2px solid #2c3e50;
  border-radius: 8px; /* Diubah dari 10px ke 8px seperti header */
  padding: 20px;
  width: 85%; /* Disamakan dengan header */
  max-width: 1000px; /* Disamakan dengan header */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Disamakan dengan schedule-card */
  margin: 0 auto 30px; /* Pusatkan dan beri margin bawah */
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #A6C672;
}

.notes-header h2 {
  color: #2c3e50;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.notes-actions {
  display: flex;
  gap: 10px;
}

.notes-toggle {
  background-color: #A6C672;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notes-toggle:hover {
  background-color: #8FB359;
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

.notes-toggle.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.notes-button {
  background-color: #f1f1f1;
  color: #2c3e50;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.notes-button:hover {
  background-color: #e0e0e0;
}

.notes-editor {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

#notes-textarea {
  width: 100%;
  height: 250px;
  padding: 15px;
  border: none;
  border-bottom: 1px solid #eee;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  background-color: #f9f9f9;
}

#notes-textarea:focus {
  outline: none;
  background-color: white;
}

.notes-toolbar {
  display: flex;
  padding: 8px 10px;
  background-color: #f5f5f5;
  gap: 8px;
}

.format-button {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.format-button:hover {
  background-color: #e9e9e9;
}

.notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

#notes-status {
  padding: 4px 8px;
  border-radius: 4px;
}

.status-ready {
  color: #666;
}

.status-saving {
  color: #2c3e50;
  background-color: #FFF6D9;
}

.status-saved {
  color: #2c3e50;
  background-color: #e6f7e6;
}

.status-cleared {
  color: #2c3e50;
  background-color: #ffecec;
}

.notes-counter {
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  .notes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .notes-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  #notes-textarea {
    height: 180px;
  }
}

@media (max-width: 480px) {
  #notes-textarea {
    height: 150px;
    font-size: 14px;
    padding: 10px;
  }
  
  .notes-toolbar {
    padding: 5px;
  }
  
  .format-button {
    padding: 3px 6px;
    font-size: 12px;
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: white;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column h1 {
  font-size: 24px;
  color: #333;
}

.footer-column p {
  color: #666;
  line-height: 1.5;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links-group a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  white-space: pre-line;
}

.links-group a:hover {
  color: #333;
}

.contact-info h3 {
  color: #333;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.contact-info li {
  color: #666;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter h3 {
  color: #333;
}

.email-input {
  position: relative;
}

.email-input input {
  padding: 10px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background-color: #ddd;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #666;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
  .nav-item {
    padding: 8px 10px;
    min-width: 70px;
    font-size: 12px;
  }
  
  .nav-item img {
    width: 20px;
    height: 20px;
  }
  
  .social-media-links {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}