/* Start Body */
 body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}


body.dark {
  background-color: #121212;
  color: #ffffff;
}

/* End Body */
/* Start Header */
.header-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fafb;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.header-navbar.dark {
  background-color: #1e1e1e;
  border-bottom: 1px solid #444;
}

.header-menu-icon {
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-left: 12px;  
  margin-right: 12px;
  color: black;
  user-select: none;
}

body.dark .header-menu-icon {
  color: white;
}

.header-avatar {
  cursor: pointer;
  width: 30px; 
  height: 30px;
  border-radius: 50%;
  background-color: #d0d7e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: black;
  margin-right: 12px;
}

.header-left-dropdown,
.header-right-dropdown {
  position: fixed;
  top: 60px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  height: auto;
  padding: 0;
  width: 240px;
}

.header-left-dropdown {
  left: 12px;
}

.header-right-dropdown {
  right: 12px;
}

.header-left-dropdown.dark,
.header-right-dropdown.dark {
  background-color: #1e1e1e;
}

.header-left-dropdown.show,
.header-right-dropdown.show {
  display: block;
}

.header-left-dropdown a,
.header-right-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: black;
  font-size: 14px;
  transition: background 0.2s ease;
}

.header-left-dropdown a:hover,
.header-right-dropdown a:hover {
  background-color: #f5f5f5;
}

.header-left-dropdown.dark a,
.header-right-dropdown.dark a {
  color: white;
}

.header-left-dropdown.dark a:hover,
.header-right-dropdown.dark a:hover {
  background-color: #333;
  color: white;
}

.header-dropdown-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  white-space: normal; /* Ruhusu text refu kuendelea line mpya */
  word-break: break-word; /* Kuvunja maneno marefu */
  overflow: visible; /* Onyesha text yote chini */
}

.header-dropdown-header h4,
.header-dropdown-header p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  margin: 0;
}

.header-dropdown-header h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase; /* Business name itoke na herufi kubwa zote */
}

.header-dropdown-header p {
  font-size: 13px;
  color: gray;
}

.header-logout-btn {
  border: none;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  font-weight: bold;
  background: #009688;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.header-logout-btn i {
  margin-right: 6px;
}

.header-logout-btn:hover {
  background-color: #00796b;
  color: white;
}

.header-toggle-darkmode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 14px;
  color: black;
  cursor: pointer;
}

.header-toggle-darkmode > .text-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-toggle-darkmode:hover {
  background-color: #f5f5f5;
}

.header-right-dropdown.dark .header-toggle-darkmode {
  color: white;
}

.header-right-dropdown.dark .header-toggle-darkmode:hover {
  background-color: #333;
}

.header-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
}

.header-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.header-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.4s;
}

.header-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.header-switch input:checked + .header-slider {
  background-color: #009688;
}

.header-switch input:checked + .header-slider:before {
  transform: translateX(21px);
}

.header-section-title {
  padding: 5px 15px 3px;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 10px;
}

.header-left-dropdown.dark .header-section-title {
  color: #aaa;
}

/* End Header */


/* Start Container / Form */
.container {
  background: #fff;
  padding: 15px 30px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 480px;
  margin: 30px auto;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
  .container {
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 900px;
  }
}


body.dark .container {
  background: #1e1e1e;
  color: #f3f4f6;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.title i {
  font-size: 1.2rem;
  color: #d32f2f;
}

body.dark .title i {
  color: #f28b82;
}

.subtitle {
  font-size: 0.95rem;
  color: #777;
  margin: 0 0 1rem;
}

body.dark .subtitle {
  color: #aaa;
}

.form-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem;
  padding-right: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  background: #fff;
  color: #000;
}

body.dark .form-group input {
  background: #2a2a2a;
  color: #f3f4f6;
  border-color: #444;
}

.form-group input:focus {
  border-color: #009688;
}

body.dark .form-group input:focus {
  border-color: #90caf9;
}

.form-group label {
  position: absolute;
  top: 0.7rem;
  left: 0.8rem;
  font-size: 0.9rem;
  color: #999;
  background: #fff;
  padding: 0 4px;
  pointer-events: none;
  transition: 0.2s ease all;
}

body.dark .form-group label {
  background: #1e1e1e;
  color: #bbb;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -7px;
  left: 8px;
  font-size: 0.7rem;
  color: #009688;
}

body.dark .form-group input:focus + label,
body.dark .form-group input:not(:placeholder-shown) + label {
  color: #009688;
}

.form-group.error input {
  border-color: #e74c3c;
}

body.dark .form-group.error input {
  border-color: #f28b82;
}

.form-group.error label {
  color: #e74c3c;
}

body.dark .form-group.error label {
  color: #f28b82;
}

.form-group.error input:focus + label,
.form-group.error input:not(:placeholder-shown) + label {
  color: #e74c3c;
}

body.dark .form-group.error input:focus + label,
body.dark .form-group.error input:not(:placeholder-shown) + label {
  color: #f28b82;
}

.error-text {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
}

body.dark .error-text {
  color: #f28b82;
}

.main-button {
  width: 100%;
  background: #009688;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.dark .main-button {
  background: #00796b;
  color: #fff;
}
/* End Container / Form */

    
    
    /* Start Messange */
    .message {
      margin: 15px auto 30px;
      padding: 12px 15px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      max-width: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 320px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      background-color: #fff;
      color: #333;
      border: 1px solid transparent;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }
    .message.success {
      border-color: #009688;
    }
    .message.success .message-icon {
      color: #009688;
      font-size: 18px;
    }
    .message.error {
      border-color: #e74c3c;
    }
    .message.error .message-icon {
      color: #e74c3c;
      font-size: 18px;
    }
    body.dark .message {
      background-color: #1e1e1e;
      color: #ddd;
      box-shadow: 0 2px 10px rgba(255,255,255,0.1);
    }
    body.dark .message.success {
      border-color: #009688;
      color: #009688;
    }
    body.dark .message.error {
      border-color: #f44336;
      color: #f1a0a5;
    }
    body.dark .message.error .message-icon {
      color: #f44336;
    }
    .input-error {
      color: #e74c3c;
      font-size: 13px;
      margin-top: -10px;
      margin-bottom: 10px;
    }
    .input-error-border {
      border-color: #e74c3c;
    }    
    /* End Messsage  */
    

   
    /* Start Switch */
    .switch-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      color: #333;
      font-size: 18px;
      cursor: pointer;
      user-select: none;
      padding: 10px 0;
    }
    body.dark .switch-label {
      color: #ccc;
    }
    .switch {
      position: relative;
      display: inline-block;
      width: 50px;
      height: 28px;
    }
    .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.4s;
      border-radius: 34px;
    }
    .slider:before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 4px;
      bottom: 3px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
    }
    input:checked + .slider {
      background-color: #009688;
    }
    input:checked + .slider:before {
      transform: translateX(22px);
    }
    input:focus + .slider {
      box-shadow: 0 0 1px #009688;
    }
    /* End Switch */
    
    
    /* Dashboard */
   .dashboard-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.dashboard-balance {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #f1f5f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    border-left: 5px solid #009688;
}

.dashboard-icon {
    font-size: 40px;
    margin-right: 20px;
    background: #009688;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.dashboard-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.dashboard-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: #111827;
}

canvas {
    margin-top: 40px;
}

body.dark {
    background-color: #121212;
    color: #fff;
}

body.dark {
    background-color: #121212;
    color: #fff;
}

body.dark .dashboard-balance {
    background: #1e1e1e;
    border-left: 5px solid #009688;
}

body.dark .dashboard-label {
    color: #d1d5db;
}

body.dark .dashboard-amount {
    color: #f9fafb;
}

    /* End Dashboard */
    
    
    /* Start Footer */
    main {
      flex: 1;
    }

    .site-footer {
      background-color: #f9fafb;
      color: #6b7280;
      text-align: center;
      padding: 20px 0;
      font-size: 14px;
      position: relative;
      bottom: 0;
      width: 100%;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    body.dark .site-footer {
      background-color: #1e1e1e;
      color: #9ca3af;
    }

    .site-footer .footer-content {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .site-footer a {
      color: #6b7280;
      text-decoration: none;
      padding: 0 8px;
      transition: color 0.3s ease;
    }
    body.dark .site-footer a {
      color: #9ca3af;
    }

    .site-footer a:hover {
      color: #374151;
      text-decoration: none;
    }
    body.dark .site-footer a:hover {
      color: #d1d5db;
    }   
     /* End Footer */