html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    text-decoration: none;
}

.approve-btn {
    background-color: #28a745;
    color: white !important;
}

.reject-btn {
    background-color: #dc3545;
    color: white !important;
}

.delete-btn {
    background-color: #6c757d;
    color: white !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    text-decoration: none;
}

/* Status badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.approved {
    background-color: #28a745;
    color: white;
}

.status-badge.rejected {
    background-color: #dc3545;
    color: white;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #000;
}

/* Reservation List Styles */
.reservation-container {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reservation-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a237e;
    margin: 0;
}

.create-reservation-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.create-reservation-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.search-container {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Reservation Table Styles */
.reservation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.reservation-table th {
    background: #1a237e;
    color: white;
    font-weight: 500;
    padding: 1rem;
    text-align: left;
    white-space: nowrap;
}

.reservation-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

.reservation-table tr:hover {
    background-color: #f8f9fa;
}

.reservation-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge Styles */
.status-badge.approved {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Date and Time Formatting */
.datetime-cell {
    white-space: nowrap;
    color: #666;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 0.25rem;
    background-color: #0d6efd;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Admin Locker Requests Table Styling */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.admin-table th {
    background: #1a237e;
    color: white;
    font-weight: 500;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #000; /* Ensuring default text is black */
}

.admin-table td a {
    color: #0056b3; /* Making links a darker blue */
    font-weight: 500;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

/* Style for cells with blue background */
.admin-table td[style*="background-color: rgb(13, 110, 253)"],
.admin-table td[style*="background-color: #0d6efd"] {
    color: #000 !important; /* Force black text */
    background-color: #e6f0ff !important; /* Lighter blue background */
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Action buttons */
.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.approve-btn {
    background-color: #28a745;
    color: white;
}

.reject-btn {
    background-color: #dc3545;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Navigation buttons */
.nav-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #0056b3;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #1e3d8f;
  color: white;
}

.navbar {
  padding: 1rem 2rem;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 500;
}

.btn-primary {
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(110%);
}

.welcome-section {
  text-align: center;
  padding: 3rem 0 2rem;
}

.welcome-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  height: 380px;
  text-align: center;
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
}

.service-card > * {
  flex-shrink: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: #1e3d8f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  color: white;
  font-size: 28px !important;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e3d8f;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-description {
  color: #666;
  line-height: 1.5;
  margin: 1rem 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.service-button {
  background: #f39c12;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.service-button:hover {
  background: #e67e22;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: #152a61;
  color: white;
  text-align: center;
  padding: 1rem;
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer a {
  color: #f39c12;
  text-decoration: none;
}

footer a:hover {
  color: #e67e22;
  text-decoration: underline;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

/* Student List Styles */
.student-content-wrapper {
    padding: 0 1.5in;
    max-width: 100%;
    margin: 0 auto;
}

.student-list-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.btn-create {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-container {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-input {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: none;
    border-radius: 5px;
    width: 100%;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.custom-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
    background-color: #1e3d8f;
    color: white;
}

.custom-table th {
    padding: 1rem;
    font-weight: 600;
    border: none;
}

.custom-table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #eee;
}

.btn-edit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-edit:hover, .btn-delete:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Auth card (centered login/register) */
.auth-card-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,245,0.98));
  color: #222;
}

.auth-header {
  padding: 1.8rem 1rem;
  background: linear-gradient(90deg, #3aa0ff, #1e3d8f);
  color: white;
}

.auth-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.6rem;
}

.auth-card .card-body {
  background: white;
}

.auth-card .form-control {
  height: 48px;
  border-radius: 8px;
}

.auth-card .btn-primary {
  background: linear-gradient(90deg,#0066ff,#00b4ff);
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.auth-card .btn-outline-primary {
  background: white;
  border: 1px solid #1e3d8f;
  color: #1e3d8f;
}

@media (max-width: 576px) {
  .auth-card { width: 100%; border-radius: 12px; }
}
