/* ===== Base ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #222;
}

a {
  color: #6200ee;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Container & Header ===== */
.dr-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
}

.dr-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dr-header h1 {
  margin: 0;
  font-size: 24px;
}

/* ===== Buttons ===== */
.raised-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #6200ee;
  color: #fff !important;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.raised-btn:hover {
  background: #4b00c0;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.raised-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== Tables ===== */
.dr-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dr-table th,
.dr-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.dr-table th {
  background: #f0f0f0;
  text-align: left;
  font-weight: 600;
}

.dr-table tr:nth-child(even) {
  background: #fafafa;
}

.dr-table tr:hover {
  background: #f3f3ff;
}

.dr-actions a {
  margin-right: 8px;
  font-size: 13px;
}

.dr-actions a.delete {
  color: #d32f2f;
}

/* ===== Forms ===== */
.dr-form {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dr-form-row {
  margin-bottom: 12px;
}

.dr-form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.dr-form-row input[type="text"],
.dr-form-row input[type="number"],
.dr-form-row input[type="password"],
.dr-form-row input[type="datetime-local"],
.dr-form-row select,
.dr-form-row textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.dr-form-row textarea {
  resize: vertical;
}

/* ===== Pagination ===== */
.pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pagination a {
  padding: 4px 8px;
  border-radius: 4px;
  background: #eee;
  color: #333;
}

.pagination a:hover {
  background: #ddd;
}

/* ===== Widgets & Dashboard ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.widget {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget h2,
.widget h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
}

.widget ul {
  padding-left: 18px;
  margin: 0;
}

/* ===== Mobile Cards (Tech / Driver) ===== */
.job-card {
  background:#fff;
  padding:12px;
  margin-bottom:10px;
  border-radius:6px;
  box-shadow:0 1px 3px rgba(0,0,0,0.15);
}

.job-card h3 {
  margin:0 0 6px;
  font-size:16px;
}

.job-card p {
  margin:2px 0;
  font-size:14px;
}

/* ===== Fieldsets for checklists ===== */
fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px 10px;
  margin: 0 0 10px;
  background: #fafafa;
}

legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== Navbar (used in index/dashboard) ===== */
.navbar {
  background: #6200ee;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.navbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== Hero section (landing) ===== */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 16px;
  color: #444;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .dr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 14px;
  }

  .dr-container {
    margin: 10px auto;
  }

  .raised-btn {
    width: 100%;
    text-align: center;
  }
}
.dr-table {
  width: 100%;
  border-collapse: collapse;
}
.dr-table th, .dr-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}
.dr-table select {
  padding: 4px;
}
.dr-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.dr-card, .dr-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dr-table {
    width: 100%;
    border-collapse: collapse;
}

.dr-table th, .dr-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.dr-table th {
    background: #f5f5f5;
}

.raised-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
}

.cancel-btn {
    background: #999;
    color: #fff;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a {
    padding: 8px 12px;
    margin: 2px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
}

.pagination a.active {
    background: #007bff;
    color: #fff;
}

@media (max-width: 600px) {
    .dr-table th, .dr-table td {
        font-size: 14px;
        padding: 6px;
    }

    .raised-btn, .cancel-btn {
        display: block;
        margin-bottom: 10px;
    }
}
.dr-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.dr-card {
    background:#fff;
    padding:15px;
    border-radius:8px;
    margin-bottom:15px;
    box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.dr-form label {
    display:block;
    margin-top:8px;
    font-weight:bold;
}

.dr-form input[type=text],
.dr-form input[type=number],
.dr-form select,
.dr-form textarea {
    width:100%;
    padding:8px;
    margin-top:4px;
    border-radius:4px;
    border:1px solid #ccc;
    box-sizing:border-box;
}

.dr-table {
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.dr-table th,
.dr-table td {
    padding:8px 10px;
    border-bottom:1px solid #ddd;
    text-align:left;
}

.dr-table th {
    background:#f5f5f5;
}

.raised-btn {
    display:inline-block;
    background:#007bff;
    color:#fff;
    padding:8px 14px;
    border-radius:4px;
    text-decoration:none;
    border:none;
    cursor:pointer;
}

.cancel-btn {
    display:inline-block;
    background:#6c757d;
    color:#fff;
    padding:8px 14px;
    border-radius:4px;
    text-decoration:none;
    margin-left:6px;
}

@media (max-width:768px){
    .dr-container{padding:0 8px;}
    .dr-table th,.dr-table td{font-size:13px;padding:6px;}
}

  /* Accordion */
  .accordion-btn {
    background:#00224E;
    color:#fff;
    padding:10px 14px;
    width:100%;
    text-align:left;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
    margin-bottom:8px;
  }
  .accordion-btn:hover { background:#003a80; }
  .accordion-content { display:none; overflow:hidden; }

.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0px;
}

.pagination li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid gray;
  color: black;  
  margin: 0 4px;
  border-radius: 5px;
}

.pagination li a.active {
  background-color: #336688;
  color: white;
}
