/* Global Resets and Base Styles */
:root {
  --primary-color: #0056b3; /* A nice blue */
  --secondary-color: #007bff; /* A lighter blue for accents */
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --font-family: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff; /* Changed to white for a cleaner look, or var(--light-color) for off-white */
}

body .container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.section-padding {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--light-color);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #0069d9;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header */
.header-block {
  color: #fff;
  background-color: var(--primary-color);
  padding: 10px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-block .navbar {
  padding: 0;
  background-color: transparent;
}
.header-block .navbar-brand a {
  color: #fff;
  font-size: 30px;
  text-decoration: none;
}
.header-block .main-menu ul.navbar-nav {
  margin: 0 auto;
  & a:hover {
    color: var(--primary);
  }
}
.header-block .main-menu .navbar-nav:not(ul) a.btn-outline-secondary {
  color: #fff;
  font-weight: 500;
  border-color: #fff;
  padding: 8px 15px;
  &:hover {
    color: #640808;
    background-color: #fff;
  }
}
.header-block .main-menu .nav-item {
  margin-right: 10px;
}
.header-block .main-menu .nav-item a.nav-link {
  color: #fff;
  font-weight: 500;
}

/* Slider */
.hero-section-slider .carousel .carousel-inner .carousel-item {
  height: 500px;
}

/* Filters Section */
.filters-section {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.filters-form {
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.filter-group label {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-color);
  font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

/* Table Styles */
.table-container {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.reports-table th {
  background-color: var(--dark-color);
  color: #fff;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.reports-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.reports-table tr:hover {
  background-color: #f8f9fa;
}

.reports-table tr:last-child td {
  border-bottom: none;
}

/* Table Column Styles */
.date-column {
  min-width: 120px;
}

.date-column strong {
  color: var(--dark-color);
}

.date-column small {
  color: var(--text-light);
}

.hours-column {
  text-align: center;
  min-width: 80px;
}

.delay-info {
  color: #dc3545;
  font-weight: 500;
}

.images-column {
  text-align: center;
  min-width: 100px;
}

.image-count {
  color: var(--primary-color);
  font-weight: 500;
}

.actions-column {
  text-align: center;
  min-width: 120px;
}

.actions-column .btn {
  margin: 2px;
}

.no-data {
  color: var(--text-light);
  font-style: italic;
}

/* No Reports State */
.no-reports {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-reports p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  margin: 0 0 15px 0;
  color: var(--dark-color);
}

.modal p {
  margin: 0 0 20px 0;
  color: var(--text-light);
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}



/* Engineering Excellence Section */
.engineering-excellence-section .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.engineering-excellence-section .image-content img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.engineering-excellence-section h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--dark-color);
}
.engineering-excellence-section p {
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.feature-icon {
  margin-bottom: 15px;
  height: 50px; /* Fixed height for icons */
  width: auto;
  margin-left: auto;
  margin-right: auto;
}
.feature-item h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}
.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Our Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.product-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card h3 {
  font-size: 1.5rem;
  margin: 15px;
  color: var(--dark-color);
}
.product-card p {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  color: var(--text-light);
  min-height: 60px; /* Ensure consistent card height */
}
.product-card .btn {
  display: block;
  margin: 15px;
}

/* Trusted by Section */
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}
.clients-logos img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.clients-logos img:hover {
  opacity: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-light);
}
.testimonial-card h4 {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 5px;
}
.testimonial-card span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}
.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}
.cta-section .btn-primary {
  background-color: #fff;
  color: var(--primary-color);
}
.cta-section .btn-primary:hover {
  background-color: #f0f0f0;
}
.cta-section .btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}
.cta-section .btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: #adb5bd;
  font-size: 0.9rem;
  padding: 40px 0 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-column h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.footer-column ul li {
  margin-bottom: 8px;
}
.footer-column a {
  color: #adb5bd;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: #fff;
}
.social-links a {
  margin-right: 10px;
  display: inline-block;
}
.social-links img {
  height: 24px;
  width: 24px;
}
.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 20px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin-bottom: 5px;
}
.site-footer a:hover {
    color: #72ae44 !important;
    transition: color 0.3s ease;
}

.social-icons a:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* End of Footer */

/* Flash Messages (from previous style) */
.flash-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  position: fixed; /* Make it fixed to show on top */
  top: 80px; /* Below header */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  min-width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.flash-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash-message.danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.flash-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  .hero-section h1 {
    font-size: 2.8rem;
  }
  .engineering-excellence-section .grid-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .engineering-excellence-section .image-content {
    order: -1;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .main-navigation,
  .header-actions {
    display: none;
  } /* Hide desktop nav and actions */
  .mobile-nav-toggle {
    display: block;
  } /* Show hamburger icon */

  .section-title {
    font-size: 2rem;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
  .features-grid,
  .products-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom p {
    margin-bottom: 10px;
  }

  /* Mobile responsive for reports page */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: auto;
  }

  .filter-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .table-container {
    overflow-x: auto;
  }

  .reports-table {
    min-width: 800px;
  }

  .reports-table th,
  .reports-table td {
    padding: 8px;
    font-size: 0.8rem;
  }
}

/* Forms (basic styling, can be expanded from previous) */
.form-group {
  margin-bottom: 20px; /* Increased spacing for auth forms */
}
.form-group label {
  display: block;
  margin-bottom: 8px; /* Increased spacing for labels */
  font-weight: 500;
  color: var(--text-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px; /* Increased padding for inputs */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff; /* Ensure white background for inputs */
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25); /* Focus glow */
  outline: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group .error-message {
  color: red;
  font-size: 0.85em; /* Slightly smaller error messages */
  display: block;
  margin-top: 5px;
}

/* Authentication Page Specific Styles (Login, Register) */
.auth-page-container {
  display: flex;
  flex-direction: column; /* Allow header/footer to be outside flex centering */
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px); /* Adjust based on actual header/footer height */
  background-color: var(--light-color); /* Light background for the whole page */
}

.auth-form-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* Softer shadow */
  width: 100%;
  max-width: 420px; /* Slightly adjusted max-width */
  margin-top: 20px; /* Space from header if header is tall */
  margin-bottom: 20px; /* Space from footer */
}

.auth-form-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--dark-color);
  font-size: 1.8rem; /* Slightly adjusted title size */
}

.auth-form-footer {
  margin-top: 25px;
  font-size: 0.9rem;
}
.auth-form-footer p {
  margin-bottom: 10px;
  color: var(--text-light);
}
.auth-form-footer a {
  color: var(--primary-color);
  font-weight: 500;
}
.auth-form-footer a:hover {
  text-decoration: underline;
}

/* Contact Page Specific Styles */
.contact-page-container .page-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Form takes more space */
  gap: 40px;
  margin-top: 40px;
}

.contact-form-column h2,
.contact-info-column h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 20px;
}

#contactForm .form-group {
  margin-bottom: 20px;
}

#contactForm label {
  font-weight: 500;
  color: var(--text-color);
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm textarea {
  background-color: var(--light-color); /* Light background for inputs */
  border: 1px solid #ced4da;
}
#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm input[type="tel"]:focus,
#contactForm textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25); /* Focus glow */
}

.contact-info-column p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.info-item {
  display: flex;
  align-items: flex-start; /* Align icon with top of text */
  margin-bottom: 20px;
}

.info-icon {
  margin-right: 15px;
  flex-shrink: 0; /* Prevent icon from shrinking */
  /* Assuming placeholder SVGs are used, or use actual icons */
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(196deg) brightness(93%) contrast(89%); /* Primary color for icons */
}

.info-item div strong {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.info-item a {
  color: var(--primary-color);
  text-decoration: none;
}
.info-item a:hover {
  text-decoration: underline;
}

.map-container iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
  .contact-info-column {
    margin-top: 40px; /* Add space when stacked */
  }
}

@media (max-width: 768px) {
  .contact-page-container .page-title {
    font-size: 2.2rem;
  }
  .contact-form-column h2,
  .contact-info-column h2 {
    font-size: 1.6rem;
  }
  .auth-form-card {
    padding: 20px; /* Less padding on mobile for auth cards */
  }
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.welcome-section h1 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.user-role {
  color: var(--text-light);
  font-size: 1rem;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

.role-badge.role-admin {
  background-color: #dc3545;
  color: white;
}

.role-badge.role-labor {
  background-color: var(--primary-color);
  color: white;
}

.dashboard-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.stat-content h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}

.stat-content p {
  margin: 5px 0 0 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Action Cards */
.section h2 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.action-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.action-card h3 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.action-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.admin-card {
  border-left: 4px solid #dc3545;
}

/* Admin Pages Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
  color: var(--dark-color);
  margin: 0;
}

/* Admin Table */
.users-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

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

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

.admin-table th {
  background-color: var(--light-color);
  font-weight: 600;
  color: var(--dark-color);
}

.admin-table tr:hover {
  background-color: #f8f9fa;
}

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

.role-select {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Reports Grid for Admin */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.report-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.report-header {
  background-color: var(--light-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-header h3 {
  margin: 0;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.report-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.report-details {
  padding: 20px;
}

.report-details p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.report-actions {
  padding: 15px 20px;
  background-color: #f8f9fa;
  display: flex;
  gap: 10px;
}

/* Report Detail Page */
.report-detail-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.report-detail-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-detail-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.report-detail-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

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

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.detail-item span {
  color: var(--dark-color);
  font-size: 1rem;
}

.work-details {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 4px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.report-images-section {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.report-images-section h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

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

.image-thumbnail {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.image-thumbnail:hover {
  transform: scale(1.05);
}

.image-thumbnail img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.report-meta {
  padding: 15px 20px;
  background-color: var(--light-color);
  border-top: 1px solid var(--border-color);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .action-cards {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Work Report Form Styles */
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.form-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.form-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

.work-report-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-size: 0.85rem;
}

/* Time Inputs */
.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.time-input-group {
  display: flex;
  flex-direction: column;
}

.time-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 400;
}

/* File Upload Area */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background-color: #f0f7ff;
}
.upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.6;
}
.upload-text {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 5px;
}

.upload-subtext {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}
.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.form-actions .btn {
  min-width: 120px;
}
/* Error Messages */
.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .time-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
  .work-report-form {
    padding: 20px;
  }
}

/* Add this to your existing CSS file */
/* Work Report Form - New Design */
.work-report-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.work-report-header {
  margin-bottom: 30px;
}
.work-report-header h1 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 5px;
  font-weight: 600;
}
.work-report-header .subtitle {
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 5px;
}
.work-report-header .description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}
.work-report-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-color);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  background-color: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
}
.time-fields {
  display: flex;
  gap: 20px;
}
.time-field {
  flex: 1;
}
.time-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: normal;
}
.file-upload-container {
  border: 1px dashed #ddd;
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  background-color: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.file-upload-container:hover {
  border-color: var(--primary-color);
  background-color: #f5f9ff;
}
.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #888;
}
.file-upload-text {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}
.file-upload-subtext {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}
.file-upload-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
  display: block;
}
.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 10px;
}
.btn-cancel {
  background-color: #f8f9fa;
  color: var(--dark-color);
  border: 1px solid #ddd;
}
.btn-cancel:hover {
  background-color: #e9ecef;
}
.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .time-fields {
    flex-direction: column;
    gap: 15px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions button {
    width: 100%;
  }
}

/* Dashboard */
.dashboard-header {
  padding: 40px 60px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-header h1 {
  font-size: 32px;
  color: var(--primary-color);
}
.user-role {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}
/* .btn-primary {
  background: #72ae44;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #5a9233;
} */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 60px 25px;
}
.stats-grid .stat-card:nth-child(4) {
  grid-column: 1 / span 3;
  max-width: 300px;
  margin: 0 auto;
}
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), #1c1e66);
  color: white;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.stat-card .icon {
  font-size: 48px;
  opacity: 0.3;
  position: absolute;
  top: 15px;
  right: 15px;
  transition: all 0.3s ease;
}
.stat-card:hover .icon {
  opacity: 0.4;
  transform: scale(1.05);
}
.stat-card h3 {
  font-size: 36px;
  margin-bottom: 10px;
}
.stat-card p {
  font-size: 16px;
  opacity: 0.9;
}

/* Quick Actions Section */
.dashboard-sections {
  padding: 0 60px 30px;
}

.dashboard-sections h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 30px;
  margin-bottom: 30px;
}

/* Removed the nth-child(4) special styling */
/* All cards now follow the grid naturally */

.action-card {
  background: #ffffff;
  border-left: 6px solid #72ae44;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.action-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: #72ae44;
}

.action-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.action-card p {
  font-size: 14px;
  color: #555;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stats-grid,
  .action-cards {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .auto-close-alert {
    transition: opacity 0.5s ease-out;
  }
}

/* End of Dashboard */

/* Homepage */
.custom-header {
  background-color: #000;
  color: #fff;
  padding: 1rem 2rem;
}
.custom-header .navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}
.custom-header .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 0.5rem;
}
.custom-header .nav-link:hover {
  color: #72ae44;
}
.login-btn {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.login-btn:hover {
  background-color: #72ae44;
  color: #000;
}
.slider-wrapper {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.slider-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Darker overlay */
  z-index: 2;
}
.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0; /* Behind overlay */
}
.slider-image.active {
  opacity: 1;
}
.slider-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; /* Above overlay */
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  text-shadow: 1px 1px 6px #000;
}
.slider-caption h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.slider-caption p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5rem;
}
.slider-caption a.btn {
  background-color: var(--primary-color);
  border: none;
  margin-top: 15px;
}
.slider-caption a.btn:hover {
  background-color: #72ae44;
  color: #000;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: white;
  background-color: rgba(0,0,0,0.4);
  border: none;
  z-index: 4;
  padding: 5px 10px;
  cursor: pointer;
}
.slider-arrow:hover {
  background-color: rgba(114,174,68,0.8);
}
.prev-arrow {
  left: 10px;
}
.next-arrow {
  right: 10px;
}
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
}
.slider-dot.active {
  background-color: #72ae44;
}

@media (max-width: 768px) {
  .slider-caption h1 {
    font-size: 1.8rem;
  }
  .slider-caption p {
    font-size: 1rem;
  }
}

.engineering-excellence-section {
  padding: 60px 0;
  background: #ffffff;
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.text-content h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.text-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.image-content {
  order: -1;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
  }
  .image-content {
    order: initial;
    margin-bottom: 30px;
  }
}

/* Custom Styling */
.why-choose-us-section {
    background: #f8f9fa;
    padding: 80px 0;
}
.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}
.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon {
    max-width: 100%;
    height: auto;
}
.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.feature-item p {
    color: #555;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Products Section Styling */
.products-section {
    background: #f8f8f8;
    padding: 80px 0;
}
.section-title {
    color: #72ae44; /* Your green */
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.section-subtitle {
    color: #555;
}
.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(114, 174, 68, 0.1); /* Green tint shadow */
}
.product-body {
    padding: 25px;
    text-align: center;
}
.product-body h3 {
    color: #72ae44; /* Green headings */
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.product-body p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
.btn-learn-more {
    background: transparent;
    color: #72ae44; /* Green text */
    border: 2px solid #72ae44;
    padding: 8px 20px;
    transition: all 0.3s;
}
.btn-learn-more:hover {
    background: #72ae44;
    color: #fff;
}
.btn-view-all {
    background: #72ae44; /* Green button */
    color: #fff;
    padding: 10px 30px;
    border: none;
    transition: all 0.3s;
}
.btn-view-all:hover {
    background: #5d9438; /* Darker green */
    color: #fff;
}
/* Image Container Magic */
.product-image-wrapper {
    height: 220px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    margin-bottom: 15px;
}
.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Maintains aspect ratio */
    transition: transform 0.3s;
}
.product-card:hover .product-image {
    transform: scale(1.03); /* Subtle zoom effect */
}
/* For portrait images (taller than wide) */
.portrait-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* Client Logos Styling */
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}
.client-logo {
    flex: 0 0 calc(20% - 30px);
    max-width: 180px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}
.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Testimonials Styling */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}
.quote-icon {
    font-size: 60px;
    color: #72ae44;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}
.testimonial-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.client-name {
    color: #72ae44;
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.client-role {
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .client-logo {
      flex: 0 0 calc(25% - 30px);
  }
}

@media (max-width: 768px) {
  .client-logo {
      flex: 0 0 calc(33.333% - 30px);
  }
}

@media (max-width: 576px) {
  .client-logo {
      flex: 0 0 calc(50% - 30px);
  }
}

.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-button:hover {
  background: #333 !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .cta-title {
      font-size: 1.8rem !important;
  }
  .cta-subtitle {
      font-size: 1rem !important;
  }
}
/* End of Homepage */

/* Login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.login-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 40px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}
.login-box h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 6px;
  color: #000;
  font-size: 14px;
}
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-btn:hover {
  background-color: #72ae44;
}
.extra-links {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}
.extra-links a {
  color: var(--primary-color);
  text-decoration: none;
}
.extra-links a:hover {
  color: #72ae44;
}
/* End of Login */


/* Work report */
.work-report-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    color: #000;
}

/* Header */
.work-report-header h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 5px;
}

.work-report-header .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
}

.work-report-header .description {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-field textarea {
    resize: vertical;
}

/* Error messages */
.error-message {
    color: red;
    font-size: 13px;
}

/* Time fields layout */
.time-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.time-field {
    flex: 1;
}

.time-label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-primary:hover {
    background-color: #1f226a;
}

.btn-cancel {
    background-color: #ccc;
    color: #000;
}

.btn-cancel:hover {
    background-color: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
    .time-fields {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .auto-close-alert {
    transition: opacity 0.5s ease-out;
    }
}

/* End of work report */


/* CSS for Labor Management Table */
/* Container */
.labor-management-container {
  padding: 40px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

/* Header */
.labor-header .header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.labor-header h1 {
  font-size: 28px;
  margin: 0;
}

.add-labor-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.add-labor-btn .btn-icon {
  margin-right: 6px;
}

/* Section */
.labor-section {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.section-description {
  font-size: 14px;
  color: #666;
}

/* Filters */
.filters-container {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-field .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
}

.search-input {
  padding: 8px 12px 8px 30px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

.filter-field select,
.filter-btn,
.filters-form button[type="reset"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.filter-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
}

.filters-form button[type="reset"] {
  background: #e0e0e0;
}

/* Table */
.labor-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.labor-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.labor-table th,
.labor-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.labor-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.name-cell .labor-name {
  font-weight: 600;
}

.contact-info .phone {
  display: block;
  color: #333;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: #fff;
  display: inline-block;
}

.status-active {
  background-color: #28a745;
}

.status-inactive {
  background-color: #dc3545;
}

.actions-menu {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.view-btn { color: #17a2b8; }
.edit-btn { color: #ffc107; }
.delete-btn { color: #dc3545; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #777;
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
}

/*View single user*/
.labor-management-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

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

.header-content h1 {
  font-size: 24px;
  margin: 0;
}

.back-btn {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  margin-bottom: 10px;
  display: inline-block;
}

.back-btn:hover {
  text-decoration: underline;
}

.header-actions .btn {
  padding: 8px 14px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

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

.user-profile-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #888;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.profile-info .specialization {
  font-size: 14px;
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background-color: #d1ecf1;
  color: #0c5460;
}

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

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

.profile-details {
  margin-top: 10px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.detail-item label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
}

.detail-item span {
  font-size: 14px;
  color: #222;
}

.full-width {
  grid-column: 1 / -1;
}

.documents-section {
  margin-top: 30px;
}

.documents-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.documents-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.document-item {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  flex: 1 1 200px;
}

.document-link {
  display: inline-block;
  margin-top: 5px;
  color: #007bff;
  text-decoration: none;
}

.document-link:hover {
  text-decoration: underline;
}


.view-user-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.user-info-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.user-info-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

.user-info-table td {
    padding: 10px;
    vertical-align: top;
}

.user-info-table td.label {
    font-weight: bold;
    width: 40%;
    color: #555;
}

.user-info-table td.value {
    width: 60%;
    color: #222;
}

/* Reports Table Styles */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.report-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a3dc9 100%);
    color: white;
    padding: 15px;
    text-align: left;
}

.report-table th:first-child {
    border-top-left-radius: 12px;
}

.report-table th:last-child {
    border-top-right-radius: 12px;
}

.report-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.hours-worked {
    font-weight: bold;
}

.total-hours {
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
    color: #444;
}
/* Green + Black theme for navbar buttons */
/* Force our button style to override Bootstrap */
.btn.login-btn {
    background: linear-gradient(135deg, #72ae44, #5a9c35) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    margin-left: 12px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(114, 174, 68, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Hover */
.btn.login-btn:hover {
    background: #000 !important;
    color: #72ae44 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* Active click */
.btn.login-btn:active {
    transform: translateY(0) scale(0.98) !important;
    background: #1a1a1a !important;
    color: #72ae44 !important;
    box-shadow: none !important;
}


/* User dashboard styling */
.user-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* Premium neumorphic button with violet-pink gradient */
.submit-report-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 100px;
    font-size: 26px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;

    /* Gradient background */
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    color: #ffffff; /* Text color over gradient */

    /* Neumorphic effect */
    border-radius: 20px;
    box-shadow: 
        10px 10px 20px rgba(0,0,0,0.08),
        -10px -10px 20px rgba(255,255,255,0.2),
        inset 0 0 0 transparent;

    /* Gradient border */
    border: 3px solid;
    border-image: linear-gradient(90deg, #7b2ff7, #f107a3) 1;

    transition: all 0.3s ease;
}

/* Icon styling */
.submit-report-btn .icon {
    font-size: 70px;
    margin-bottom: 15px;
    opacity: 0.85;
}

/* Hover: pressed neumorphism */
.submit-report-btn:hover {
    box-shadow: 
        inset 10px 10px 20px rgba(0,0,0,0.08),
        inset -10px -10px 20px rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.submit-report-btn:active {
    box-shadow: 
        inset 5px 5px 10px rgba(0,0,0,0.1),
        inset -5px -5px 10px rgba(255,255,255,0.2);
    transform: translateY(2px);
}

/* Premium violet gradient text */
.user-dashboard .dashboard-title h1,
.user-dashboard .dashboard-title .subtitle {
    background: linear-gradient(90deg, #7b2ff7, #f107a3); /* Violet-pink gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* For non-Webkit browsers */
    color: transparent; /* fallback */
    display: inline-block;
}

.card .card-header .card-title {
  margin-bottom: 0;
}
.main-header .navbar-nav .nav-item {
  display: flex;
  align-items: center;
}
div.dataTables_wrapper .dataTables_scroll {
  min-height: 490px;
}
table.table-bordered.dataTable td a {
  margin-bottom: 5px;
}