/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 100px;
  color: #333;
  font-size: 16px;
}

/* HEADER */
.storagemart-header {
  width: 100%;
  height: 70px;
  background-color: #de6126;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.storagemart-header img {
  max-width: 200px;
  height: auto;
}

/* MAIN CONTENT */
.index-main-content {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

/* LOGO BANNER */
.logo-banner {
  background-color: #193989;
  color: #fefefe;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  border-radius: 50px;
  padding: 10px 20px;
  margin-bottom: 30px;
  word-break: break-word;
}

.logo-orange {
  color: #de6126;
}

/* LOGIN BOX */
.login-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  color: white;
  width: 100%;
  max-width: 400px;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

label {
  font-weight: 600;
  color: #193989;
}

input {
  padding: 12px;
  border: 1px solid #de6126;
  border-radius: 6px;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

input:focus {
  border-color: #193989;
  box-shadow: 0 0 5px rgba(25, 57, 137, 0.4);
}

button {
  background-color: #193989;
  color: #fefefe;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #de6126;
}

/* FORGOT PASSWORD */
.forgot-password {
  margin-top: 10px;
  text-align: right;
}

.forgot-password a {
  color: #de6126;
  font-size: 14px;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  width: 100%;
  background-color: #de6126;
  color: white;
  text-align: center;
  padding: 15px 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  font-size: 14px;
}

/* SIDEBAR TOGGLE BUTTON */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 20px;
  background-color: #de6126;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  z-index: 1100;
  font-size: 18px;
  cursor: pointer;
}

/* ADMIN DASHBOARD */
.dashboard-container {
  display: flex;
  height: 100vh;
  font-family: "Segoe UI", sans-serif;
  flex-direction: row-reverse;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #072e8e;
  color: white;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Main content */
.main-content {
  flex: 1;
  background-color: #ffffff;
  margin-right: 220px;
  padding: 20px;
}

/* Logo */
.logo {
  font-size: 26px;
  font-weight: bold;
  margin-left: 20px;
  margin-bottom: 50px;
}

.logo-blue {
  color: #ffffff;
}

.logo-orange {
  color: #de6126;
}

/* Menu */
.menu {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

.menu a span {
  position: relative;
  z-index: 2;
}

.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #de6126;
  transition: width 0.3s ease;
  z-index: 0;
}

.menu a:hover::before,
.menu a.active::before {
  width: 100%;
}

/* MY CLASS Sections */
.my-class {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.student-counts,
.activities,
.materials,
.announcements {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin-top: 20px;
  gap: 15px;
  padding-block: 100px;
  background-color: #072e8e;
}

#h1-my-class {
  color: #de6126;
  font-size: 24px;
  margin: 1px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body,
  input,
  button {
    font-size: 14px;
  }

  .logo-banner {
    font-size: 22px;
    padding: 8px 12px;
  }

  .storagemart-header img {
    max-width: 150px;
  }

  .login-box {
    padding: 25px 15px;
  }

  .footer {
    font-size: 12px;
    padding: 10px;
    position: relative;
  }

  .sidebar {
    position: absolute;
    right: 0;
    width: 100%;
    transform: translateX(100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-content {
    margin-right: 0;
    padding: 10px;
  }

  .student-counts,
  .activities,
  .materials,
  .announcements {
    flex-direction: column;
    padding-block: 40px;
    align-items: center;
  }
}
