/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4caf50, #81c784);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.logo span {
  color: #d4af37;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  padding: 0.5rem;
}

/* Sidebar Navigation */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  width: 280px;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0;
  top: 77px;
  height: calc(100vh - 77px);
  z-index: 999;
  transition: transform 0.3s ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

.nav-item.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-item i {
  width: 24px;
  font-size: 1.2rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

/* Page Management */
.page {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Box Selector */
.box-selector {
  margin-bottom: 2rem;
  text-align: center;
}

.box-selector h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.box-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.box-tab {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.box-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.box-tab.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Box Content */
.box-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.box-content.active {
  display: block;
}

/* Home Page - Sensor Grid */
.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.sensor-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sensor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sensor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.sensor-header i {
  font-size: 1.8rem;
}

.sensor-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.temperature-card .sensor-header i {
  color: #ff6b6b;
}

.humidity-card .sensor-header i {
  color: #4ecdc4;
}

.sensor-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.value {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
}

.unit {
  font-size: 1.4rem;
  color: #666;
  font-weight: 500;
}

.sensor-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sensor-status.optimal {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.sensor-status.warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.sensor-status.danger {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.sensor-range {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sensor-range small {
  color: #888;
  font-size: 0.9rem;
}

/* Control Panel */

/* ===== PENAMBAHAN KODE CSS BARU DIMULAI DI SINI ===== */

/* Container untuk saklar mode */
/* .mode-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
} */

.mode-control .info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

input:not(:checked) + .mode-slider {
  background-color: #797979;
  /* Biru untuk Manual */
}

input:checked + .mode-slider:before {
  transform: translateX(26px);
}

/* Desain untuk tombol ON/OFF manual */
.manual-control .control-button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background-color: #ff0000;
  /* Abu-abu saat OFF */
  color: white;
  min-width: 110px;
  justify-content: center;
}

.manual-control .control-button.active {
  background: linear-gradient(45deg, #28a745, #218838);
  /* Gradien hijau saat ON */
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Status disabled untuk tombol manual saat mode OTOMATIS */
.manual-control .control-button:disabled {
  background-color: #343a40;
  cursor: not-allowed;
  opacity: 0.5;
}

/* ===== AKHIR DARI PENAMBAHAN KODE CSS BARU ===== */

/* Scheduling Section */
.schedule-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 15px;
}

.schedule-section h4 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.2rem;
}

.schedule-grid {
  display: grid;
  gap: 1rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.schedule-item label {
  font-weight: 600;
  color: #555;
  min-width: 70px;
  flex-shrink: 0;
}

.schedule-item input[type="time"] {
  padding: 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background: white;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.schedule-item input[type="time"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.timezone {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  min-width: 40px;
  flex-shrink: 0;
}

.schedule-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  flex-shrink: 0;
}

.schedule-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.schedule-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}

.schedule-toggle .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.schedule-toggle input:checked + .slider {
  background: linear-gradient(45deg, #4caf50, #81c784);
}

.schedule-toggle input:checked + .slider:before {
  transform: translateX(20px);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: linear-gradient(45deg, #4caf50, #81c784);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.irrigation-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 15px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.status-indicator.active {
  color: #4caf50;
}

.status-indicator.inactive {
  color: #666;
}

.status-indicator i {
  font-size: 0.8rem;
}

.last-watering {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #666;
  font-size: 1rem;
}

/* About Page Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-container h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-section {
  margin-bottom: 3rem;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-section h3 i {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8rem;
}

.content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.content-card p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Mitra Section Specific */
.mitra-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mitra-detail h4 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mitra-detail h4::before {
  content: "🍄";
  font-size: 1.5rem;
}

.mitra-detail p {
  margin-bottom: 1rem;
}

.mitra-detail p i {
  color: #667eea;
  margin-right: 0.5rem;
}

.mitra-benefits {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.mitra-benefits h5 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.mitra-benefits ul {
  list-style: none;
  padding: 0;
}

.mitra-benefits li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 2rem;
}

.mitra-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Documentation Section */
.documentation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.doc-item {
  text-align: center;
}

.doc-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  border: 2px dashed #667eea;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.doc-image:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15),
    rgba(118, 75, 162, 0.15)
  );
  border-color: #4caf50;
  transform: translateY(-5px);
}

.doc-image i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.doc-image span {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.doc-item p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-member {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.team-member:hover::before {
  left: 100%;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
  position: relative;
}

.team-member:hover .member-photo {
  transform: rotate(5deg) scale(1.1);
}

.member-photo i {
  font-size: 3rem;
  color: white;
}

.team-member h4 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.team-member p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #e4405f, #c13584);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 53, 132, 0.3);
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 53, 132, 0.4);
  background: linear-gradient(45deg, #c13584, #e4405f);
}

.instagram-link i {
  font-size: 1.2rem;
}

/* Project Page Styles */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
}

.project-container h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-overview {
  margin-bottom: 3rem;
}

.project-overview h3 {
  color: #333;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-overview h3::before {
  content: "🚀";
  font-size: 1.8rem;
}

.modules-section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.module-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.module-icon i {
  font-size: 2rem;
  color: white;
}

.module-info h4 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.module-type {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.module-specs {
  margin-bottom: 1.5rem;
}

.module-specs ul {
  list-style: none;
  padding: 0;
}

.module-specs li {
  padding: 0.4rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.module-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.module-function {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid #667eea;
}

.module-function strong {
  color: #667eea;
}

.architecture-section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.flow-step {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.step-icon i {
  font-size: 1.8rem;
  color: white;
}

.flow-step h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.flow-step p {
  color: #666;
  font-size: 0.9rem;
}

.flow-arrow {
  color: #667eea;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Box System Section */
.box-system-section {
  margin-bottom: 3rem;
}

.box-system-section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.box-overview p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.8;
}

.box-features {
  display: grid;
  gap: 1.5rem;
}

.box-feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
  border-radius: 15px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.box-feature:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  transform: translateX(5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-info h4 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-info p {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    top: 0;
    height: 100vh;
    padding-top: 80px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .box-tabs {
    flex-direction: column;
    align-items: center;
  }

  .box-tab {
    width: 100%;
    max-width: 200px;
  }

  .sensor-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sensor-card {
    padding: 1.5rem;
  }

  .value {
    font-size: 2.5rem;
  }

  .control-item {
    min-width: auto;
    width: 100%;
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }

  .schedule-item > * {
    width: 100%;
    max-width: none;
  }

  .schedule-item label {
    min-width: auto;
    font-size: 0.95rem;
  }

  .schedule-item input[type="time"] {
    font-size: 0.95rem;
  }

  .timezone {
    font-size: 0.85rem;
    min-width: auto;
  }

  .schedule-toggle {
    align-self: flex-end;
    width: 35px;
    height: 18px;
  }

  .schedule-toggle .slider:before {
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
  }

  .schedule-toggle input:checked + .slider:before {
    transform: translateX(17px);
  }

  .about-container h2,
  .project-container h2 {
    font-size: 1.8rem;
  }

  .info-section h3,
  .modules-section h3,
  .architecture-section h3,
  .box-system-section h3 {
    font-size: 1.4rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .mitra-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .documentation-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .architecture-flow {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

  .box-features {
    gap: 1rem;
  }

  .box-feature {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }

  .main-content {
    margin-left: 250px;
    padding: 1.5rem;
  }

  .sensor-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

  .box-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .schedule-grid {
    gap: 0.75rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .documentation-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 1025px) {
  .sensor-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }

  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
  }

  .schedule-item label {
    min-width: auto;
    width: 100%;
    font-size: 0.95rem;
  }

  .schedule-item input[type="time"] {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  .timezone {
    font-size: 0.8rem;
    min-width: auto;
  }

  .schedule-toggle {
    align-self: center;
    margin-top: 0.25rem;
  }
}

/* Loading Animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.sensor-card:hover .value {
  animation: pulse 2s infinite;
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.7);
}

.control-panel {
  background: rgba(255, 255, 255, 0.95); /* Menyamakan dengan card sensor */
  backdrop-filter: blur(10px);
  border-radius: 20px; /* Menyamakan dengan card sensor */
  padding: 2rem; /* Menyamakan dengan card sensor */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Menyamakan dengan card sensor */
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Properti untuk alignment agar sejajar dengan sensor-grid */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.control-panel h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Control Grid - Menggunakan Grid Layout untuk ukuran item yang sama */
.control-grid {
  display: grid; /* Menggunakan Grid Layout */
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Membuat kolom berukuran sama */
  gap: 20px;
}

.control-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* <-- TAMBAHKAN BARIS INI */
}

.control-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-info i {
  font-size: 24px;
  color: #667eea;
}

.info-text h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.info-text small {
  color: #666;
  font-size: 0.85rem;
}

/* ===== KODE BARU UNTUK TOGGLE SWITCH ===== */

.mode-switch {
  position: relative;
  display: inline-block;
  width: 50px; /* Lebar total switch */
  height: 28px; /* Tinggi total switch */
}

.mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px; /* Setengah dari tinggi */
}

.mode-slider:before {
  position: absolute;
  content: "";
  height: 22px; /* Tinggi tombol bulat */
  width: 22px; /* Lebar tombol bulat */
  left: 3px; /* Jarak dari kiri saat OFF */
  bottom: 3px; /* Jarak dari bawah */
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .mode-slider {
  background-color: #4caf50; /* Warna hijau saat ON */
}

input:not(:checked) + .mode-slider {
  background-color: #ccc; /* Warna abu-abu saat OFF */
}

/* Kalkulasi pergeseran yang akurat */
input:checked + .mode-slider:before {
  transform: translateX(
    22px
  );
}

/* Tombol Kontrol Manual */
.control-button {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 120px; /* DIGANTI DARI min-width MENJADI width */
}

.control-button.active {
  background: #4caf50;
}

.control-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ======================================== */
/* STYLING UNTUK PANEL PENJADWALAN (FIXED) */
/* ======================================== */
.schedule-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 900px; /* Samakan dengan panel kontrol */
  margin: 2rem auto 0 auto; /* Beri jarak dari atas dan tengahkan */
}

.schedule-panel h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.schedule-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column; /* Mengubah arah menjadi kolom */
  align-items: stretch; /* Membuat item meregang penuh */
  gap: 15px;
}

.schedule-item > div {
  /* Target untuk .schedule-time dan .schedule-toggle-wrapper */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-time i {
  font-size: 20px;
  color: #667eea;
}

.schedule-time input[type="time"] {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  width: auto; /* Biarkan lebar menyesuaikan */
  flex-grow: 1; /* Biarkan input waktu mengisi ruang */
  margin-left: 10px;
}

.schedule-item-placeholder {
  text-align: center;
  padding: 20px;
  color: #666;
  grid-column: 1 / -1; /* Agar memakan semua kolom jika loading */
}

/* Penyesuaian khusus untuk toggle di dalam jadwal */
.schedule-item .mode-switch {
  flex-shrink: 0; /* Mencegah toggle menyusut */
}
.schedule-item .mode-slider {
  width: 50px; /* Lebar total switch */
  height: 28px; /* Tinggi total switch */
}