/* public/css/style.css */

/* General Body Styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Modern system font stack */
  background-color: #f8f9fa; /* Fallback background */
  background-image: linear-gradient(to top, #f2f4f6, #ffffff); /* Subtle gradient */
  color: #212529; /* Bootstrap's default dark text */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px; /* Base font size */
  line-height: 1.6; /* Improved readability */
}

/* --- Particles.js Container Styling --- */
#particles-js {
  position: fixed; /* Use fixed to cover viewport even when scrolling */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Place it behind all other content */
  background-color: #e9ecef; /* Background color visible behind particles */
  /* Optional: Add a subtle background image behind particles if desired */
  /* background-image: url('/images/your-background.jpg'); */
  /* background-size: cover; */
  /* background-position: center center; */
}

/* Ensure content is above particles */
.navbar, .main-container, .footer {
  position: relative; /* Or use z-index > 0 if needed */
  z-index: 1;
}
/* --- End Particles.js Styling --- */


/* Navbar Styling */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
  font-weight: 600; /* Slightly bolder */
}

/* Main Content Container */
.main-container {
  flex: 1; /* Allows footer to stick to bottom */
  padding-top: 2.5rem; /* More space from navbar */
  padding-bottom: 2.5rem;
}

/* Card Styling */
.card {
  border: none; /* Remove default border */
  border-radius: 0.5rem; /* Slightly more rounded corners */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Softer, slightly larger shadow */
  margin-bottom: 2rem; /* More space between cards */
  background-color: rgba(255, 255, 255, 0.98); /* Slightly transparent white for effect over particles */
}

/* Ensure cards on particle pages are clearly visible */
body.has-particles .card {
  /* Example: Add a slightly darker backdrop if needed */
   /* background-color: rgba(255, 255, 255, 0.95); */
}


.card-header {
  background-color: #f1f3f5; /* Lighter, softer header background */
  font-weight: 500;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.5rem; /* Match card rounding */
  border-top-right-radius: 0.5rem;
  padding: 1rem 1.25rem; /* Consistent padding */
}

/* Button Styling */
.btn {
    border-radius: 0.3rem; /* Consistent button rounding */
    padding: 0.5rem 1rem; /* Comfortable padding */
    font-weight: 500;
    transition: all 0.2s ease-in-out; /* Smooth transitions for hover/active */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn:hover {
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-primary { background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; border-color: #004085; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; border-color: #bd2130; }
.btn-success { background-color: #28a745; border-color: #28a745; }
.btn-success:hover { background-color: #218838; border-color: #1e7e34; }
.btn-secondary { background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; border-color: #545b62; }


/* Form Styling */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-control, .form-select {
    border-radius: 0.3rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-text {
    font-size: 0.875em;
    color: #6c757d;
}

/* Table Styling */
.table {
  margin-bottom: 0; /* Remove default bottom margin inside cards */
  border-collapse: separate; /* Allows border-radius on table */
  border-spacing: 0;
}
/* Apply border-radius to table corners when inside a card with p-0 */
.card > .card-body.p-0 > .table {
    border-radius: 0 0 0.5rem 0.5rem; /* Match card rounding at bottom */
    overflow: hidden; /* Clip content to rounded corners */
}
.table thead th {
  background-color: #f8f9fa; /* Clean header background */
  border-bottom-width: 2px;
  border-color: #dee2e6;
  padding: 0.9rem 1rem; /* More padding */
  vertical-align: bottom;
  font-weight: 600; /* Bolder headers */
  color: #495057;
}
.table tbody tr:last-child td {
    border-bottom: none; /* Remove bottom border on last row */
}
.table td, .table th {
    padding: 0.9rem 1rem; /* Consistent padding */
    vertical-align: middle; /* Align content vertically */
    border-top-width: 1px; /* Ensure consistent borders */
}
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05); /* Subtle hover effect */
  cursor: default; /* Indicate rows aren't clickable unless they are */
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02); /* Very subtle stripe */
}
/* Responsive tables */
.table-responsive {
    border-radius: 0.5rem; /* Round corners for the wrapper */
    margin-bottom: 1rem; /* Add space below responsive table */
}


/* Feedback Page Specific Styles */
#stars {
    margin-bottom: 2.5rem !important; /* More space below stars */
}
#stars .star {
  font-size: 3rem; /* Larger stars */
  cursor: pointer;
  color: #ced4da; /* Lighter initial color */
  margin: 0 0.4rem;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
#stars .star:hover {
  transform: scale(1.2); /* Slightly bigger hover */
  color: #ffc107; /* Yellow on hover */
}
#stars .star.selected {
  color: #ffc107; /* Solid yellow when selected */
  transform: scale(1.15); /* Keep slightly larger */
}

#feedback-form textarea {
  resize: vertical; /* Allow vertical resize only */
  min-height: 120px; /* Ensure decent initial size */
}
#thank-you .alert,
#redirecting-message .alert {
  font-size: 1.15rem;
  padding: 1.25rem;
}
#thank-you i,
#redirecting-message i {
    margin-right: 0.5rem;
}

/* Login Page Specific Styles */
.login-container {
  max-width: 450px;
  margin: auto;
  padding: 15px; /* Ensure padding on small screens */
}
/* Center login elements vertically when particles are active */
body.has-particles.d-flex {
    /* Use flex utilities from body tag */
}

/* Footer */
.footer {
  background-color: #e9ecef;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: auto; /* Pushes footer to the bottom */
  border-top: 1px solid #dee2e6;
}