/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}


/* Add to stat card colors */
.upcoming {
  background-color: #9b59b6;
}

/* Style for date picker */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

header {
  background-color: #1a237e;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-text {
  text-align: center;
  margin-top: -15px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-direction: row;
  justify-content: center;
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


@media (max-width: 475px) {
  .header-content {
    max-width: 800px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    padding: 5px 30px;
    flex-direction: column;
    justify-content: center;
  }

  .header-text {
    text-align: center;
    font-size: 0.6rem;
    margin-right: 10px;
  }

  .logo {
    height: 90px;
    margin-left: 10px;
    margin-right: 0px;
    margin-top: -5px;
  }

  .login-container {
    max-width: 100%;
    /* Adjust max-width for smaller screens */
    margin: 0 10px;
    /* Add margin for spacing on smaller screens */
  }

  .login-box {
    padding: 10px;
    /* Reduce padding for smaller screens */
  }
}


.logo {
  height: 130px;
  margin-right: 25px;
  margin-top: -5px;
}


footer {
  background-color: #1a237e;
  color: white;
  text-align: center;
  display: center;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  padding-bottom:10px;
  /* margin-top: 10px; */
  height: 70px;
}

/* Login Page Styles */
.login-container {
  width: 100%;
  max-width: 300px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;

}

.bg-image {
  background: url('../../includes/bg1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  min-height: 70vh;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}


.login-options {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.login-box {
  flex: 1;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.login-box h2,
.login-box h3 {
  margin-top: 0;
  color: #2c3e50;
}

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

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 0 10px;
  margin-bottom: 20px;
  border-radius: 15px;
  background-color: #fff;
}

.input-group i {
  margin-right: 10px;
  color: #555;
  font-size: 14px;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}


.login-box button {
  width: 100%;
  padding: 10px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-box button:hover {
  background-color: #2980b9;
}

.error-message {
  color: #e74c3c;
  background-color: #fadbd8;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.success-message {
  color: #27ae60;
  background-color: #d5f5e3;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ===== Dashboard Styles ===== */
.dashboard {
  background-color: rgb(238, 238, 238);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.532);
  max-width: 1200px;
  margin: 20px auto;
}

/* ===== SP Dashboard Styles ===== */
.sp-dashboard .zones-container {
  margin-top: 30px;
}

.sp-dashboard .zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.sp-dashboard .zone-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #4451c8;
  margin-bottom: 20px;
}

.sp-dashboard .zone-card h4 {
  margin-top: 0;
  color: #1b4167;
  padding-bottom: 10px;
  border-bottom: 1px solid #ff0000;
}

.sp-dashboard .stations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.sp-dashboard .station-item {
  background-color: rgba(77, 139, 205, 0.436);
  padding: 12px 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.sp-dashboard .station-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sp-dashboard .station-item a {
  color: #00304f;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.sp-dashboard .station-item a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* ===== DSP Dashboard Styles ===== */
.dsp-dashboard .zone-stations {
  margin-top: 30px;
}

.dsp-dashboard .stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dsp-dashboard .station-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #2ecc71;
}

.dsp-dashboard .station-header {
  margin-bottom: 15px;
}

.dsp-dashboard .station-header h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.dsp-dashboard .weekoff-stats {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
}

.dsp-dashboard .today-count {
  color: #e74c3c;
  font-weight: bold;
}

.dsp-dashboard .total-count {
  color: #3498db;
  font-weight: bold;
}

.dsp-dashboard .station-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.dsp-dashboard .view-btn,
.dsp-dashboard .today-btn,
.dsp-dashboard .upcoming-btn {
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dsp-dashboard .view-btn {
  background-color: #3498db;
  color: white;
}

.dsp-dashboard .today-btn {
  background-color: #e74c3c;
  color: white;
}

.dsp-dashboard .upcoming-btn {
  background-color: #2ecc71;
  color: white;
}

.dsp-dashboard .view-btn:hover {
  background-color: #2980b9;
}

.dsp-dashboard .today-btn:hover {
  background-color: #c0392b;
}

.dsp-dashboard .upcoming-btn:hover {
  background-color: #27ae60;
}

/* ===== Inspector Dashboard Styles ===== */
.inspector-dashboard .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.inspector-dashboard .stat-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inspector-dashboard .stat-box h4 {
  margin-top: 0;
  color: #2c3e50;
}

.inspector-dashboard .stat-box .count {
  font-size: 2rem;
  font-weight: bold;
  color: #3498db;
  margin: 10px 0;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  .sp-dashboard .zones-grid {
    grid-template-columns: 1fr;
  }

  .sp-dashboard .stations-list {
    grid-template-columns: 1fr;
  }

  .dsp-dashboard .stations-grid {
    grid-template-columns: 1fr;
  }

  .inspector-dashboard .stats {
    grid-template-columns: 1fr;
  }
}


/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #f1f1f1;
}

/* Button Styles */
.action-btn,
.logout-btn,
.back-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.action-btn:hover,
.logout-btn:hover,
.back-btn:hover {
  background-color: #2980b9;
}

.logout-btn {
  background-color: #e74c3c;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.back-btn {
  background-color: #95a5a6;
}

.back-btn:hover {
  background-color: #7f8c8d;
}

/* Form Styles */
.action-form {
  display: inline-block;
  margin-right: 5px;
}

.approve-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.approve-btn:hover {
  background-color: #27ae60;
}

.reject-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.reject-btn:hover {
  background-color: #c0392b;
}

/* Filter Styles */
.filters {
  margin-bottom: 20px;
}

.filters a {
  display: inline-block;
  padding: 8px 15px;
  margin-right: 10px;
  background-color: #ecf0f1;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.filters a:hover,
.filters a.active {
  background-color: #3498db;
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .login-options {
    flex-direction: column;
  }

  .stats {
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

.quick-actions {
  margin: 20px 0;
}

.action-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #2980b9;
}

/* Export Button */
.export-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-left: 20px;
  transition: background-color 0.3s;
}

.export-btn:hover {
  background-color: #c0392b;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Table Improvements */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dddddd;
}

th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #f1f1f1;
}

/* ===== Officer Dashboard - Simple Professional ===== */
.officer-dashboard {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
}

.officer-dashboard h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

/* User Info Section */
.user-info-section {
  background: #f8f9fa;
  padding: 20px;
  margin-bottom: 25px;
  border-left: 4px solid #3498db;
}

.user-info-section p {
  margin: 8px 0;
  font-size: 1.05rem;
}

.user-info-section span.label {
  font-weight: 600;
  color: #2c3e50;
  display: inline-block;
  width: 150px;
}

/* Request Section */
.request-section {
  margin-bottom: 30px;
}

.request-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.request-form {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.request-form input[type="date"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.request-form button {
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.request-form button:hover {
  background: #2980b9;
}

.notice {
  padding: 12px 15px;
  background: #f8f9fa;
  border-left: 4px solid #f39c12;
  margin-top: 15px;
}

/* Status Cards */
.status-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.status-card {
  flex: 1;
  min-width: 200px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.status-card h4 {
  margin-top: 0;
  color: #2c3e50;
}

.status-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3498db;
  margin: 10px 0;
}

/* Tables */
.request-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.request-table th {
  background: #3498db;
  color: white;
  padding: 12px 15px;
  text-align: left;
}

.request-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.request-table tr:nth-child(even) {
  background: #f8f9fa;
}

.status {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.pending {
  background: #fef5e7;
  color: #e67e22;
}

.status.approved {
  background: #e8f8f0;
  color: #27ae60;
}

.status.rejected {
  background: #fdedec;
  color: #e74c3c;
}

/* Logout Button */
.logout-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
  .status-cards {
    flex-direction: column;
  }

  .request-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-info-section span.label {
    width: 120px;
  }
}

/* Additional styles for officer status links */
.stat-link {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

.stat-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Status indicators */
.status-available {
  color: #27ae60;
  background-color: #d5f5e3;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-not-available {
  color: #e74c3c;
  background-color: #fadbd8;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-weekoff {
  color: #f39c12;
  background-color: #fef5e7;
  padding: 3px 8px;
  border-radius: 3px;
}

/* Officer list table */
.officers-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.officers-table th {
  background-color: #3498db;
  color: white;
  padding: 12px 15px;
  text-align: left;
}

.officers-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.officers-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.officers-table tr:hover {
  background-color: #f1f1f1;
}
.btn-view {
    background: #3498db;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.btn-view:hover {
    background: #2980b9;
}