* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  /* overflow: hidden; <--- REMOVED to fix global scrolling */
}

/* Marks selection styling */
.marks-select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  margin-left: 10px;
  min-width: 100px;
}

.marks-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.marks-select option {
  padding: 8px;
}

.question-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.question-text-input {
  flex: 1;
}

.question-type-select {
  min-width: 150px;
}

header {
  background-color: #6D376D;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.logo-title h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

.search-sort {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-sort input {
  padding: 10px 15px 10px 40px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  flex: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: rgba(255, 255, 255, 0.9);
}

.search-sort input:focus {
  outline: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  background-color: white;
}

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

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0 10px;
}
.container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Styles specific to the home page layout */
.home-container {
  align-items: flex-start;
}

.home-container .filters {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
}

@media screen and (max-width: 768px) {
  .home-container .filters {
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .home-container .filters.active {
    left: 0;
    width: 250px;
        top: 80px;
  }

  /* Hide filters when scrolling */
  .scrolling .home-container .filters.active {
    left: -100%;
  }
}

@media screen and (max-width: 768px) {
  .home-container .filters {
    width: 350px;
  }
}

.home-container .job-listings {
  flex: 1;
  padding-right: 15px;
}

/* Generic filter styles */
.filters {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #6D376D;
  font-weight: 600;
}

.filter-group label {
  display: block; /* This ensures each label is on its own line */
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #6D376D;
}

.job-listings {
  flex: 1;
}

.job-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 25px;
  border-left: 4px solid #6D376D;
  transition: 0.2s;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.job-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.job-title-link {
  color: #6D376D;
  text-decoration: none;
}

.job-title-link:hover {
  color: #8a4b8a;
  text-decoration: underline;
}

.job-date {
  text-align: right;
  font-size: 14px;
  color: #555;
}

.job-location {
  margin-top: 8px;
  color: #444;
  font-size: 14px;
}

.qualifications {
  padding-left: 20px;
  margin: 10px 0;
}

.qualifications li {
  margin-bottom: 5px;
  font-size: 15px;
}

.read-more {
  color: #6D376D;
  text-decoration: none;
  font-size: 14px;
}

.job-details-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.job-details-header {
  background-color: #f8f8f8;
  padding: 30px 40px;
  position: relative;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.job-details-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  max-width: 70%;
  line-height: 1.3;
}

.job-details-meta {
  color: #555;
  font-size: 16px;
  margin-bottom: 15px;
}

.apply-button {
  background-color: #FF9900;
  color: white;
  border: none;
  padding: 12px 40px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
}

.apply-button:hover {
  background-color: #e68a00;
  box-shadow: 0 6px 12px rgba(255, 153, 0, 0.4);
  transform: translateY(-53%);
}

.job-details-content {
  display: flex;
  padding: 30px 40px;
  background: white;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  border-radius: 0 0 12px 12px;
  gap: 40px;
}

.job-details-main {
  flex: 3;
}

.job-details-sidebar {
  flex: 1;
  background-color: #fafafa;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-self: flex-start;
}

.job-details-section {
  margin-bottom: 35px;
  line-height: 1.6;
}

.job-details-section h2 {
  color: #6D376D;
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

.job-details-section p {
  color: #444;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.job-details-section ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.job-details-section li {
  margin-bottom: 10px;
  color: #444;
  font-size: 16px;
}

.job-details-sidebar h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #6D376D;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.job-details-sidebar p {
  margin: 12px 0;
  color: #444;
  font-size: 15px;
}

.thin-divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 12px 0;
}

.job-details-sidebar .location-icon,
.job-details-sidebar .team-icon,
.job-details-sidebar .category-icon {
  color: #FF9900;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.related-jobs {
  margin-top: 30px;
  padding: 25px;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-jobs h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #6D376D;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.related-job-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  transition: transform 0.2s ease;
}

.related-job-item:hover {
  transform: translateX(5px);
}

.related-job-title {
  color: #6D376D;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.related-job-location {
  margin: 5px 0;
  color: #444;
  font-size: 14px;
}

.related-job-date, .related-job-update {
  margin: 3px 0;
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.application-container {
  max-width: 800px;
  margin: 30px auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.application-header {
  background-image: linear-gradient(135deg, #6D376D, #9b4a9b);
  padding: 10px 35px;
  border-bottom: none;
  position: relative;
  color: white;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.application-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="white" opacity="0.3"/><circle cx="30" cy="40" r="4" fill="white" opacity="0.2"/><circle cx="70" cy="30" r="3" fill="white" opacity="0.25"/><circle cx="45" cy="80" r="2" fill="white" opacity="0.2"/><circle cx="90" cy="15" r="4" fill="white" opacity="0.15"/></svg>');
  opacity: 0.4;
  z-index: 0;
  animation: particleMove 60s linear infinite;
}

@keyframes particleMove {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 500px; }
}

.application-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  animation: pulse 10s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.05); opacity: 0.15; }
  100% { transform: scale(1); opacity: 0.1; }
}

.application-header h2 {
  margin: 0 0 15px 0;
  font-size: 28px;
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: fadeInDown 0.8s ease-out;
}

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

.job-id {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 18px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}

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

.application-header:hover::after {
  animation-play-state: paused;
}

.application-content {
  padding: 35px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #444;
}

.form-group label::after {
  content: "*";
  color: #FF9900;
  margin-left: 4px;
}

.form-group label[for="coverLetter"]::after {
  content: " (Optional)";
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6D376D;
  box-shadow: 0 0 0 3px rgba(109, 55, 109, 0.1);
  outline: none;
  background-color: white;
}

.form-group input[type="file"] {
  padding: 12px 0;
  background-color: #f8f8f8;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.3s;
}

.form-group input[type="file"]:hover {
  border-color: #6D376D;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.form-checkbox input {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #6D376D;
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 15px;
}

.form-actions {
  display: flex;
  margin-top: 40px;
  align-items: center;
  gap: 300px;
}

/* Job Post Form */
.job-post-form {
  background-color: #fff;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
}

/* 🔽 Mobile-responsive tweaks for Create Job Post form */
@media (max-width: 600px) {
  /* पूरा फ़ॉर्म किनारों से थोड़ा कम padding ले */
  .job-post-form {
    padding: 20px 15px;
  }

  /* दो-कॉलम row अब एक-के-नीचे-एक हो */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Actions (Back व Submit) को vertical स्टैक करें */
  .form-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;    /* बटन पूरे चौड़ाई लें */
  }

  .form-actions .back-button,
  .form-actions .submit-button {
    width: 100%;
    text-align: center;
  }
}

.btn.create-job {
  background-color: #6D376D;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn.create-job:hover {
  background-color: #5a2d5a;
}

.no-job-posts {
  text-align: center;
  padding: 50px 0;
  color: #777;
}

.no-job-posts i {
  margin-bottom: 15px;
  color: #ddd;
}

.back-button {
  background-color: #f2f3f3;
  color: #333;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.back-button:hover {
  background-color: #e0e0e0;
  transform: translateX(-3px);
}

.submit-button {
  background-color: #FF9900;
  color: white;
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-button:hover {
  background-color: #e68a00;
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.4);
  transform: translateY(-3px);
}

.submit-button i {
  font-size: 16px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  padding-right: 40px;
}

.success-message {
  background-color: #e7f7e7;
  border-left: 4px solid #4CAF50;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 10px;
  display: none;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.success-message i {
  font-size: 50px;
  color: #4CAF50;
  margin-bottom: 15px;
  display: block;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.5s;
}

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

.form-group input:invalid:focus,
.form-group select:invalid:focus {
  border-color: #6D376D;
  box-shadow: #6D376D;
}

.error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-banner {
  background-image: linear-gradient(rgba(109, 55, 109, 0.85), rgba(109, 55, 109, 0.85)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-banner-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-banner-content p {
  font-size: 16px;
  opacity: 0.9;
}

.form-icon {
  margin-right: 10px;
  color: #6D376D;
  width: 20px;
  text-align: center;
}

.file-upload-container {
  margin-bottom: 30px;
}

.file-upload-box {
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: #6D376D;
  background-color: #f5f0f5;
}

.file-upload-box input[type="file"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-placeholder {
  padding: 30px 20px;
  text-align: center;
  color: #555;
}

.file-upload-placeholder i {
  font-size: 40px;
  color: #6D376D;
  margin-bottom: 15px;
}

.file-upload-placeholder p {
  margin: 5px 0;
  font-size: 16px;
  font-weight: 500;
}

.file-upload-placeholder span {
  font-size: 14px;
  color: #888;
  display: block;
  margin-top: 5px;
}

.file-upload-box.has-file {
  border-style: solid;
  border-color: #6D376D;
  background-color: #f5f0f5;
}

@media screen and (max-width: 768px) {
  .search-sort input {
    padding: 8px 12px 8px 45px;
    font-size: 13px;
    width: 60%;
    margin-left: 20px;
    margin-top: -10px;
  }
  .search-icon {
    left: 40px;
    font-size: 14px;
    top: 30%;
  }
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .filters {
    width: 100%;
    display: none;
    margin-bottom: 20px;
  }

  .filters.active {
    display: block;
  }

  .hamburger {
    display: block;
    color: white;
  }

  .search-sort {
    width: 100%;
    margin-top: 10px;
  }
  .job-details-content {
    flex-direction: column;
  }
  
  .job-details-main {
    padding-right: 0;
  }
  
  .job-details-sidebar {
    margin-top: 30px;
  }
  
  .job-details-title {
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  .apply-button {
    position: relative;
    display: block;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }
  .application-container {
    margin: 20px 15px;
    border-radius: 10px;
  }
  
  .application-header {
    padding: 25px;
  }
  
  .application-content {
    padding: 25px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .back-button,
  .submit-button {
    width: 100%;
    text-align: center;
  }
  
  .back-button {
    order: 2;
  }
  
  .submit-button {
    order: 1;
  }

  .application-header h1 {
    font-size: 4px;
  }
  
  .job-id {
    font-size: 16px;
  }
}

  
/* Dashboard Styles */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.dashboard-container h1 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
}

.dashboard-container h1 i {
  color: #FF9900;
}
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 60px);
  gap: 0px; /* Added gap between sidebar and content */
  padding: 15px; /* Added padding around container */
}

.dashboard-sidebar {
  width: 250px;
  background-color: #5a2d5a;
  color: #fff;
  padding-top: 30px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  margin-right: 20px; /* Added margin to separate from content */
}

.dashboard-content {
  flex: 1;
  padding:2px;
  background-color: #f5f5f5;
  overflow-y: auto;
  border-radius: 10px; /* Added rounded corners */
}

@media screen and (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    padding: 10px;
  }

  .dashboard-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.dashboard-sidebar {
  width: 250px;
  background-color: #5a2d5a;
  color: #fff; 
  padding-top: 30px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.sidebar-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.sidebar-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.sidebar-item:hover {
  background-color: rgba(255,255,255,0.1);
}

.sidebar-item.active {
  background-color: #6D376D;
  border-left: 4px solid #fff;
}

.dashboard-content {
  flex: 1;
 
  background-color: #f5f5f5;
  overflow-y: auto;
}

/* Dashboard Sections */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.dashboard-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Job Posts List */
.job-posts-list {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 20px;
  overflow: hidden;
}

#jobPostsTable {
  width: 100%;
  border-collapse: collapse;
}

#jobPostsTable th,
#jobPostsTable td {
  text-align: left;
  border-bottom: 1px solid #eee;
}

#jobPostsTable th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.job-post-row:hover {
  background-color: #f9f9f9;
}

.stat-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
  background: #6D376D;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.stat-icon.pending-icon {
  background: #FFC107;
}

.stat-icon.accepted-icon {
  background: #4CAF50;
}

.stat-icon.rejected-icon {
  background: #F44336;
}

.stat-info h3 {
  font-size: 24px;
  margin: 0 0 5px 0;
  color: #333;
}

.stat-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.dashboard-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #6D376D;
  box-shadow: 0 0 0 3px rgba(109, 55, 109, 0.1);
  outline: none;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6D376D;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #6D376D;
  color: #6D376D;
}

.filter-btn.active {
  background: #6D376D;
  color: white;
  border-color: #6D376D;
}

.applications-list {
  overflow-x: auto;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.applications-list table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.applications-list th, 
.applications-list td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.applications-list th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.applications-list tr:last-child td {
  border-bottom: none;
}

.applications-list tr:hover {
  background-color: #f5f0f5;
}

.application-row.accepted {
  background-color: rgba(76, 175, 80, 0.05);
}

.application-row.rejected {
  background-color: rgba(244, 67, 54, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background-color: #FFC107;
  color: #fff;
}

.status-badge.accepted {
  background-color: #4CAF50;
  color: white;
}

.status-badge.rejected {
  background-color: #F44336;
  color: white;
}

.action-buttons {
  
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
}

.btn {
  padding: 5px 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.action-buttons .btn.accept,
.action-buttons .btn.reject,
.action-buttons .btn.reset {
  width: 30px;
  height: 30px;
  padding: 0px;
  justify-content: center;
  border-radius: 50%;
}

.action-buttons .btn.accept i,
.action-buttons .btn.reject i,
.action-buttons .btn.reset i {
  font-size: 16px;
  margin: 0;
  
}

.btn i {
  font-size: 12px;
}

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

.btn.accept:hover {
  background-color: #3d9140;
  transform: translateY(-2px);
}

.btn.reject {
  background-color: #F44336;
  color: white;
}

.btn.reject:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}

.btn.reset {
  background-color: #9E9E9E;
  color: white;
}

.btn.reset:hover {
  background-color: #757575;
  transform: translateY(-2px);
}

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

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

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

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

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

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

.no-applications {
  text-align: center;
  padding: 50px 30px;
  color: #666;
  background: #f9f9f9;
  border-radius: 10px;
}

.no-applications i {
  font-size: 50px;
  color: #ddd;
  margin-bottom: 15px;
}

.resume-link {
  color: #6D376D;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.3s ease;
  width: 100%;
  
}

.resume-link:hover {
  color: #FF9900;
  text-decoration: underline;
}

/* Footer Styles */
.site-footer {
  background-color: #6D376D;
  color: white;
  padding: 50px 0 0 0;
  margin-top: 50px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.footer-logo h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 600;
}

.footer-logo p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #FF9900;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #FF9900;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  opacity: 0.8;
}

.footer-links a:hover {
  color: #FF9900;
  transform: translateX(5px);
  opacity: 1;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: #FF9900;
  width: 20px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #FF9900;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.social-icons i {
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
    margin-bottom: 20px;
  }
  
  .footer-links h4::after,
  .footer-contact h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

.edit-page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.edit-page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

@media screen and (max-width: 768px) {
  .dashboard-container {
    padding: 20px 15px;
  }
  
  .dashboard-stats {
    flex-direction: column;
  }
  
  .stat-card {
    width: 100%;
  }
  
  .dashboard-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .applications-list {

    border-radius: 0;
  }
  
  
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
.filter-group label { 
  display: block !important;
   width: 100% !important; 
} 

/* Main Navigation Styles */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Adjust header for new nav */
header {
    justify-content: space-between;
}

.logo-title {
    flex-shrink: 0;
}

.search-sort {
    margin-left: auto; /* Pushes search to the right */
    margin-right: 20px;
}

@media screen and (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav on smaller screens, can be integrated into hamburger later */
    }
    .search-sort {
        margin-left: 0;
    }
}/* Create Form Page Styles */
.container.mt-5 {
    max-width: 800px;
    margin-top: 3rem !important;
    margin-bottom: 3rem;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.container.mt-5 h2 {
    color: #6D376D;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

#createForm .form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

#createForm .form-control,
#createForm .form-select,
#createForm .form-control-file {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#createForm .form-control:focus,
#createForm .form-select:focus {
    border-color: #6D376D;
    box-shadow: 0 0 0 3px rgba(109, 55, 109, 0.15);
    outline: none;
}

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

/* Questions Container */
#questions-container {
    border-top: 1px solid #eee;
    margin-top: 25px;
}

.question-block {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.question-block:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.question-block h5 {
    color: #6D376D;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-block .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.question-block .btn-close:hover {
    opacity: 1;
}

.options-container {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px dashed #ccc;
}

.options-container h6 {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.options-list .input-group {
    margin-bottom: 10px;
}

.options-list .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.options-list .input-group .btn-outline-danger {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: #dc3545;
    color: #dc3545;
    transition: all 0.3s ease;
}

.options-list .input-group .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Buttons */
#createForm .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#createForm .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

#createForm .btn-primary {
    background-color: #6D376D;
    border-color: #6D376D;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(109, 55, 109, 0.2);
}

#createForm .btn-primary:hover {
    background-color: #5a2d5a;
    border-color: #5a2d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(109, 55, 109, 0.3);
}

#createForm .btn-sm.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#createForm .btn-sm.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container.mt-5 {
        padding: 25px;
        margin-top: 2rem !important;
    }

    .container.mt-5 h2 {
        font-size: 1.8rem;
    }

    .question-block {
        padding: 20px;
    }

    #createForm .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}



/* NEW Google Form Style CSS */


.form-builder-container {
    max-width: 770px;
    margin: 30px auto;
    position: relative;
}

.form-builder-header {
    background-color: white;
    border-radius: 8px;
    border-top: 10px solid #6D376D;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-title-input,
.form-description-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    transition: border-bottom-color 0.3s ease;
}

.form-title-input {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
}

.form-description-input {
    font-size: 14px;
    margin-top: 15px;
    color: #5f6368;
    resize: none;
    min-height: 40px;
}

.form-title-input:focus,
.form-description-input:focus {
    outline: none;
    border-bottom: 2px solid #6D376D;
}

.question-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid transparent;
    transition: border-left-color 0.3s ease;
}

.question-card:focus-within {
    border-left-color: #6D376D;
}

.question-content {
    display: flex;
    flex-direction: column;
}

.question-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.question-text-input {
    flex-grow: 1;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-size: 16px;
    color: #202124;
    transition: border-bottom-color 0.3s ease;
}

.question-text-input:focus {
    outline: none;
    border-bottom: 2px solid #6D376D;
}


/* Main Navigation Styles */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 145px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Adjust header for new nav */
header {
    justify-content: space-between;
}

.logo-title {
    flex-shrink: 0;
}

.search-sort {
    margin-left: auto; /* Pushes search to the right */
    margin-right: 20px;
}

@media screen and (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav on smaller screens, can be integrated into hamburger later */
    }
    .search-sort {
        margin-left: 0;
    }
}

.question-type-select {
    min-width: 200px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 14px;
}

.options-container {
    margin-top: 10px;
}

.options-list .option-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    flex-shrink: 0;
}

.option-label-input {
    flex-grow: 1;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 14px;
    color: #5f6368;
}

.option-label-input:focus {
    outline: none;
    border-bottom: 1px solid #6D376D;
}

.remove-option-btn {
    background: none;
    border: none;
    color: #80868b;
    font-size: 20px;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.option-item:hover .remove-option-btn {
    visibility: visible;
    opacity: 1;
}

.add-option-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.add-option-btn {
    background: none;
    border: none;
    color: #6D376D;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}

.question-footer {
    border-top: 1px solid #f1f3f4;
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #f1f3f4;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: #e0e0e0;
}

.required-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3c4043;
}

/* Custom Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #6D376D;
}

input:focus + .slider {
  box-shadow: 0 0 1px #6D376D;
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.add-question-sidebar {
    position: fixed;
    top: 150px;
    left: calc(50% + 385px + 15px); /* Position next to the main container */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 5px;
}

#add-question-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #5f6368;
    font-size: 20px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#add-question-btn:hover {
    background-color: #f1f3f4;
}

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

.save-form-btn {
    background-color: #6D376D;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-form-btn:hover {
    background-color: #5a2d5a;
}

@media (max-width: 900px) {
    .add-question-sidebar {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
}

/* Job Listings Header with Create Button */
.job-listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.job-listings-header h1 {
    margin: 0;
    color: #6D376D;
    font-size: 25px;
}

.job-listings-header .create-job {
  background-color: #6D376D;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  max-width: 200px;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.job-listings-header .create-job:hover {
  background-color: #5a2d5a;
}

/* Form List Table Styles */
.form-list-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.form-list-container h2 {
    color: #6D376D;
    text-align: left;
    font-weight: 700;
}

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

.form-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.form-list-table th,
.form-list-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid #e6e9ed; /* Proper table line */
    vertical-align: middle;
}

.form-list-table thead {
    background-color: #f9fafb;
}

.form-list-table th {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-list-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.form-list-table tbody tr:hover {
    background-color: #f8f9fa;
}

.form-list-table .form-title {
    font-weight: 600;
    color: #6D376D;
}

.form-list-table .form-description {
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #718096;
}

.form-list-table .form-date {
    font-size: 14px;
    color: #718096;
    white-space: nowrap;
}

.form-list-table .form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative; /* For tooltip positioning */
}

.form-list-table .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-list-table .btn-action i {
    font-size: 14px;
}

.form-list-table .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: transparent;
}

.form-list-table .btn-view:hover {
    background-color: #17a2b8;
    color: white;
}

.form-list-table .btn-edit:hover {
    background-color: #ffc107;
    color: #212529;
}

.form-list-table .btn-share:hover {
    background-color: #007bff;
    color: white;
}

.form-list-table .btn-delete:hover {
    background-color: #dc3545;
    color: white;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.page-item .page-link {
    padding: 10px 15px;
    color: #6D376D;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-item:not(:first-child) .page-link {
    border-left: none;
}

.page-item.active .page-link {
    background-color: #6D376D;
    color: white;
    border-color: #6D376D;
    z-index: 1;
}

.page-item:hover:not(.active) .page-link {
    background-color: #f8f9fa;
}

/* Tooltip for share button */
.form-list-table .tooltip-custom {
    position: absolute;
    right: 0;
    top: -35px; /* Position above the button */
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
    display: none;
    white-space: nowrap;
}
.form-list-table .btn-responses:hover {
    background-color: #28a745;
    color: white;
}

.btn.view-response {
  background: linear-gradient(135deg, #6D376D, #9b4d9b);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(109, 55, 109, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

.btn.view-response:hover {
  background: linear-gradient(135deg, #9b4d9b, #6D376D);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(109, 55, 109, 0.4);
}

.btn.view-response i {
  font-size: 16px;
  margin-right: 2px;
}

/* Submitted Status Badge */
.status-badge.submitted {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-badge.submitted i {
  font-size: 14px;
}

/* Hover effect for all status badges */
.status-badge {
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}


/* --- Session Messages --- */
.session-message {
    padding: 15px 20px;
    margin: 15px auto;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    max-width: 960px; /* Adjust to match your content width */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100; /* Ensure it's above other content if necessary */
}

.session-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.session-message.success {
    background-color: #e8f5e8; /* Light green */
    color: #28a745; /* Darker green */
    border: 1px solid #28a745;
}

.session-message.error {
    background-color: #ffebee; /* Light red */
    color: #dc3545; /* Darker red */
    border: 1px solid #dc3545;
}

.session-message.warning {
    background-color: #fff8e1; /* Light yellow */
    color: #ffc107; /* Darker yellow */
    border: 1px solid #ffc107;
}

.session-message.info {
    background-color: #e3f2fd; /* Light blue */
    color: #17a2b8; /* Darker blue */
    border: 1px solid #17a2b8;
}

/* Optional: Add a close button for dismissable messages if you want */

.session-message .close-btn {
    margin-left: auto;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 5px;
}
.session-message .close-btn:hover {
    opacity: 0.8;
}

/* User authentication info styles */
.user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar i {
    font-size: 32px;
    color: #fff;
    opacity: 0.9;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

.user-actions .logout-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.user-actions .logout-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Login page responsive improvements */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .user-actions {
        width: 100%;
        text-align: center;
    }
}

/* Clean version - replace your filter CSS with this */

/* Cross icon for mobile filter close */
.home-container .filters::after {
  content: '×';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: none; /* Hidden by default on desktop */
  z-index: 1001;
  width: 30px;
  height: 30px;
  background: #f0f0f0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}


/* Mobile responsive behavior */
@media screen and (max-width: 768px) {
  .home-container .filters::after {
    display: flex; /* Show cross icon only on mobile */
  }
  
  .home-container .filters::after:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.1);
  }
  
  .home-container .filters {
    position: fixed; /* Fixed position for mobile overlay */
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    width: 350px;
  }

  .home-container .filters.active {
    left: 0;
    top: 80px;
  }
  
  /* Hidden state for mobile */
  .home-container .filters.hidden {
    left: -100% !important;
    transition: left 0.3s ease;
  }
}

/* Accessibility & Compatibility Fixes */

/* Screen reader only text for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Browser compatibility fixes */
.bling-select {
  -webkit-user-select: none; /* Safari support */
  -moz-user-select: none; /* Firefox support */
  -ms-user-select: none; /* IE/Edge support */
  user-select: none;
}

/* Filter compatibility */
.filter-blur {
  -webkit-filter: blur(5px); /* Safari support */
  filter: blur(5px);
}

/* Text wrap compatibility */
.text-wrap {
  overflow-wrap: break-word; /* Safari fallback */
  word-wrap: break-word; /* IE fallback */
  text-wrap: wrap;
}

/* Width stretch compatibility */
.stretch-width {
  width: -webkit-fill-available; /* Edge support */
  width: stretch;
}

/* Scrollbar compatibility */
.scrollable {
  scrollbar-width: thin; /* Firefox */
}

.scrollable::-webkit-scrollbar {
  width: 6px; /* Safari/Chrome */
}

.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Modal close button styles */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

/* Performance optimization - avoid layout triggers in animations */
@keyframes fadeInOptimized {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
