@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
}

body {
  font-family: 'Poppins', sans-serif;
}



:root {
  --primary: #102245;
  --secondary: #1e4a78;
  --accent: #fec92f;
  --bg: #f4f6fb;
  --white: #ffffff;
  --text: #333;
  --muted: #888;
  --border: #e0e0e0;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  min-height: 100vh;
  display: block;
  justify-content: center;
  align-items: center;
}

.app-container {
  background: var(--white);
  width: 100%;
  /* max-width: max-content; */
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;

}

.app-header {
  text-align: center;
  margin-bottom: 20px;
}

.app-header i {
  font-size: 36px;
  color: var(--primary);
}

.app-header h2 {
  margin: 8px 0 0;
  color: var(--text);
}

.app-header span {
  font-size: 13px;
  color: var(--muted);
}

.input-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.input-box i {
  color: var(--primary);
  font-size: 16px;
  margin-right: 10px;
}

.input-box input,
.input-box select,
.input-box textarea {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.input-box:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.input-box.disabled {
  opacity: 0.7;
}

.input-box.textarea {
  align-items: flex-start;
}

textarea {
  resize: none;
  height: 70px;
}

.otp-section {
  background: #eef5ff;
  padding: 15px;
  border-radius: 14px;
  margin: 18px 0;
  text-align: center;
}

.otp-section h4 {
  margin: 0 0 10px;
  color: var(--primary);
}

.otp-section input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.otp-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

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


@media (max-width: 769px) {
  .desktop-only {
    display: none;
  }
}

/* Desktop view */
@media (min-width: 769px) {

  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }

  body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
  }

  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .desktop-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
  }

  .desktop-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
  }

  .desktop-card h2 {
    margin-bottom: 10px;
    color: var(--text);
  }

  .desktop-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
  }
}




.app-footer {
  text-align: center;
  font-size: 12px;
  color: white;
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
}

.app-footer strong {
  color: var(--accent);
  font-weight: 500;
}


.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent));
  border: none;
  color: black;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.login-box button:hover {
background: linear-gradient(135deg, var(--secondary), var(--secondary));}



 .mobile-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
       align-items: start;
    padding: 0px 5px;
    /* background: #fff;
    border-bottom: 1px solid #ddd; */
  }

  .left-spacer {
    /* empty but needed for centering */
  }

  .logo {
    justify-self: center;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
  }

  .logout-btn {
    justify-self: end;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
  }
/* Overlay covering the whole screen */
.chatbot-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* on top of everything */
}

/* Spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #007bff; /* primary blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Optional: smaller loader for mobile screens */
@media (max-width: 480px) {
    .loader {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}







