body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
  }
  
/* Navigation */
.navbar {
  background-color: white;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #ddd;
}

/* Shared Navbar Container */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.navbar-brand img {
  height: 36px;
}

/* Links - default (mobile first) */
.navbar-links {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.navbar-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  display: block;
  padding: 10px 15px;
  width: 100%;
  box-sizing: border-box;
}

.navbar-links a:hover {
  color: #007bff;
}

/* Toggle (burger icon) */
.navbar-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  display: block;
  cursor: pointer;
}

/* Show menu when toggled */
.navbar-links.show {
  display: flex;
}

/* Desktop styles */
@media (min-width: 769px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-toggle {
    display: none;
  }

  .navbar-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-top: 0;
  }

  .navbar-links a {
    padding: 0;
    margin: 0;
    width: auto;
    line-height: 1.5rem;
  }
}

  /* Section Containers */
  .container {
    max-width: auto;
    margin: auto;
    padding: 20px;
  }
  
  .section-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
  }
  
  h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #212529;
  }

  /* Alerts */
  .alert {
    padding: 10px 16px;
    margin-bottom: 15px;
    border-radius: 6px;
  }
  
  .alert-success { background: #e6f4ea; color: #276738; }
  .alert-info    { background: #e9f5fb; color: #0b5b75; }
  .alert-danger  { background: #fdecea; color: #842029; }

/* Buttons */
.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
  }
  
  .btn-primary {
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #ffffff;
  }
  
  .btn-primary:hover {
    background-color: #ffffff;
    color: #007bff;
  }
  
  .btn-secondary {
    border: 1px solid #6c757d;
    background-color: #6c757d;
    color: #ffffff;
  }
  
  .btn-secondary:hover {
    background-color: #ffffff;
    color: #6c757d;
  }
  
  .btn-success {
    border: 1px solid #28a745;
    background-color: #28a745;
    color: #ffffff;
  }
  
  .btn-success:hover {
    background-color: #ffffff;
    color: #28a745;
  }
  
  .btn-danger {
    border: 1px solid #dc3545;
    background-color: #dc3545;
    color: #ffffff;
  }
  
  .btn-danger:hover {
    background-color: #ffffff;
    color: #dc3545;
  }
  
  .btn-outline-primary {
    border: 1px solid #007bff;
    color: #007bff;
    background: transparent;
  }
  
  .btn-outline-primary:hover {
    color: #ffffff;
    background-color: #007bff;
  }
  
  .btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
  }
  
  .btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #6c757d;
  }
  
  .btn-sm {
    font-size: 13px;
    padding: 5px 10px;
  }

  .btn-uniform {
    display: inline-block;
    width: 140px;
    height: 30px;
    text-align: center;
  }
  
  /* Tables */
  .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #fff;
    overflow: hidden;
  }
  
  .table-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
  }
  
  .table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
  }
  
  .table th {
    background-color: #f1f1f1;
    text-align: left;
    font-weight: 600;
  }
  
  .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
  }
  
  .table-bordered {
    border: 1px solid #dee2e6;
  }
  
  .table-bordered th,
  .table-bordered td {
    border: 1px solid #dee2e6;
  }

  .table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  }
  
  .table-responsive .table {
    width: 100%;
    min-width: 600px; /* Prevents squashing columns too much */
    border-collapse: collapse;
  }

@media (min-width: 769px) {
  .table-responsive {
    overflow-x: auto;
    width: 100%;
    overflow: visible !important;
  }
  
  .table-responsive .table {
    width: 100%;
    min-width: 600px; /* Prevents squashing columns too much */
    border-collapse: collapse;
    overflow: visible !important;
  }
}

  /* Default table cell alignment */
  .table th {
    text-align: center;
    vertical-align: middle;
  }
  
  .table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
  }
  
  .centered-cell {
    text-align: center !important;
    vertical-align: middle !important;
  }

  .fixed-actions {
    width: 130px;
    white-space: nowrap;
    text-align: center;
  }
  
  /* Photo Preview */
  .thumb-container {
    display: inline-block;
    position: relative;
  }
  
  .thumb-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .hover-img {
    display: none;
    position: absolute;
    top: -10px;
    left: 50px;
    z-index: 9999;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .hover-img img {
    width: 250px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .thumb-container:hover .hover-img {
    display: block;
  }

  /* Form Layout (Universal Admin Forms) */
  .form-container {
    max-width: 640px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .form-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
  }
  
  .form-container .form-group {
    margin-bottom: 18px;
  }
  
  .form-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
  }
  
  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container input[type="url"],
  .form-container input[type="file"],
  .form-container select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
  }
  
  .form-container input[type="checkbox"] {
    margin-right: 8px;
  }
  
  .form-container .btn {
    min-width: 140px;
  }
  
  .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
  }
  
  /* Admin dashboard grid layout */
  .employee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .employee-card {
    width: 180px;
    height: 200px; /* Fixed height */
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    text-align: center;
    transition: transform 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .employee-card:hover {
    transform: scale(1.02);
  }
  
  .employee-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
  }

  .employee-photo img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  .photo-placeholder {
    width: 100%;
    max-width: 120px;
    height: 100px;
    background-color: #ccc;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    line-height: 100px;
    text-align: center;
    margin: 0 auto 10px;
  }
  
  .employee-info {
    font-size: 14px;
  }
  
  .employee-info strong {
    display: block;
    font-size: 16px;
    color: #333;
  }
  
  .employee-info small {
    color: #555;
  }
  
  .employee-info .location {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
  }
  
  .employee-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }

  .no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #666;
    font-size: 0.9rem;
    height: 100px;
    width: 100px;
    border-radius: 8px;
    margin-bottom: 12px;
  }