/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

/* ================= LOGIN PAGE ================= */
/* body {
  height: 100vh;
  overflow: hidden;
} */

/* Background animation */
.bg-animation {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15), transparent 45%);
  animation: float 14s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(-10%, -10%);
  }

  50% {
    transform: translate(-5%, -15%);
  }

  100% {
    transform: translate(-10%, -10%);
  }
}

.login-wrapper {
  height: 100vh;
  background: radial-gradient(circle at top, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* LOGIN LOGO */
.login-logo {
  width: 140px;
  max-width: 100%;
  margin-bottom: 18px;
  object-fit: contain;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card h1 {
  font-size: 28px;
}

.subtitle {
  font-size: 14px;
  margin: 8px 0 24px;
  opacity: 0.75;
}

input {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}

button {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.error {
  margin-top: 10px;
  font-size: 13px;
  color: #f87171;
}

.footer-text {
  margin-top: 22px;
  font-size: 12px;
  opacity: 0.6;
}

/* ================= PASSWORD TOGGLE ================= */

.password-wrapper {
  position: relative;
  width: 100%;
}

/* Adjust password input spacing for eye icon */
.password-wrapper input {
  padding-right: 44px;
}

/* Eye icon */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 39%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #ffffff;
}






/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* Header */
.ai-header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-container {
  width: 100%;
  max-width: 1331px;
  /* padding: 1rem 1rem 2rem; */
  margin: 0 auto;
  flex: 1;
}

/* Container */
.Container {
  max-width: 1327px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1200px) {
  .container { 
    max-width: 1327px;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
}

.logo-icon {
  font-size: 26px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 15px;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00eaff;
}

/* Button */
.btn-primary {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #00eaff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 234, 255, 0.5);
}

/* Mobile Menu Icon */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  /* .nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: #203a43;
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    display: none;
  } */

  .logout-btn {
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}


/* ============== GLOBAL FIX (IMPORTANT) ============== */
/* body {
  min-height: 100vh;
  overflow-x: hidden;
} */

body {
  min-height: 100dvh;
  overflow-x: hidden;
}



/* ============== DASHBOARD ============== */
.dashboard-wrapper {
  min-height: 72.5vh;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  padding: 24px;
  color: #0f172a;
  overflow-y: auto;
}

/* ============== HEADER ============== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #ffffff;
  padding: 16px 20px;
  margin-bottom: 30px;

  border-radius: 14px;
  border-left: 6px solid #dc2626;

  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
 .intro {
  max-width: 100%;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  text-align: center;
}
.header-left h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  font-size: 13px;
  color: #64748b;
}

/* LOGOUT */
.logout-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #dc2626;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #b91c1c;
}

/* ============== CARD GRID ============== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ============== CARD ============== */
.dept-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  /* border: rgb(188, 24, 24); */
  border: 1px solid rgb(188, 24, 24);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);

  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Top-right arrow icon */
.card-link-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.1rem;
  color: #9ca3af;
  /* soft gray */
  transition: all 0.25s ease;
}


.dept-card:hover {
  transform: translateY(-6px);
  /* border: rgb(188, 24, 24); */
  border: 1px solid rgb(188, 24, 24);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.25);
}

/* ICON */
.icon {
  font-size: 38px;
  margin-bottom: 14px;
  color: #dc2626;
}

/* TEXT */
.dept-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.dept-card p {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
}



/* ============== INTRO TEXT ============== */
.dashboard-intro {
  margin-bottom: 24px;
  padding-left: 4px;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

.logo-container img {
  max-width: 180px;
}

.dashboard-intro h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  position: relative;
  text-align: center;
  padding-top: 26px;
}

/* RED ACCENT UNDERLINE */
.dashboard-intro h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  /* background: #dc2626; */
  margin-top: 6px;
  border-radius: 2px;
}




/* .app-footer {
  background-color: #e6f6ff; light sky blue
  color: #333;
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #cceeff;
} */


.app-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #e6f6ff;
}


/* ============== RESPONSIVE ============== */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro{
    font-size: 37px;
  }
  .dashboard-wrapper{
    min-height: 57.2vh;
  }
     .Container {
        padding: 35px 33px;
    }
  .logo {
        font-size: 55px;
    }
      .logo-icon {
        font-size: 65px;
    }
 .logout-btn {
        padding: 20px 45px;
        font-size: 34px;
        border-radius: 15px;
    }
    .logo-container{
      margin-top: 3rem;
      margin-bottom: 1.4rem;
    }
  .logo-container img{
    min-width: 234px;
    margin-top: 1rem;
  }
  .dashboard-intro h3{
    font-size: 51px;
  }
      .app-footer {
        font-size: 33px;
        padding: 3rem;
    }
  .dept-card h3{
    font-size: 35px;
  }
  .card-link-icon {
    position: absolute;
    top: 21px;
    right: 29px;
    font-size: 2.3rem;
    color: #9ca3af;
    transition: all 0.25s ease;
}
     .dept-card p {
        font-size: 26px;
    }
    .icon{
      font-size: 63px;
    }

    /* ------------login css ------- */

    .login-card{
                  max-width: 831px;
        height: 916px;
    padding: 40px;
    border-radius: 28px;
    }
    .login-logo{
      width: 268px;
    }
   .login-card h1 {
    font-size: 54px;
}
  .subtitle {
    font-size: 34px;
    color: #64748b;
    padding-bottom: 26px;
  }

  .error {
    margin-top: 10px;
    font-size: 34px;
    color: #f87171;
}

  input {
    width: 100%;
    padding: 29px;
    margin-bottom: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    font-size: 39px;
}
  .toggle-password {
    position: absolute;
    right: 48px;
    top: 39%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 47px;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    transition: color 0.2s ease;
}
  button {
    width: 100%;
    padding: 33px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 40px;
    margin-top: 37px;
}
 .footer-text{
  font-size: 28px;
 }
}
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro{
    font-size: 22px;
  }
  .dashboard-wrapper{
    min-height: 57.2vh;
  }
  .Container{
    padding: 21px 31px;
  }
  .logo{
    font-size: 31px;
  }
  .logo-icon{
    font-size: 38px;
  }
  .logout-btn{
    padding: 15px 31px;
    font-size: 19px;
    border-radius: 10px;
  }
  .logo-container img{
    min-width: 156px;
    margin-top: 1rem;
  }
  .dashboard-intro h3{
    font-size: 33px;
  }
  .app-footer{
    font-size: 19px;
  }
  .dept-card h3{
    font-size: 23px;
  }
  .dept-card p{
    font-size: 15px;
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr); /* Better breathing room */
  }
  .Container {
    padding: 15px 20px; /* Reducing padding for smaller screens */
  }
  .dashboard-intro h3 {
    font-size: 28px; /* Scaling down typography further */
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .intro{
    font-size: 11px;
  }
  .dashboard-wrapper{
    min-height: 57.2vh;
  }
  .Container{
    padding: 10px 12px;
  }
  .logo{
    font-size: 18px;
  }
  .logo-icon{
    font-size: 25px;
  }
  .logout-btn{
    padding: 15px 31px;
    font-size: 19px;
    border-radius: 10px;
  }
  .logo-container img{
    min-width: 50px;
    margin-top: 0.2rem;
  }
  .dashboard-intro h3{
    font-size: 21px;
    padding-top: 9px;
  }
  .app-footer{
    font-size: 11px;
  }
  .dept-card h3{
    font-size: 23px;
  }
  .dept-card p{
    font-size: 15px;
  }

  /* --------------------logincss------------- */
  /* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

/* ================= LOGIN PAGE ================= */
/* body {
  height: 100vh;
  overflow: hidden;
} */

/* Background animation */
.bg-animation {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15), transparent 45%);
  animation: float 14s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(-10%, -10%);
  }

  50% {
    transform: translate(-5%, -15%);
  }

  100% {
    transform: translate(-10%, -10%);
  }
}

.login-wrapper {
  height: 100vh;
  background: radial-gradient(circle at top, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

    .login-logo {
        width: 140px;
        max-width: 100%;
        margin-bottom: 18px;
        object-fit: contain;
    }

.login-card {
        width: 100%;
        max-width: 420px;
        height: 500px;
        padding: 32px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
        border-radius: 16px;
        text-align: center;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .login-card h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 17px;
        margin: 8px 0 0px;
        opacity: 0.75;
    }

    input {
        width: 100%;
        padding: 13px;
        margin-bottom: 14px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        outline: none;
        font-size: 21px;
    }

input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}

    button {
        width: 100%;
        padding: 13px;
        border-radius: 8px;
        border: none;
        background: linear-gradient(135deg, #dc2626, #991b1b);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        font-size: 21px;
        margin-top: 10px;
    }

.error {
  margin-top: 10px;
  font-size: 13px;
  color: #f87171;
}

    .footer-text {
        margin-top: 22px;
        font-size: 12px;
        opacity: 0.6;
    }

/* ================= PASSWORD TOGGLE ================= */

    .password-wrapper {
        position: relative;
        width: 100%;
    }

/* Adjust password input spacing for eye icon */
.password-wrapper input {
  padding-right: 44px;
}

/* Eye icon */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 39%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #ffffff;
}
}

@media (max-width: 430px) {
      .icon {
        font-size: 32px;
    }
        .dept-card h3 {
        font-size: 20px;
    }
        .dept-card p {
        font-size: 13px;
    }
        .card-link-icon {
        position: absolute;
        top: 21px;
        right: 29px;
        font-size: 1.3rem;
        color: #9ca3af;
        transition: all 0.25s ease;
    }
}
