
:root {
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-header: #004a74;
  --color-header-dark: #003354;
  --color-deep-indigo: #1a237e;
  --font-primary: 'Segoe UI', sans-serif;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* General Layout and Typography */
body {
  font-family: var(--font-primary);
  background-color: #e6f0f8;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  color: #333;
  font-size: 0.85rem;
}

.footer-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #004a7c;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn,
.btn-small,
.btn-danger {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: white;
  background-color: var(--color-primary);
  padding: 8px 16px;
  font-size: 14px;
}

.btn:hover,
.btn-small:hover,
.btn-danger:hover {
  background-color: var(--color-primary-dark);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #a71d2a;
}

/* Form Layout */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.25rem;
  font-weight: bold;
}

/* Inputs and Textareas */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Cards */
.card,
.request-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 520px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 300px;
}

.card:hover,
.request-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3,
.request-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card p,
.request-card p {
  font-size: 0.95rem;
  color: #444;
  flex: 1;
}

.card .btn,
.request-card .btn {
  margin-top: 1rem;
}

/* Request Cards Layout */
.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Form Cards */
.form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-card p {
  font-size: 1rem;
  color: var(--color-deep-indigo);
  margin-bottom: 1.5rem;
}

.form-card .btn {
  margin-top: 1.25rem;
  align-self: center;
}

/* Layout Helpers */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 600px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.card-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .card-row {
    flex-direction: row;
    justify-content: center;
  }

  .request-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .header-logo {
    max-height: 200px;
  }

  .header-subtitle {
    font-size: 1.1rem;
  }
}

/* Header */
.main-header {
  background-color: var(--color-header);
  padding: 2rem 1rem;
  text-align: center;
  color: white;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  max-height: 120px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-subtitle {
  font-size: 1rem;
  color: #e0f0f8;
  font-style: italic;
}

/* Navbar */
.navbar, .top-navbar {
  background-color: var(--color-header);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}

.navbar-links, .nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.navbar-links a, .nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-links a:hover, .nav-right a:hover {
  text-decoration: underline;
}

/* Misc */
.password-strength {
  font-size: 0.9rem;
  margin-top: 5px;
}

.password-strength.weak { color: #c0392b; }
.password-strength.medium { color: #f39c12; }
.password-strength.strong { color: #27ae60; }

.arrow {
  font-size: 0.85rem;
  margin-left: 0.35rem;
  color: var(--color-primary);
  transition: transform 0.15s ease;
}

.open .arrow {
  transform: rotate(90deg);
}

.logout-form {
  position: absolute;
  top: 10px;
  right: 10px;
}

.logout-form button {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.logout-form button:hover {
  background-color: white;
  color: var(--color-header);
}
.dashboard-wrapper h1, /* or h2 */
.dashboard-wrapper p {
  text-align: center;
}

h2, p { text-align: center; } /* if safe site-wide */

.day-section {
  text-align: center;
}

.day-label {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-report {
  color: #d35400;
  font-weight: 500;
}
.nav-report:hover {
  text-decoration: underline;
}

.admin-login-link {
  text-align: center;
  margin: 1.5rem 0;
}

.badge {
  background: #e74c3c;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.85rem;
}

.resolved-row {
  opacity: 0.6;
}

.badge.resolved {
  background-color: #27ae60;
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9rem;
}

.filter-group {
  margin-bottom: 1rem;
}

