/*  Homepage CSS along with other pages*/
@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:wght@300;400;700&display=swap');
/* UPDATED OT MATCH UI DESIGN */
body {
  font-family: 'Inria Sans',sans-serif;
  line-height: 1.6;
  color: #321be2;
  margin: 0;
}
.container {
  max-width:  1100px;
  margin: 0 auto;
  padding: 0 1.5 rem;
}
/* Headers + Nav  (dark navy*) */
.main-header {
  background: #1e3a5f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  top: 0;
  z-index: 100;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
.logo h1{
  color: #fff;
  margin: 0;
}
.main-nav a,
.main-nav button {
  color: #fff;
  padding: 8px 14px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}
/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Inria Sans', sans-serif;
  text-decoration: none;
  color: #fff;
}

[data-theme="dark"] .main-header {
  background:  #0f1f33;
}
/* SERVICES GRID STYLE */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
padding: 1.5rem;
  border: 1px solid #731919;
  border-radius: 8px;
}
/* Chatbot style, will implement functionality later in js */
.chat-bubble {
 position: fixed;
  bottom: 24px;
  right: 24px;
  background: #321be2;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
}
.chat-window {
   position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(230, 0, 0, 0.625);
  z-index: 999;
}
.chat-header {
  background: #321be2;
  color: rgb(255, 243, 243);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
}
.chat-messages {
  height: 250px;
  overflow-y: auto;
  padding: 1rem;
}
.chat-input-row {
  display: flex;
  padding: 0.75rem;
  gap: 0.5rem;
  border-top: 1px solid #991919;
}
/* hamborg styling */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
   display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .main-nav {
    display: flex;
    align-items: center;
   gap: 8px;
  }
  .main-nav.open {
    display: flex;
  }
}

/* Light/Dark Mode Theme Toggle Button Styling */
.btn.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: none;
} 

/* Hovering over the Light/Dark mode toggle button will slightly enlarge the icon */
.btn.theme-toggle:hover {
  transform: scale(1.1);
  background: transparent;
}

/* Styling for the Icon */
.btn.theme-toggle img{
 width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
/* Emergency button styling */
.btn-emergency {
  background-color: #f97316;
  color: white;
  border: 3px solid #fff;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.btn-emergency:hover {
  background-color: #ea6c0a;
  color: white;
}
/* Login Page Styling */
.login-section {
  background-color: #f1f1f1;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.login-card{
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px;
  width: 100%;
  max-width: 460px;
}
.login-card h2{
  color:#1e3a5f;
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.login-card .login-subtitle {
  color: #555;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.login-card label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
  font-weight: 700;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: 'Inria Sans', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.login-card input:focus {
  outline: none;
  border-color: #1e3a5f;
}

.login-card .btn-primary {
  width: 100%;
  background-color: #f97316;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Inria Sans', sans-serif;
  cursor: pointer;
  margin-bottom: 12px;
}
.login-card .btn-primary:hover {
  background-color: #ea6c0a;
}
/* row for 'remember me' option */
.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #555;
}
.login-extras label {
  font-weight: 400;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.login-extras a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}
.login-extras a:hover { text-decoration: underline; }
/* switch / sign up link */
.login-switch {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}
.login-switch button {
  background: none;
  border: none;
  color: #f97316;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Inria Sans', sans-serif;
}
.login-switch button:hover { text-decoration: underline; }

/* Message for login update */
.login-message {
  display: none;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.login-message.error   { background: #fde8e8; color: #b91c1c; display: block; }
.login-message.success { background: #e8f5e9; color: #1b5e20; display: block; }

/*  MAINTENANCE PAGE */
.maintenance-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.maintenance-section h2 {
  color: #1e3a5f;
  margin-bottom: 1rem;
}
.maintenance-section a.btn {
  background: #f97316;
  color: white;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
}
.maintenance-section a.btn:hover { background: #ea6c0a; }

/*dark mode toggle */
[data-theme="dark"] body {
  background: #121212 !important;
  color: #f0f0f0 !important;
}
/* USER DASHBOARD STYLING */
.dashboard-section {
  min-height: 100vh;
  background: #f4f6f9;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
 

.dashboard-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.10);
  padding: 2.5rem;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* PROFILE */
.dashboard-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1.25rem;
}
 
.dashboard-profile h2 {
  color: #1e3a5f;
  font-size: 1.5rem;
  margin: 0;
}
.dashboard-profile h2 span {
  color: #f97316;
}
 
.role-badge {
  background: #1e3a5f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0;
}
/* REQUESTS */
#requests-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
 
.request-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 0.2s;
}
 
.request-card:hover {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}
 
.request-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #333;
}
 
.request-card strong {
  color: #1e3a5f;
}
 
.request-date {
  font-size: 0.8rem !important;
  color: #9ca3af !important;
  margin-top: 0.25rem !important;
}
 /* STATUS STYLING */
 [class^="status-"] {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.status-open {
  background: #fef3c7;
  color: #92400e;
}
 
.status-in-progress {
  background: #dbeafe;
  color: #1e40af;
}
 
.status-closed,
.status-completed {
  background: #d1fae5;
  color: #065f46;
}
