﻿

<style>
    /* Reset */
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;           /* ✅ Saiz selesa dibaca di desktop & mobile */
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12-14px;   /* 16px standard, 18px lebih selesa untuk desktop */
  line-height: 1.4-1.6; /* Ruang antara baris selesa, elak kepadatan */
  color: #333;           /* Warna teks neutral, kurang strain mata */
  background-color: #f9fafc;
}

/*header n navbar*/

.header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo kiri, navbar center, social kanan */
  flex-wrap: wrap;
  background-color: #0d47a1;
  padding: 30px 30px;
}

/* Logo kiri */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1px; /* rapatkan logo MBJ & iCARE */
}

.logo {
  height: 50px;
}
	.secondary-logo {
  /* buang margin tambahan jika ada */
  margin-left: 0;
}

/* Navbar center */
.navbar {
  display: flex;
  justify-content: center;
  flex: 1; /* ambil ruang antara logo & social */
  gap: 20px;
  flex-wrap: wrap;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ffcc80;
}

.navbar .logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.navbar .logout i {
  font-size: 16px;
}

/* Social icon kanan */
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 30px; /* margin kiri */
	margin-right: 80px;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffcc80;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .navbar {
    flex: unset;
    justify-content: center;
    width: 100%;
  }

  .social-icons {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .logo {
    height: 40px;
  }

  .navbar a {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 16px;
  }
}







 /* ====== DROPDOWN ====== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 10;
  top: 100%;
  left: 0;
  overflow: hidden;
}

.dropdown-content a {
  color: #0d47a1;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f0f4ff;
  color: #ff6b35;
}

/* Hover trigger */
.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Animasi lembut */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


.main-container {
  max-width: 95%; /* width selesa di desktop */
  margin: 0 auto;
  padding: 20px 30px; /* ruang selesa dari tepi */
	gap: 20px;
	display: grid;
    grid-template-columns: 1fr 2fr;
}
/* Tablet / skrin sederhana */
@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr; /* tukar ke 1 kolum */
    padding: 20px 20px;         /* padding lebih kecil */
    gap: 15px;                  /* jarak grid lebih kecil */
  }
}

/* Mobile / skrin kecil */
@media (max-width: 576px) {
  .main-container {
    max-width: 95%;             /* guna hampir penuh skrin */
    padding: 15px 10px;         /* padding lebih kemas */
    gap: 10px;                  /* jarak antara item lebih rapat */
  }
}
    /* Box */
    .pengumuman, .cadangan {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.08);
      padding: 20px;
      height: 100%; /* tinggi kotak cadangan */
      width: inherit;
      overflow: hidden;
    }

    .pengumuman h2, .cadangan h2 {
      color: #0d47a1;
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .marquee-text {
      background: #f1f5ff;
      padding: 10px;
      margin-bottom: 15px;
      color: #d32f2f;
      font-weight: 500;
      border-radius: 6px;
      font-size: 14px;
    }

    /* iframe style kotak cadangan */
    .frame-box {
      width: 100%;
      height: 100%;
      border: none;
      border-radius: 10px;
      background: #fafafa;
    }

/* Footer */
.footer {
  margin-top: 20px;
  background: #0d47a1;
  color: #fff;
  display: flex;
  justify-content: center;       /* rata tengah secara horizontal */
  align-items: flex-start;
  flex-wrap: wrap;               /* supaya kotak boleh turun ke bawah */
  gap: 40px;                     /* jarak antara kotak (lebih responsive dari 250px) */
  padding: 30px 20px;
  text-align: left;
  font-size: 14px;               /* base font */
  line-height: 1.6;              /* ruang antara baris selesa */
}

.footer-box {
  width: 300px;
  min-width: 250px;              /* supaya tak terlalu kecil bila skrin sempit */
}

.footer-box h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* Responsive - tablet/mobile */
@media (max-width: 992px) {
  .footer {
    gap: 30px;                   /* jarak sedikit lebih kecil */
  }
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;      /* susun ke bawah */
    align-items: center;         /* rata tengah */
    text-align: center;          /* teks di tengah */
    padding: 20px 15px;          /* padding lebih sesuai */
    gap: 20px;                   /* jarak lebih kecil untuk mobile */
    font-size: 15px;             /* font sedikit lebih besar untuk mobile */
  }

  .footer-box {
    width: 90%;                  /* guna lebar hampir penuh skrin */
    min-width: unset;            /* reset supaya responsive */
  }

  .footer-box h3 {
    font-size: 18px;             /* heading lebih jelas pada mobile */
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;   /* sedikit lebih kecil untuk mobile */
  }
  h1, h2, h3 {
    line-height: 1.4;
  }
}
    .btn-undi {
      margin-top: 12px;
      padding: 8px 14px;
      border: none;
      border-radius: 8px;
      background: #ff6b35;
      color: #fff;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn-undi:hover {
      background: #e55a2b;
    }

	 .btn-aduan {
      margin-top: 12px;
      padding: 8px 14px;
      border: none;
      border-radius: 8px;
      background: #0d47a1;
      color: #fff;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn-aduan:hover {
      background: #2559aa;
    }

    /* Form toggle buttons */
    .form-toggle-buttons {
    /* margin-bottom: 15px;*/
		
          display: flex;
		  flex-direction: row; /* boxes will be side by side */
		  /*justify-content: space-between;  spread them left & right */
		  justify-content: left;/* adjust kedudukan */
		  gap: 0.1rem; /* space between boxes */
			
        
    }

    .btn-toggle {
      padding: 8px 16px;
      margin-right: 10px;
      border: none;
      border-radius: 8px;
      background: #0d47a1;
      color: white;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease;
      display: inline-flex;
      align-items: center;
      font-size: 14px;
    }

    .btn-toggle i {
      margin-right: 8px;
      font-size: 16px;
    }

    .btn-toggle:hover {
      background: #09407a;
    }

    .btn-toggle.active {
      background: #ff6b35;
    }

 /* Forms inside usul */
    .usul-form label {
      font-weight: 500;
      color: #fd7530;
    }

    .usul-form input[type="text"],
    .usul-form input[type="email"],
    .usul-form textarea {
      width: 100%;
      padding: 8px;
      margin-top: 4px;
      margin-bottom: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      resize: vertical;
    }


    /* Forms inside aduan */
    .cadangan-form label {
      font-weight: 500;
      color: #0d47a1;
    }

    .cadangan-form input[type="text"],
    .cadangan-form input[type="email"],
    .cadangan-form textarea {
      width: 100%;
      padding: 8px;
      margin-top: 4px;
      margin-bottom: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      resize: vertical;
    }

 /* Additional sections*/
        .additional-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        } 
 		

        .additional-content h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .additional-content p {
            color: #666;
            line-height: 1.5;
        }

	/* Admin Page 
.admin-container {
  padding: 20px;
}*/

/* Wrapper */
.admin-container {
    max-width: 900;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    line-height: 1.6;
    border: 1px solid #e3e6ea;
}
/*
.admin-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}*/


.admin-container h2 {
    margin: 5px 0;
    font-size: 20px;
    color: #0d47a1;
}

.admin-container p {
    font-size: 17px;
    margin-top: 15px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .admin-container {
        padding: 20px 18px;
        margin: 15px;
        border-radius: 10px;
    }

    .admin-container h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .admin-container p {
        font-size: 15px;
        padding: 0 8px;
        line-height: 1.5;
    }
}
/* Stats Section */

.stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: white;
            border-radius: 8px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .stat-card h3 {
            font-size: 1.1em;
            color: #666;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .stat-card p {
            font-size: 2.5em;
            font-weight: bold;
            color: #2c3e50;
            margin: 0;
        }

        .stat-card small {
            display: block;
            margin-top: 10px;
            color: #999;
            font-size: 0.9em;
        }





/* Info Peranan Pengguna */
        .role-info {
            background: #e3f2fd;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
            color: #1976d2;
        }

      
/* Table */
.admin-table {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.admin-table h2 {
  color: #0d47a1;
  margin-bottom: 15px;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #f1f5ff;
  color: #0d47a1;
  font-weight: 600;
}

.status {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.status.pending {
  background: #fff3cd;
  color: #856404;
}
.status.approved {
  background: #d4edda;
  color: #155724;
}
.status.baru { /* 0 =baru merah */
  background: #F8D7DA;
  color: #721C24;
}

.status.selesai { /* 2 =selesai biru */
  background: ##D1ECF1;
  color: #0C5460;
}

.status.pemerhatian { /* 1 =dalam pemerhatian */ kuning
  background: #FFF3CD;
  color: #856404;
}

.status.lulus { /* 3 =lulus  hijau*/
  background: #d4edda;
  color: #155724;
}

.status.tidaklulus { /*  =lulus  purple  belum guna status ni*/
  background: #E2D6F9;
  color: #4B3B73;
}

.status.tidaklulus2 { /* =lulus  purple  light belum guna status ni*/
  background: #E2E3E5;
  color: #383D41;
}



.btn-small {
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  background: #ff6b35;
  color: #fff;
  cursor: pointer;
}
.btn-small:hover {
  background: #e55a2b;
}

/* Logout button */
.navbar .logout {
  color: #ffcccb;
  font-weight: 600;
}

.navbar .logout:hover {
  color: #ff6b35;
}
/* END TABLE */

    /* Responsive for smaller screens */
    @media (max-width: 768px) {
      .main-container {
        grid-template-columns: 1fr;
      }
      .pengumuman, .cadangan {
        height: auto;
      }
      .navbar {
        justify-content: flex-start;
        flex-wrap: wrap;
      }
      .navbar a {
        margin-left: 10px;
        margin-bottom: 8px;
      }
      .footer-box {
        width: 100%;
        max-width: 300px;
      }
    }
/*style table laporan* page view/sen_usul.php/
	.laporan-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 30px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.laporan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.laporan-logo {
  width: 40px;
  height: 40px;
}

.laporan-header h2 {
  font-size: 1.4em;
  color: #1565c0; /* pastel blue heading */
}

/* Filter Box — pastel blue instead of orange */
.laporan-filter {
  background-color: #e3f2fd; /* light pastel blue */
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #bbdefb; /* soft blue border */
}

.laporan-filter form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.laporan-filter label {
  font-weight: 600;
  color: #0d47a1; /* deep blue label text */
}

.laporan-filter select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #b0bec5;
}

/* Button */
.btn-papar {
  background-color: #64b5f6; /* pastel blue button */
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-papar:hover {
  background-color: #42a5f5; /* slightly darker on hover */
}

/* Table */
.laporan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  margin-top: 10px;
}

.laporan-table thead {
  background-color: #90caf9; /* soft blue header */
  color: #000; /* black title font */
  font-weight: 600;
}

.laporan-table th, 
.laporan-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* Alternate pastel grey rows */
.laporan-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

.laporan-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.laporan-table tr:hover {
  background-color: #e3f2fd;
}

/* Row hover effect */
.laporan-table tr:hover {
  background-color: #e3f2fd; /* soft pastel blue highlight */
}

/* Footer link */
.laporan-footer {
  margin-top: 10px;
  text-align: right;
}

.export-link {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
}

.export-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .laporan-filter form {
    flex-direction: column;
    align-items: flex-start;
  }

  .laporan-table th,
  .laporan-table td {
    font-size: 0.9em;
  }
}  
/* RESPONSIVE DESIGN */
.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #0d47a1;
}

#menu-toggle {
  display: none;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 900px) {
  .menu-center {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 20px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  #menu-toggle:checked ~ .menu-center {
    display: flex;
  }

  .menu-icon {
    display: block;
    position: absolute;
    right: 70px;
  }

  .logout {
    position: absolute;
    right: 20px;
    font-size: 16px;
  }
}
/*end style table laporan*/
  </style>