/* ===========================
   PWA APP FEEL (GLOBAL MOBILE)
=========================== */

body {
  background: #f4f6f9;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===========================
   APP HEADER / TOP BAR
=========================== */
header,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #0d6efd;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===========================
   APP CONTENT (MUHIMU SANA)
=========================== */
.app-content {
  padding: 70px 14px 20px;
}

/* ===========================
   LOGIN BOX
=========================== */
.login-box {
  background: #073366;
  padding: 20px;
  border-radius: 12px;
  width: 340px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.form-area {
  background: linear-gradient(180deg, #0f4f9e 0%, #1a73e8 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  color: #0b3d91;
  font-size: 50px;
  line-height: 80px;
  font-weight: bold;
  margin: 0 auto 15px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: none;
  background: #0f4f9e;
  color: #fff;
}

.password-box {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  color: #fff;
}

button {
  width: 100%;
  padding: 10px;
  background: #ff9800;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

button:disabled {
  background: #c97c00;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0,0,0,0.2);
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.error {
  color: #ff4d4f;
  margin-bottom: 10px;
}

/* ===========================
   OPTIONAL (KAMA ZIPO PAGES NYINGINE)
=========================== */
.main-content,
.content,
.page-content {
  padding-top: 60px;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {

  /* ===== SIDEBAR ===== */
  .sidebar {
    display: none;
  }

  .sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
  }

  /* ===== TABLE → CARD ===== */
  table {
    width: 100%;
    display: block;
  }

  table thead {
    display: none;
  }

  table tbody {
    display: block;
  }

  table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
  }

  table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
  }

}
