/* app/assets/stylesheets/_attendances.css */

.attendances-container {
  padding: 20px;
  background-color: #f8f9fa;
  min-height: calc(100vh - 60px);
}

.attendances-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.attendances-header h1 {
  font-size: 2.2rem;
  color: #343a40;
}

.attendances-table {
  width: 100%;
  border-collapse: collapse;
}

.attendances-table th, .attendances-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.attendances-table th {
  background-color: #e9ecef;
  font-weight: 600;
}

.attendance-actions {
  display: flex;
  align-items: center;

}

.attendance-actions .btn-icon {
  background: none;
  border: none;
  padding: 0.4em;
  cursor: pointer;
}

.attendance-actions .text-danger {
  color: #ff000085;
}

.attendance-actions .text-primary {
  color: #0898DA;
}

.attendance-actions .btn-icon i {
  font-size: 1.1rem;
}

/* Show Page Styles */
.attendance-show-container {
  padding: 30px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.attendance-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
}

.attendance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.attendance-card-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
}

.attendance-card-body {
  padding: 30px;
}

.attendance-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 40px;
}

.attendance-detail-item {
  display: flex;
  flex-direction: column;
}

.attendance-detail-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.attendance-detail-value {
  color: #34495e;
  font-size: 1.1rem;
}

/* Attendance Status Card on Dashboard */
.attendance-status-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
  overflow: hidden;
}

.attendance-status-card .card-header {
  padding: 1rem 1.5rem;
  background-color: #f7f9fb;
  border-bottom: 1px solid #e0e0e0;
}

.attendance-status-card .card-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.attendance-status-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.status-not-checked-in p,
.status-checked-in p,
.status-checked-out p {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 1.5rem 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.status-dot.green { background-color: #28a745; }
.status-dot.grey { background-color: #6c757d; }

.time-display strong {
  color: #333;
}

.btn-check-in {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-check-in:hover {
  background-color: #0056b3;
}

.btn-check-out {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-check-out:hover {
  background-color: #c82333;
}

/* Form Styles */
.attendance-form {
  max-width: 100%;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: grid;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.form-field .form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-field.readonly {
  background-color: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
}

.location-display {
  color: #6c757d;
  margin: 0;
  font-size: 0.95rem;
}

.form-actions {
  text-align: right;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.error-messages {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-messages h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Status Badge Styles */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.status-present {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.status-absent {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.status-ambiguous {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.status-leave-full-day {
  background-color: #fff3cd;
  color: #ca820d;
}

.status-badge.status-incomplete {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.status-holiday {
  background-color: #1c7826;
  color: #e2e6e3;
}

.status-badge.status-void {
  background-color: #d72913;
  color: #eee8ea;
}
.check-in-out-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.check-in-btn,
.check-out-btn {
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.check-in-btn {
  background-color: #4CAF50;
  color: white;
}

.check-out-btn {
  background-color: #f44336;
  color: white;
}

.check-in-btn:hover {
  background-color: #45a049;
}

.check-out-btn:hover {
  background-color: #e53935;
}

.checked-in-state {
  text-align: center;
}

.check-in-time {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}
/* app/assets/stylesheets/_dashboard.css */

.dashboard-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.dashboard-header h1 {
  margin: 0;
  color: #333;
  font-size: 2em;
}

.dashboard-info-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.info-card {
  flex: 1;
  min-width: 250px; /* Minimum width for cards before wrapping */
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  margin-top: 0;
  color: #555;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.info-card p {
  margin-bottom: 0;
  color: #777;
  font-size: 1.1em;
}

.dashboard-content {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.dashboard-content p {
  line-height: 1.6;
  color: #666;
}
.departments-container {
  padding: 20px;
  background-color: #f8f9fa;
  min-height: calc(100vh - 60px); /* Adjust based on your header/footer height */
}

.departments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.departments-header h1 {
  font-size: 2.2rem;
  color: #343a40;
  margin: 0;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.table-responsive {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.departments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.departments-table thead th {
  background-color: #e9ecef;
  padding: 15px;
  text-align: left;
  color: #495057;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.departments-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  color: #343a40;
}

.departments-table tbody tr:hover {
  background-color: #f1f3f5;
}

.departments-table tbody td a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.departments-table tbody td a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.department-actions {
  white-space: nowrap;
}

.department-actions .btn {
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 5px; /* Space between buttons */
}

.department-actions .btn-edit {
  background-color: #ffc107;
  color: #212529;
}

.department-actions .btn-edit:hover {
  background-color: #e0a800;
}

.department-actions .btn-delete {
  background-color: #dc3545;
  color: white;
}

.department-actions .btn-delete:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-light {
  background-color: #f8f9fa;
  color: #343a40;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: 1px solid #ced4da;
}

.btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

/* Department Show Page Styles */
.department-show-container {
  padding: 30px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.department-details-horizontal-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 900px;
  padding: 25px 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.department-details-horizontal-card__content {
  flex-grow: 1;
}

.department-details-horizontal-card__title {
  font-size: 2.2rem;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.department-details-horizontal-card__description {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.department-details-horizontal-card__actions .btn {
  margin-left: 15px;
}

.designations-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 900px;
  padding: 30px;
}

.designations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.designations-header h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.designations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.designations-table thead th {
  background-color: #f7f9fb;
  padding: 15px;
  text-align: left;
  color: #495057;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.designations-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  color: #343a40;
}

.designations-table tbody tr:hover {
  background-color: #f1f3f5;
}

.designation-actions {
  white-space: nowrap;
}

.designation-actions .btn {
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 5px;
}

.designation-actions .btn-edit {
  background-color: #ffc107;
  color: #212529;
}

.designation-actions .btn-edit:hover {
  background-color: #e0a800;
}

.designation-actions .btn-delete {
  background-color: #dc3545;
  color: white;
}

.designation-actions .btn-delete:hover {
  background-color: #c82333;
}

.designations-list-card__empty-message {
  color: #6c757d;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .department-details-horizontal-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .department-details-horizontal-card__actions {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .department-details-horizontal-card__actions .btn {
    margin-left: 10px;
    margin-right: 0;
  }
}
/* app/assets/stylesheets/_forms.css */

.form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 900px; /* Increased max-width for better layout */
  margin: 20px auto;
}

.form-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between form fields */
  margin-bottom: 15px;
}

.form-field {
  flex: 1 1 calc(50% - 10px); /* Two columns, accounting for gap */
  min-width: 250px; /* Minimum width for a field before wrapping */
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box; /* Ensures padding doesn't increase width */
  font-size: 16px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-actions {
  margin-top: 20px;
  text-align: center;
}

.form-actions input[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.form-actions input[type="submit"]:hover {
  background-color: #0056b3;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
/* Minimalist and Professional Styles for Leave Applications */

/* General Container Styles */
.leave-applications-container,
.leave-application-show-container,
.leave-application-form-container {
  padding: 40px 20px;
  background-color: #f9fafb;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Styles */
.leave-applications-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.leave-applications-header h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin: 0;
  font-weight: 700;
}

/* Table Styles (Index Page) */
.table-responsive {
  width: 100%;
  max-width: 1000px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.leave-applications-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.leave-applications-table thead th {
  background-color: #f3f4f6;
  padding: 18px 24px;
  text-align: left;
  color: #4b5563;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.leave-applications-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.leave-applications-table tbody tr:last-child td {
  border-bottom: none;
}

.leave-applications-table tbody tr:hover {
  background-color: #f9fafb;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #ffffff;
}

.status-badge.status-pending {
  background-color: #f59e0b; /* Amber */
}

.status-badge.status-approved {
  background-color: #10b981; /* Emerald */
}

.status-badge.status-declined {
  background-color: #ef4444; /* Red */
}

.status-badge.status-cancelled_by_employee {
  background-color: #6b7280; /* Gray */
}

/* Action Buttons in Table */
.leave-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Optional: If you want to limit the number of buttons per row on smaller screens */
@media (max-width: 768px) {
  .leave-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.leave-actions .btn {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.leave-actions .btn-info {
  background-color: #3b82f6;
  color: white;
}
.leave-actions .btn-info:hover { background-color: #2563eb; }

.leave-actions .btn-warning {
  background-color: #f59e0b;
  color: white;
}
.leave-actions .btn-warning:hover { background-color: #d97706; }

.leave-actions .btn-danger {
  background-color: #ef4444;
  color: white;
}
.leave-actions .btn-danger:hover { background-color: #dc2626; }

.leave-actions .btn-success {
  background-color: #10b981;
  color: white;
}
.leave-actions .btn-success:hover { background-color: #059669; }

.leave-actions .btn-secondary {
  background-color: #6b7280;
  color: white;
}
.leave-actions .btn-secondary:hover { background-color: #4b5563; }


/* Card Styles (Show, New, Edit Pages) */
.leave-application-card,
.leave-application-form-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  margin-top: 20px; /* Added margin for spacing from header */
}

.leave-application-card-header,
.leave-application-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.leave-application-card-title,
.leave-application-form-title {
  font-size: 2rem;
  color: #1f2937;
  margin: 0;
  font-weight: 700;
}

.leave-application-card-body,
.leave-application-form-body {
  padding: 30px;
}

/* Details Grid (Show Page) */
.leave-application-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 40px;
}

.leave-application-detail-item {
  display: flex;
  flex-direction: column;
}

.leave-application-detail-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.leave-application-detail-value {
  color: #374151;
  font-size: 1.1rem;
  word-wrap: break-word;
  line-height: 1.5;
}

/* Form Fields Grid */
.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-field {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-field .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #374151;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.form-field .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.form-field textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Form Actions */
.form-actions {
  margin-top: 30px;
  text-align: right;
}

.form-actions .btn-primary {
  background-color: #3b82f6;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.form-actions .btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

/* General Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}
.btn-primary:hover { background-color: #2563eb; }

.btn-light {
  background-color: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}
.btn-light:hover { background-color: #e5e7eb; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .leave-applications-header,
  .table-responsive,
  .leave-application-card,
  .leave-application-form-card {
    padding: 0 15px;
  }

  .leave-applications-header h1 {
    font-size: 2rem;
  }

  .leave-applications-table thead th,
  .leave-applications-table tbody td {
    padding: 12px 15px;
  }

  .leave-application-details-grid {
    grid-template-columns: 1fr;
  }

  .leave-application-card-header,
  .leave-application-form-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .leave-application-card-title,
  .leave-application-form-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .leave-application-actions,
  .leave-application-form-actions {
    text-align: left;
    width: 100%;
  }

  .leave-application-actions .btn,
  .leave-application-form-actions .btn {
    margin-left: 0;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .form-fields-grid {
    grid-template-columns: 1fr;
  }
}
.public-holidays-section {
  margin-top: 2rem;
}

.public-holidays-section h2 {
  margin-bottom: 1rem;
}

.public-holidays-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.public-holidays-table th,
.public-holidays-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.public-holidays-table th {
  background-color: #f2f2f2;
}
:root {
  --primary-color: #4a90e2;
  --secondary-color: #f5f7fa;
  --text-color: #333;
  --border-color: #e0e0e0;
  --hover-color: #357abd;
}

.shifts-container {
  padding: 2rem;
  background-color: var(--secondary-color);
}

.shifts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.shifts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 20px;
}

.shifts-table th,
.shifts-table td {
  padding: 15px;
  text-align: left;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.shifts-table th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.shifts-table td {
  vertical-align: middle;
}

.shifts-table tr:hover td {
  background-color: #f0f0f0;
}

.shifts-form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shifts-form-container .field {
  margin-bottom: 20px;
}

.shifts-form-container .field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.shifts-form-container .field input[type="text"],
.shifts-form-container .field input[type="time"],
.shifts-form-container .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.shifts-form-container .field input[type="text"]:focus,
.shifts-form-container .field input[type="time"]:focus,
.shifts-form-container .field textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.shifts-form-container .actions {
  margin-top: 30px;
  text-align: right;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--hover-color);
}

.shifts-show-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shifts-show-details p {
  margin-bottom: 15px;
  font-size: 16px;
}

.shifts-show-details strong {
  font-weight: 600;
  margin-right: 10px;
  color: var(--primary-color);
}

.shift-actions a {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.3s;
}

.shift-actions a:hover {
  color: var(--hover-color);
}
/* app/assets/stylesheets/_sidebar.css */

/* Universal box-sizing for consistent layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5; /* A slightly darker background for the whole page */
  color: #333;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #2c3e50; /* Darker sidebar background */
  color: white;
  padding: 20px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Pushes sign-out to bottom */
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  width: 100%; /* Make ul take full width of sidebar */
}

.sidebar ul li {
  margin-bottom: 5px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 20px;
  border-radius: 0px; /* No border-radius for full-width items */
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: #34495e; /* Slightly lighter on hover/active */
  color: #ffffff;
}

.sign-out-link {
  margin-top: auto; /* Pushes it to the bottom */
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background-color: #e74c3c; /* Red background for sign out */
  color: white;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.sign-out-link:hover {
  background-color: #c0392b;
}

.main-content {
  flex-grow: 1;
  padding: 30px; /* Increased padding for main content */
  background-color: #f8f9fa; /* Lighter background for content area */
  overflow-y: auto; /* Allow scrolling within main content if needed */
}
.tax-slabs-container {
  padding: 2rem;
  background-color: #f9fafb;
}

.tax-slabs-container h1 {
  color: #1f2937;
}

.tax-slabs-container .alert-info {
  background-color: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.tax-slabs-container .accordion-item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.tax-slabs-container .accordion-button {
  background-color: #f9fafb;
  color: #1f2937;
  font-weight: 600;
}

.tax-slabs-container .accordion-button:not(.collapsed) {
  background-color: #eef2ff;
  color: #4338ca;
}

.tax-slabs-container .table {
  margin-top: 1rem;
}

.tax-slabs-container .table th {
  background-color: #f3f4f6;
}
.users-container {
  padding: 20px;
  background-color: #f8f9fa;
  min-height: calc(100vh - 60px); /* Adjust based on your header/footer height */
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.users-header h1 {
  font-size: 2.2rem;
  color: #343a40;
  margin: 0;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.table-responsive {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.users-table thead th {
  background-color: #e9ecef;
  padding: 15px;
  text-align: left;
  color: #495057;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.users-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  color: #343a40;
}

.users-table tbody tr:hover {
  background-color: #f1f3f5;
}

.users-table tbody td a {
  color: #0898da;
  text-decoration: none;
  transition: color 0.3s ease;
}

.users-table tbody td a:hover {
  color: #546506;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid;
  min-width: 80px;
  text-align: center;
}

.status-badge.status-active {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-badge.status-inactive {
  background-color: #ff6b6b;
  color: #ffffff;
  border-color: #e74c3c;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
  font-weight: 700;
}

/* Inactive user row styling */
.inactive-user {
  opacity: 0.7;
  background-color: #f8f9fa;
}

.inactive-user:hover {
  opacity: 1;
  background-color: #e9ecef;
}

/* Action buttons */
.btn-activate {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  margin-left: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-activate:hover {
  background-color: #218838;
  color: white;
  text-decoration: none;
}

.btn-deactivate {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  margin-left: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-deactivate:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
}

.user-actions {
  white-space: nowrap;
  display: flex;
  gap: 5px;
  align-items: center;
}

.user-actions .btn {
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 5px; /* Space between buttons */
  white-space: nowrap;
}

.user-actions .btn-edit {
  background-color: #ffc107;
  color: #212529;
}

.user-actions .btn-edit:hover {
  background-color: #e0a800;
}

.user-actions .btn-delete {
  background-color: #dc3545;
  color: white;
}

.user-actions .btn-delete:hover {
  background-color: #c82333;
}

.user-logo-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

/* User Show Page Styles */
.user-show-container {
  padding: 30px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.user-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f7f9fb;
}

.user-card-title {
  font-size: 2.2rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 700;
}

.user-card-body {
  padding: 30px;
}

.user-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.user-detail-item {
  display: flex;
  flex-direction: column;
}

.user-detail-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.user-detail-value {
  color: #34495e;
  font-size: 1.1rem;
  word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-details-grid {
    grid-template-columns: 1fr;
  }

  .user-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-actions {
    margin-top: 15px;
  }
}

/* User Form Styles (New/Edit) */
.user-form-container {
  padding: 30px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-form-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 900px; /* Increased max-width for more fields */
  padding: 30px;
}

.user-form-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.user-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 20px;
}

.form-field {
  margin-bottom: 0; /* Reset margin as gap handles spacing */
}

.form-field label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.form-field input:focus,
.form-field select:focus {
  border-color: #88b4e7; /* A softer blue for focus */
  box-shadow: 0 0 0 3px rgba(136, 180, 231, 0.3); /* Soft glow */
  outline: none;
}

.form-actions {
  margin-top: 30px;
  text-align: center;
}

.form-actions input[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-actions input[type="submit"]:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.user-form-actions {
  margin-top: 20px;
  text-align: center;
}

.user-form-actions .btn-light {
  background-color: #f0f2f5;
  color: #555;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin: 0 5px;
}

.user-form-actions .btn-light:hover {
  background-color: #e2e6ea;
}

#error_explanation {
  background-color: #ffebeb;
  color: #d9534f;
  border: 1px solid #d9534f;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

#error_explanation h2 {
  color: #d9534f;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 10px;
}

#error_explanation ul {
  margin: 0;
  padding-left: 20px;
}

#error_explanation ul li {
  margin-bottom: 5px;
}
/* General Body and Container Styles */
/* Removed global body styles from here */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  /* Moved background and min-height from body to auth-container */
  background-color: #f0f2f5; /* Light gray background */
  min-height: 100vh; /* Ensure it takes full viewport height */
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Apply font here */
  color: #333; /* Apply text color here */
}

/* Auth Form Card */
.auth-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px; /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
  width: 100%;
  max-width: 420px; /* Slightly wider form */
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.auth-form:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
}

.auth-title {
  font-size: 2.2em; /* Larger title */
  color: #2c3e50; /* Darker, professional blue-gray */
  margin-bottom: 35px;
  font-weight: 600;
}

/* Form Elements */
.auth-form label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.95em;
  font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
  width: calc(100% - 24px); /* Adjust for padding */
  padding: 14px 12px;
  margin-bottom: 25px; /* More space between fields */
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 8px; /* Rounded input fields */
  font-size: 1.05em;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form select:focus {
  border-color: #007bff; /* Highlight on focus */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Soft focus glow */
  outline: none;
}

/* Submit Button */
.auth-form input[type="submit"] {
  background-color: #007bff; /* Primary blue */
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.auth-form input[type="submit"]:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px);
}

.auth-form input[type="submit"]:active {
  transform: translateY(0);
}

/* Error Message */
#email-error {
  color: #e74c3c; /* Red for errors */
  font-size: 0.9em;
  margin-top: -20px;
  margin-bottom: 15px;
  text-align: left;
}

/* Flash Messages */
.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
}

.alert.alert-danger,
.alert.alert-alert {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert.alert-success,
.alert.alert-notice {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.alert.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* Auth Links (Forgot password, Sign up etc.) */
.auth-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Space between links */
}

.auth-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .auth-form {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .auth-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form select {
    padding: 12px 10px;
    font-size: 1em;
  }

  .auth-form input[type="submit"] {
    padding: 12px 20px;
    font-size: 1em;
  }
}
/* Fiscal Year Alert Card */
.fiscal-year-alert-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #f39c12;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fiscal-year-alert-card:hover {
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.25);
  transform: translateY(-2px);
}

.alert-card-header {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  position: relative;
}

.alert-icon {
  background: #f39c12;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.alert-icon i {
  color: white;
  font-size: 1.25rem;
}

.alert-content {
  flex-grow: 1;
  min-width: 0;
}

.alert-title {
  color: #d68910;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.alert-message {
  color: #8b4513;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.alert-action-btn {
  display: inline-flex;
  align-items: center;
  background: #f39c12;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #f39c12;
}

.alert-action-btn:hover {
  background: #e67e22;
  border-color: #e67e22;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.alert-close-btn {
  background: none;
  border: none;
  color: #d68910;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.alert-close-btn:hover {
  background: rgba(214, 137, 16, 0.1);
  color: #b8860b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .alert-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .alert-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .alert-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin-left: 0;
  }
  
  .alert-content {
    text-align: center;
  }
  
  .alert-action-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Animation for alert appearance */
.fiscal-year-alert-card {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 
/* Minimalist CSS for the landing page */
body, html {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
}

.landing-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.landing-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #555;
}

.landing-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.landing-button:hover {
  background-color: #0056b3;
}
/* Loan Form Styling */
.loan-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.loan-form-container h1 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.loan-form-container .form-group {
  margin-bottom: 1.5rem;
}

.loan-form-container .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.loan-form-container .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.loan-form-container .form-control[readonly] {
  background-color: #f8f9fa;
  color: #6c757d;
}

.loan-form-container .form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

.loan-form-container .form-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Loans Section Styling */
.loans-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loans-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ecf0f1;
}

.loans-section .table {
  margin-bottom: 0;
}

.loans-section .table th {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  font-weight: 600;
  color: #495057;
}

.loans-section .table td {
  vertical-align: middle;
}

.loans-section .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.loans-section .btn-group {
  gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .loan-form-container .row {
    margin: 0;
  }
  
  .loan-form-container .col-md-6 {
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .loans-section .table-responsive {
    font-size: 0.875rem;
  }
  
  .loans-section .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Loan Show Page Styling */
.loan-show-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.loan-show-container h1 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.loan-actions {
  display: flex;
  gap: 0.5rem;
}

.loan-actions .btn {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.loan-show-container .card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

.loan-show-container .card-body {
  padding: 2rem;
}

.loan-show-container .card-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ecf0f1;
}

.loan-show-container .table {
  margin-bottom: 0;
}

.loan-show-container .table td {
  padding: 0.75rem;
  border: none;
  background: transparent;
}

.loan-show-container .table td:first-child {
  font-weight: 600;
  color: #495057;
  min-width: 150px;
}

.loan-notes {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.progress {
  height: 1.5rem;
  border-radius: 8px;
  background-color: #e9ecef;
}

.progress-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

@media (max-width: 768px) {
  .loan-show-container {
    padding: 10px;
  }
  
  .loan-show-container h1 {
    font-size: 1.5rem;
  }
  
  .loan-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .loan-show-container .card-body {
    padding: 1rem;
  }
  
  .loan-show-container .table td {
    padding: 0.5rem;
  }
  
  .loan-show-container .table td:first-child {
    min-width: 120px;
  }
} 
/* app/assets/stylesheets/nav.css */

nav {
  background-color: #333;
  padding: 10px 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #555;
}
/* Salary Slip Styles */
.salary-slip-show-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h1 {
  color: #333;
  margin-bottom: 10px;
}

.content-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.salary-breakdown h3 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.earnings-section, .deductions-section {
  margin-bottom: 30px;
}

.earnings-section h4 {
  color: #27ae60;
  margin-bottom: 15px;
  font-weight: 600;
}

.deductions-section h4 {
  color: #e74c3c;
  margin-bottom: 15px;
  font-weight: 600;
}

.salary-details {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #495057;
}

.detail-value {
  font-weight: 600;
  color: #2c3e50;
}

.currency {
  font-family: 'Courier New', monospace;
}

.subtotal {
  background: #e8f5e8;
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
}

.deductions-section .subtotal {
  background: #ffeaea;
}

.total {
  background: #d4edda;
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  color: #155724;
}

.net-salary-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #dee2e6;
}

.notes-section {
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border-radius: 6px;
  border-left: 4px solid #ffc107;
}

.notes-section h4 {
  color: #856404;
  margin-bottom: 10px;
}

.status-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}

.status-section h4 {
  color: #495057;
  margin-bottom: 15px;
}

.badge {
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.action-buttons {
  margin-top: 30px;
  text-align: center;
}

.action-buttons .btn {
  margin: 0 5px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-success {
  background: #28a745;
  color: white;
}

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

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.tax-info-section {
  margin-bottom: 30px;
}

.tax-info-section h4 {
  color: #dc3545;
  margin-bottom: 15px;
  font-weight: 600;
}

.tax-info-section .salary-details {
  background: #fff5f5;
  border-left: 4px solid #dc3545;
} 
.salary-line-items-section {
  margin-top: 2rem;
}

.salary-line-items-section table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.salary-line-items-section th,
.salary-line-items-section td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.salary-line-items-section th {
  background: #f8f9fa;
  font-weight: 600;
}

.salary-line-items-section tr:nth-child(even) {
  background: #f6f8fa;
}

.salary-line-items-section .btn {
  margin-right: 0.25rem;
}

.salary-line-items-section .form-group {
  margin-bottom: 1.25rem;
}

.salary-line-items-section label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.salary-line-items-section input[type="text"],
.salary-line-items-section input[type="number"],
.salary-line-items-section input[type="date"],
.salary-line-items-section select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 1rem;
}

.salary-line-items-section input[type="checkbox"] {
  margin-left: 0.5rem;
}

.salary-line-items-section .form-actions {
  margin-top: 1.5rem;
}

.salary-line-items-section .btn-primary {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.salary-line-items-section .btn-primary:hover {
  background: #0056b3;
}

.salary-line-items-section .btn-success {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.salary-line-items-section .btn-success:hover {
  background: #1e7e34;
}

.salary-line-items-section .btn-danger {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.salary-line-items-section .btn-danger:hover {
  background: #a71d2a;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Tax Slabs Section */
.tax-slabs-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tax-slabs-section h2 {
  color: #343a40;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.tax-slabs-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tax-slabs-section .alert {
  border-left: 5px solid #ffc107;
  background-color: #fff3cd;
  color: #664d03;
  padding: 1rem;
  border-radius: 0.25rem;
}

.tax-slabs-section .alert .fas {
  color: #ffc107;
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.tax-slabs-section .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tax-slabs-section .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.tax-slabs-section .table th {
  background-color: #e9ecef;
  border: none;
  font-weight: 700;
  color: #495057;
  padding: 1rem;
  text-align: center;
}

.tax-slabs-section .table td {
  vertical-align: middle;
  background-color: #fff;
  border: none;
  padding: 1rem;
  text-align: center;
}

.tax-slabs-section .table tbody tr {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
}

.tax-slabs-section .btn-group {
  gap: 0.5rem;
}

.tax-slabs-section .badge {
  font-size: 0.8rem;
  padding: 0.5em 0.75em;
  font-weight: 600;
}

.tax-slabs-section .badge-success {
  background-color: #28a745;
  color: #fff;
}

.tax-slabs-section .badge-secondary {
  background-color: #6c757d;
  color: #fff;
}

.tax-slabs-section .text-muted {
  color: #6c757d !important;
  font-style: italic;
}

.tax-slabs-section .fa-info-circle {
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tax-slabs-actions {
    flex-direction: column;
  }
  
  .tax-slabs-actions .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .tax-slabs-section .table-responsive {
    font-size: 0.9rem;
  }
} 
/* User Show Page Styles */

.user-show-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.tabs-container {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
}

.tabs-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-button {
  flex: 1;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-button:hover {
  background: #e9ecef;
  color: #495057;
}

.tab-button.active {
  background: #fff;
  color: #007bff;
  border-bottom: 4px solid #007bff;
  font-weight: 700;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #007bff;
}

.tab-content {
  padding: 3rem;
  background: #fff;
  min-height: calc(100vh - 200px);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tabs-header {
    flex-direction: column;
  }
  
  .tab-button {
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
}

/* User Details Section - Improved Layout */
.user-details-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #e9ecef;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.add-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-button:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Enhanced User Details Grid */
.user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.user-detail-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-detail-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
}

.user-detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.user-detail-label {
  font-weight: 700;
  color: #495057;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-detail-value {
  color: #212529;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Special styling for important fields */
.user-detail-item.important {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
  border-color: #2196f3;
}

.user-detail-item.important::before {
  background: linear-gradient(180deg, #2196f3 0%, #1976d2 100%);
}

/* Currency formatting */
.currency {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #28a745;
  font-size: 1.2rem;
}

/* User actions */
.user-actions {
  display: flex;
  gap: 1rem;
}

.user-actions .add-button {
  min-width: 120px;
  text-align: center;
}

/* Card styling for content sections */
.content-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-card h3 {
  margin-top: 0;
  color: #495057;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Table styling */
.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Action buttons styling */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.view-btn {
  background: #17a2b8;
  color: white;
}

.view-btn:hover {
  background: #138496;
  color: white;
}

.edit-btn {
  background: #007bff;
  color: white;
}

.edit-btn:hover {
  background: #0056b3;
  color: white;
}

.delete-btn {
  background: #dc3545;
  color: white;
}

.delete-btn:hover {
  background: #c82333;
  color: white;
}

/* Badge styling */
.badge {
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-secondary {
  background: #e2e3e5;
  color: #383d41;
}

/* Form controls */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-control:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

/* Status badges */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d1ecf1;
  color: #0c5460;
}

.status-declined {
  background: #f8d7da;
  color: #721c24;
}

/* Progress bars */
.progress {
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  transition: width 0.3s ease;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-details-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .user-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .user-detail-item {
    padding: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .action-btn {
    text-align: center;
    padding: 0.5rem;
  }
}

/* Additional sections styling */
.leave-quotas-section,
.salary-line-items-section,
.loans-section,
.salary-slips-section {
  margin-bottom: 3rem;
}

/* Salary Slip Edit Form */
.salary-slip-edit-container {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.salary-breakdown {
  margin-bottom: 2rem;
}

.salary-breakdown h3 {
  color: #495057;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.currency-input {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9ecef;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
  color: white;
}

.btn-light {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.btn-light:hover {
  background: #e2e6ea;
  color: #495057;
}

/* Admin Salary Slips Index */
.salary-slips-admin-container {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Salary Slip Show View */
.salary-slip-show-container {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.salary-details {
  margin: 2rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  color: #28a745;
  border-top: 2px solid #28a745;
  border-bottom: 2px solid #28a745;
}

.detail-label {
  font-weight: 600;
  color: #495057;
  min-width: 200px;
}

.detail-value {
  font-weight: 600;
  color: #212529;
}

.notes-section,
.status-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9ecef;
}

.notes-section h4,
.status-section h4 {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #1e7e34;
  color: white;
}

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

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

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
  color: white;
}

/* Section spacing */
.tab-pane > div:not(:last-child) {
  margin-bottom: 3rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 @import "_departments.css";
 @import "_users.css";
 @import "_shifts.css";
 @import "_check_in_out.css";
 @import "_attendances.css";
 @import "_leave_applications.css";
 @import "_public_holidays.css";
 @import "_tax_slabs.css";




 */

 .flash-message {
  display: block;
  padding: 4px 8px;
  margin: 4px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
  color: white;
}

.flash-message.notice {
  background-color: #4caf50; /* Green */
}

.flash-message.alert {
  background-color: #f44336; /* Red */
}

.flash-message.error {
  background-color: #ff9800; /* Orange */
}

/* Nominatim Suggestions Dropdown */
.settings-container {
  position: relative;
}
.suggestions-list {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: none;
}
.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}
.suggestion-item:hover {
  background: #f0f2f5;
} 

.leave-quotas-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.leave-quotas-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.leave-quotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.leave-quota-item {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leave-quota-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.leave-quota-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}
.pagination-container {
  margin-top: 2rem;
  text-align: right;
}

.pagination-container nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
  margin: 0 auto;
  font-family: sans-serif;
  border-left: 1px solid #ddd;
}

.pagination-container nav.pagination a,
.pagination-container nav.pagination span.current,
.pagination-container nav.pagination span.gap {
  display: inline-block;
  padding: 0 14px;
  line-height: 38px;
  text-decoration: none;
  background-color: white;
  border: 1px solid #DDD;
  border-left-width: 0;
  color: #333;
  min-width: 36px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.pagination-container nav.pagination a:hover {
  background-color: #f1f1f1;
}

.pagination-container nav.pagination span.current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  cursor: default;
}

.pagination-container nav.pagination span.disabled,
.pagination-container nav.pagination .disabled span {
  color: #ccc;
  background-color: #f9f9f9;
  cursor: not-allowed;
  border-color: #ddd;
}

/* Specific classes for nav children */
.pagination-container nav.pagination .first,
.pagination-container nav.pagination .prev,
.pagination-container nav.pagination .page,
.pagination-container nav.pagination .next,
.pagination-container nav.pagination .last {
  padding: 0;
  float: none;
  border: none;
}
