* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

html,
body {
  min-height: 100vh; 
  height: auto; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f7fbff;
  min-height: 100vh;
  
}


.sidebar {
  height: 100vh;
  background-color: #46638E;
  color: white;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 9999;
  transition: width 0.3s ease;
  width: 260px; 
  display: flex;
  flex-direction: column;
}


.sidebar.collapsed {
  width: 80px;
  padding: 20px 10px;
}


.sidebar .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 5px;
  justify-content: center;
}

.sidebar .logo-icon {
  width: 40px;
  height: 40px;
}

.sidebar .logo-text {
  font-size: 1.8rem;
  font-weight: 1000;
  color: #F7FBFF;
  margin-left: 10px;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  display: none;
}

.sidebar hr {
  width: 80%;
  border: none;
  height: 2px;
  background-color: white;
  margin: 10px auto;
}

.sidebar .bio {
  text-align: center;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .bio {
  opacity: 0;
  display: none;
}

.sidebar .add-report {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #7B213E;
  color: white;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: background 0.3s ease-in-out;
}

.sidebar .add-report:hover {
  background: #5c182f;
}

.sidebar .plus-icon {
  font-size: 20px;
  display: inline-block;
  margin-right: 5px;
}

.sidebar .add-text {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .add-text {
  opacity: 0;
  display: none;
}

.sidebar.collapsed .add-report {
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

.sidebar-content {
  padding: 0 0 10px 0;
  background: #FFFCFA;
  border-radius: 10px;
  width: 100%;
  flex-grow: 1;
  overflow-y: auto; 
  max-height: calc(100vh - 100px); 
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav ul a {
  text-decoration: none;
  display: block;
}

.sidebar nav ul li {
  margin: 10px 0;
  padding: 12px;
  background-color: #FFFCFA;
  color: #46638E;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.sidebar .sidebar-content .sidebar-icon {
  margin-right: 8px;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-content .sidebar-icon {
  margin-right: 0;
}

.sidebar nav ul li:hover {
  background-color: #d2f0fb;
}

.sidebar .nav-text {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  display: none;
}

.sidebar.collapsed nav ul li {
  padding: 12px 0;
  justify-content: center;
}

.toggle-icon{
  width: 10px;
  color: white;
}

.toggle-btn {
  position: absolute;
  right: 15px;
  top: 20px;
  background: #46638E;
  border: 2px solid white;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
}

.toggle-btn:hover {
  background: #5c7cb5;
}

.sidebar.collapsed .toggle-btn {
  transform: rotate(180deg);
}

/* Media queries for responsive behavior */
@media screen and (max-width: 768px) {
  .sidebar {
      width: 80px; 
  }
  
  .sidebar .logo-text,
  .sidebar .bio,
  .sidebar .nav-text,
  .sidebar .add-text {
      opacity: 0;
      display: none;
  }
  
  .sidebar nav ul li {
      padding: 12px 0;
      justify-content: center;
  }
  
  .sidebar.collapsed .sidebar-content .sidebar-icon {
      margin-right: 0;
  }
  
  .sidebar .add-report {
      padding: 12px 0;
      display: flex;
      justify-content: center;
  }
  
  /* When expanded on mobile */
  .sidebar.expanded {
      width: 260px;
  }
  
  .sidebar.expanded .logo-text,
  .sidebar.expanded .bio,
  .sidebar.expanded .nav-text,
  .sidebar.expanded .add-text {
      opacity: 1;
      display: block;
  }
  
  .sidebar.expanded nav ul li {
      padding: 12px;
      justify-content: flex-start;
  }
  
  .sidebar.expanded .sidebar-content .sidebar-icon {
      margin-right: 8px;
  }
}

/* For very small screens */
@media screen and (max-width: 480px) {
  .sidebar {
      width: 0;
      padding: 0;
      overflow: hidden;
  }
  
  .sidebar.expanded {
      width: 260px;
      padding: 20px;
  }
  
  .toggle-btn {
      right: -15px;
  }
}

/* index.html STYLES */
.index-page {
  background-color: #F7FBFF;
  width: calc(100% - 260px);
  margin-left: 260px; 
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.index-page .nav-item {
  margin: 10px 0;
  padding: 12px;
  background-color: #FFFCFA;
  color: #46638E;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.index-page .nav-item:hover {
  background-color: #d2f0fb;
}

.index-page .main-content {
  flex: 1;
  padding: 80px 20px 20px 20px;
  width: 100%;
}

.index-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #F7FBFF;
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 80px; /* Explicitly set height */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-container {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 25px;
  padding: 5px 15px;
  width: 30%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-box {
  border: none;
  outline: none;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
}

.index-page .search-bar {
  padding: 10px;
  margin-top: 20px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.index-page .icons {
  display: flex;
  gap: 15px;
  font-size: 20px;
}

.index-page .updates .city {
  color: #7B213E;
}

.index-page .reports {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  height: 300px;
}

.index-page .report-card {
  display: flex;
  background-position-y: 50%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  box-shadow: 0px -41px 75px -5px rgba(0,0,0,0.75) inset;
  flex-direction: column;
  justify-content: space-between;
}

.report-card:nth-of-type(1){
  background-image: url("dokumen_ureeka/gambar5.jpeg");
}

.report-card:nth-of-type(2){
  background-image: url("dokumen_ureeka/gambar4.jpeg");
}

.index-page .report-card *{
  margin: 10px;
  color: white;
}

.index-page .report-card img {
  width: 100%;
  height: 150px;
  border-radius: 5px;
  object-fit: cover;
}

.index-page .status {
  padding: 10px;
  margin: 25px 0;
  color: white;
  border-radius: 5px 0 0 5px;
  font-weight: bold;
  width: fit-content;
  align-self: flex-end;
}

.index-page .status.ongoing {
  background: #46638e;
}

.index-page .status.not-started {
  background: #7B213E;
}

.index-page .status-small {
  padding: 2px 6px;
  margin: 20px 5px 20px 0px;
  font-size: 10pt;
  color: white;
  border-radius: 10px;
  font-weight:500;
  width: fit-content;
  align-self: flex-end;
}

.index-page .status-small.unverified {
  background: #383538;
}


html,
body {
  background-color: #e6eaf0; /* Changed from #f7fbff */
}

.index-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #F7FBFF;
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 80px; 
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.new-report-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.new-report-page .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-left: 260px; 
}

.new-report-page .report-form {
  width: 100%;
  max-width: 800px;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

.new-report-page .report-form h1 {
  color: #46638E;
  margin-bottom: 10px;
}

.new-report-page .report-form p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.new-report-page .report-form label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.new-report-page .report-form input,
.new-report-page .report-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  font-family: 'DM Sans', sans-serif;
}

.new-report-page .report-form textarea {
  height: 100px;
}

.new-report-page .checkbox {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.new-report-page .checkbox input {
  margin-right: 10px;
}

.new-report-page button {
  display: block;
  width: 100%;
  padding: 12px;
  background: #7B213E;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.new-report-page  #toggleSidebar {
  display: none;
}

.new-report-page button:hover {
  background: #5c182f;
}

@media (min-width: 768px) and (max-width: 1230px) {
  .new-report-page .sidebar hr {
    display: none;
  }
  .new-report-page .sidebar {
    width: 80px;
  }
  .new-report-page .report-form {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
 
  .new-report-page .sidebar .logo-text,
  .new-report-page .sidebar .bio,
  .new-report-page .sidebar .add-text,
  .new-report-page .sidebar .nav-text {
    display: none;
    opacity: 0;
  }
 
  .new-report-page .sidebar .sidebar-icon {
    margin-right: 0;
  }
  
  .new-report-page .sidebar nav ul li {
    padding: 12px 0;
    justify-content: center;
  }
  #toggleSidebar {
    display: none;
  }
}

/* Mobile-Specific Adjustments */
@media (max-width: 480px) {
  .new-report-page {
    padding: 10px;
  }
  .new-report-page .report-form {
    width: 100%;
    padding: 10px;
    border-radius: 0;
  }
  .new-report-page .report-form h1 {
    font-size: 20px;
  }
  .new-report-page .report-form p {
    font-size: 12px;
  }
  .new-report-page .report-form input,
  .new-report-page .report-form textarea {
    font-size: 12px;
    padding: 8px;
  }
  .new-report-page button {
    font-size: 12px;
    padding: 8px;
  }
  .new-report-page .checkbox {
    flex-direction: column;
    align-items: flex-start;
  }
  .new-report-page .checkbox input {
    margin-bottom: 5px;
  }
}


/* Modal styles */
.modal {
  background-color: #e6eaf0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  padding: 30px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-icon {
  width: 60px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #4a6f8c;
}

.title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.register-link {
  display: block;
  margin-bottom: 20px;
  color: #4a6f8c;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

.form-container {
  display: flex;
  justify-content: space-between;
}

.form-section {
  width: 48%;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a6f8c;
}

.required::after {
  content: " *";
  color: #ff5252;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #dde;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  cursor: pointer;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-container {
  display: flex;
  align-items: center;
}

.remember-checkbox {
  margin-right: 8px;
}

.forgot-password {
  color: #4a6f8c;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox {
  margin-right: 10px;
}

.terms-text {
  font-size: 14px;
  color: #666;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #4a6f8c;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #3a5d7a;
}

.illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration img {
  max-width: 100%;
  height: auto;
}

.verification .report-list {
  display: inline-flex;
  gap: 10px;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 20px;;
}
.verification .report-list .report-item img {
  width:  432px;
  height: 369px;
  object-fit: cover;
  border-radius: 12px;
}

.hamburger-icon {
  display: none;
}


/* css buat about me start*/
.introduction {
  padding: 20px;
  text-align: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.h1 {
  /* padding-top: 50vh; */
  font-size: 38px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
  margin-top: 0; 
}

.h2 {
  font-size: 36px;
  font-weight: 700;
  color: #123764;
  margin-bottom: 50px;
  display: inline-block; 
  transform:skewX(-2deg);
  padding-bottom: 5px; 
  border-bottom: 4px solid #072344; 
  word-spacing: 2px; 
}

.description {
  background-color: #46638E;
  background-size: 100vh;
  font-size: 22px;
  color: #f9f8f8;
  margin-bottom: 20px;
  padding: 70px;
  padding-top: 50px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  transform: skewY(-0.5deg);
}

.back-icon {
  width: 30px;  
  height: 30px; 
  cursor: pointer; 
  transition: transform 0.3s; 
}

.back-icon:hover {
  transform: scale(1.2); 
}


/* css buat about me end*/


/* Responsive style buat laptop */
@media (max-width: 1024px) {
  .search-bar {
    width: 260px;
  }
  .new-report-page
   .container {
    margin-left: 240px;
    padding: 15px;
  }

  .new-report-page
   .report-form {
    padding: 20px;
  }
  

}

/* Responsive styles buat ipad*/
@media (max-width: 768px) {
  .index-page header {
    position: static;
  }

  .form-container {
    flex-direction: column;
  }

  .form-section,
  .illustration {
    width: 100%;
  }

  .illustration {
    margin-top: 30px;
  }


  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 60px; 
    background-color: #6E1D33;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  

  .sidebar hr {
    display: none;
  }

  .nav-items {
    display: flex;
    flex-grow: 2; 
    justify-content: center;
    gap: 20px;
  }

  .bio {
    display: none; 
  }

  
  .main-content {
    margin-top: 90px;
  }

  .logo {
    flex-grow: 1;
    text-align: left;
  }


  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  .icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  .floating-button {
    width: 35px; 
    height: 35px; 
    font-size: 0.8rem; 
    padding: 5px;
  }

  .reports {
    flex-direction: column;
  }

  .report-card {
    width: 100%;
    height: auto;
  }

  .index-page {
    width: 100%;
    margin-left: 0;
    padding-top: 60px;
  }

  .index-page .reports {
    flex-direction: column;
    gap: 10px;
  }

  .modal {
    width: 90%;
  }

  .new-report-page .container {
    margin-left: 200px;
    padding: 10px;
  }

  /* Show hamburger button */
  #toggleSidebar {
    display: none;
  }

  .hamburger-icon {
  display: flex;
  position: fixed;
  top: 12px;
  left: 15px;
  z-index: 1000;
  cursor: pointer;
  }

  .hamburger-icon img {
  width: 30px;
  height: 30px;
  }
  

  
}

/* Responsive style buat mobile */
@media (max-width: 480px){
  .index-page header {
    position: static;
  }

  html{
    font-size: 55%;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .nav-item {
    font-size: 14px;
  }

  .icons {
    font-size: 18px;
  }

  

  .sidebar {
    position: fixed;
    top: 0;
    left: -80px;
    width: 80px; 
    height: 100vh;
    background-color: #6E1D33;
    transition: left 0.3s ease-in-out;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-top: 20px;
    z-index: 999;
  }

  .sidebar.active {
      left: 0;
  }

  .sidebar a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
    color: white;
    font-size: 22px;
 }

  /* Show hamburger button */
  .hamburger-icon {
    display: flex;
    position: fixed;
    top: 12px;
    left: 15px;
    z-index: 1000;
    cursor: pointer;

  }

  .hamburger-icon img {
    width: 30px;
    height: 30px;
  }
  .main-content {
    padding: 10px;
    margin-left: 0;
    width: 100%;
  }

 
  .reports {
    flex-direction: column;
    gap: 10px;
  }

  .report-card {
    width: 90%;
    margin: auto;

  }

  .report-button {
    width: 50px;
    height: 50px;
    font-size: 18px;
    margin-top: auto;
    margin-bottom: 20px;
    background-color: #fff;
    color: #6E1D33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
 }  

  .status {
    font-size: 0.9rem;
    padding: 8px;
  }

  .toggle-btn {
    right: 8px;
    top: 10px;
  }

}
