/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: 'Poppins', sans-serif; */
  font-family: 'Poppins', sans-serif;

}


body {
  background: #eee;
  background-size: cover;
  /* background: #101820; */
  color: #101820;
  min-height: 100vh;
  display: flex;
  transition: background 0.3s, color 0.3s;
  font-family: 'Inter', sans-serif;

}

a {
  color: inherit;
  text-decoration: none;
}

.dashboard {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 250px;
  /* background: linear-gradient(180deg, #1c2010, #240d3a); */
  /* background: #f4f6f9; */
  /* background: linear-gradient(180deg, #f4f6f9, #240d3a); */
  background: linear-gradient(180deg, rgba(252, 252, 252, 1) 50%, rgba(42, 3, 59, 0)100%),
    url('../logo/hallway.jpg') no-repeat bottom center;
  background-size: cover;
  color: #968700;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);

}

.photo{
  width: 50px;
  height: 50px;
}
.sidebar-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  /* makes it circular */
  /* margin: 0 auto 20px; */
  margin-left: 25px;
  margin-top: 80px;
  margin-bottom: 10px;
  /* border: 3px solid #ffffff33; */
  /* optional border for contrast */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* subtle shadow */
  align-items: center;
}


.sidebar h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  color: #5D3FD3;
  border-bottom: 1px solid rgb(201, 166, 12);
  padding-bottom: 10px;
}

.nav-link {
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #5D3FD3;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(93, 63, 211, 0.2);
  /* Violet tint on hover */
  transform: scale(1.05);
  color: #FAF6E9;
}

.nav-link.active {
  background: #5D3FD3;
  /* Violet for active */
  color: #fff;
  font-weight: bold;
}

.logout {
  margin-top: auto;
  background: rgba(252, 185, 0, 1);
  color: #fffbfb;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.logout:hover {
  background: #f3e992;
  color: #5D3FD3;
}

/* Main */
.main {
  flex: 1;
  padding: 30px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-left: 5px solid #5D3FD3;
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* .topbar {
    background: #0984e3;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
} */
.header h1 {
  font-size: 28px;
  /* color: #493D9E; */
  color: #555555;
  border-radius: 5px;
  padding-left: 12px;
  text-transform: capitalize;
}
.header p {
  font-size: 28px;
  color: rgba(252,185,0,1);
  border-radius: 5px;
  padding-left: 12px;
  text-align: left;
  justify-content: left;
}


/* Toggle Button */
.toggle {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  color: #101820;
}

/* Widgets */
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.widget {
  background: #fff;
  color: #333333;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #5D3FD3;
  /* Violet accent */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 7px;

  font-weight: bold;
}

.widget:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profBox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-top: 30px;
  justify-content: center;
  max-width: 900px;
  /* Add this to limit total row width */
  /* margin-left: auto; */
  margin-right: auto;
  animation: fadeIn 0.6s ease-in-out;
}

canvas {
  max-width: 500px;
  margin: auto;
}

.profCard2 {
  background: #ffffff;
  color: #101820;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid rgba(252, 185, 0, 1);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 7px;

  max-width: 420px;
}

.profCard2:hover {
  transform: translateY(-10px);
}

.profCard {
  /* background: #fff; */
  /*   background: linear-gradient(90deg,
      rgba(252, 252, 252, 0.8) 70%,
      rgba(42, 3, 59, 0) 100%),
    url('logo/bg4.jpg') no-repeat bottom center;

  background-size: cover; */
  color: #101820;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid rgba(252, 185, 0, 1);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 7px;

  max-width: 420px;
}

.profCard:hover {
  transform: translateY(-10px);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  transition: transform 0.4s;
}

.profCard:hover .profile-avatar {
  /* transform: scale(1.9); */
  transform: rotate(10deg) scale(1.2);
}


/* .info-row {


  display: flex;
  justify-content: space-between;


}

.info-block {
  background-color: rgb(187, 152, 152);
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  width: 38%;
    margin: 0 auto 20px;
  justify-content: left;

} */


/* Profile Card */
.profile-card {
  margin-top: 40px;
  max-width: 320px;
  background: #fff;
  color: #101820;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s;

}

.profile-card:hover {
  transform: translateY(-10px);
}



.profile-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #1C1F2D;
}

.profile-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;

}

.btn-primary {
  background: #5D3FD3;
  /* Violet */
  color: #fff;
}

.btn-primary:hover {
  background: #4831C4;
  transform: scale(1.05);
}

.btn-secondary {
  background: #101820;
  color: #FEE715;
}

.btn-secondary:hover {
  background: #1C1F2D;
  transform: scale(1.05);
}

.btn-danger {
  background: #F44336;
  color: #fff;
}

.btn-danger:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

.btn-yellow {
  background: #FEE715;
  color: #fff;
}

.btn-yellow:hover {
  background: #7e7104;
  transform: scale(1.05);
}

/* ==== Animation ==== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    transition: left 0.3s;
    z-index: 10;
  }

  .sidebar.open {
    left: 0;
  }

  .toggle {
    display: inline;
  }

  body.open .overlay {
    display: block;
  }

  .overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
  }
}