/* General Styles */
body {
  font-family: Poppins, sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
}

.PCStitle {
  color: #fff;
  margin-top: 5%;
  font-size: 14px;
}

/* Navigation Bar */
.navbar {
  background-color: #ff8802;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 5%;
  padding-right: 5%;
}

.nav-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  margin-right: 30px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: 2%;
  margin-top: 3%;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #facc15;
}

/* Logout Button */
.logout-btn {
  background-color: #fff;
  color: #fea726;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
  margin-top: -15%;
}

.logout-btn:hover {
  background-color: #fae5c5;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .navbar {
    padding-left: 5%;
    padding-right: 2%;
  }

  .logo {
    height: 70px;
    margin-right: 15px;
  }

  .PCStitle {
    font-size: 12px;
    display: inline-flex;
  }

  .menu-toggle {
    margin-left: 5px;
    margin-top: -7px;
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 30px;
    background: #fea726;
  }

  .nav-links.hidden {
    display: flex;
  }
}

/* Stage Navigation Tabs */
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
  margin-top: 15px;
  max-width: 100%;
}

.stage-title {
  color: #ff8802;
  font-size: 18px;
  margin-bottom: 3%;
}

.tab-btn {
  background-color: #fff;
  border: none;
  color: #636b6e;
  padding: 20px 20px;
  border-bottom: 2px solid #e4e6f1;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 1%;
}
.tab-btn:hover,
.tab-btn.active {
  color: #f57b21;
  border-bottom: 2px solid #f57b21;
}

/* Main Layout */
/* Default Layout: Desktop View */
.file-case-container {
  display: flex;
  width: 90%;
  margin: 20px auto 5%;
  gap: 20px;
  color: #636b75;
  flex: 1;
  justify-content: center;
}

/* Log Tracker */
.logs-tracker {
  width: 50%;
  background: white;
  padding: 20px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

#logsList li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #444;
  line-height: 1.5em;
}

#logsList li a {
  text-decoration: underline;
  color: #ff8802;
}

/* Scrollable Logs */
#logsList {
  overflow-y: auto;
  padding: 15px;
  margin: 0;
  list-style: none;
  flex-grow: 1;
  max-height: 300px; /* adjust if needed */
}

/* Log Tracker Tabs */
.log-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* Mobile & Tablet View */
@media (max-width: 1024px) {
  .file-case-container {
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }

  /* Log Tracker moves on top */
  .logs-tracker {
    width: 90%;
    max-height: 250px;
    align-self: center;
    position: static;
  }

  /* Two-column layout becomes one-column */
  .form-grid,
  .form-grid.columns-2 {
    grid-template-columns: 1fr;
  }

  /* Ensure logs remain scrollable */
  #logsList {
    max-height: 200px;
  }

  .stage-tabs {
    width: 100%;
  }
}

.log-btn {
  background-color: #fff;
  border: none;
  color: #636b6e;
  padding: 10px 18px;
  border-bottom: 2px solid #e4e6f1;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}

.log-btn:hover,
.log-btn.active {
  color: #f57b21;
  border-bottom: 2px solid #f57b21;
}

/* Form Container */
.form-container {
  width: 90%;
  background: white;
  padding: 5%;
  border-radius: 8px;
}

/* Form Section Titles */
.form-section-title {
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  background-color: #ff8802;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 25px;
}

/* Grid Layout for Two Columns */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 5px;
}

/* Input Fields */
input,
select,
textarea {
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Poppins, sans-serif;
  color: #3d3d3d;
}

/* Dropdown Styling */
.form-group select {
  background: white;
  font-size: 14px;
}

/* Two-column Layout for "Complain Received By" & "Additional Information Available" */
.form-grid.columns-2 {
  grid-template-columns: 1fr 1fr;
}

.form-grid.columns-2 .form-group {
  margin-bottom: 20px; /* Extra spacing for better readability */
}

/* Radio Buttons */
.radio-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
}

/* Text Block for Uploaded Files & Rejected Comments */
.text-block {
  max-width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  min-height: 60px;
  font-size: 14px;
  color: #555;
}

/* Read-Only Styling for Rejected Comments */
.text-block.readonly {
  background: #f3f3f3;
  color: #777;
  cursor: not-allowed;
  border: 1px solid #ddd;
}

/* Prevent Textarea from Being Resized */
textarea.text-block {
  resize: none;
}

/* Buttons */
.next-btn,
.prev-btn,
.submit-btn,
.approve-btn,
.reject-btn {
  padding: 12px 30px;
  cursor: pointer;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: bold;
}

.next-btn {
  background-color: #ff8802;
  color: white;
  width: 100%;
}

.next-btn:hover {
  background-color: #feb562;
}

.prev-btn {
  background-color: #004a99;
  color: white;
}

.submit-btn {
  background-color: #51ae46;
  color: white;
}

.approve-btn {
  background-color: #51ae46;
  color: white;
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}

div#submitModal {
  align-content: center;
}

.large-textarea {
  height: 70px;
  resize: vertical; /* allows manual resizing */
}

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

  .form-grid.columns-2 {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 100%;
    max-width: 80%;
  }
}

.footer {
  text-align: center;
  padding: 1rem;
  background-color: #f57b21;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 2rem;
}
