@keyframes service-bg-change {
  0% {
    background-image: url(images/Longos.jpg);
  }
  50% {
    background-image: url(images/Longos2.jpg);
  }
  100% {
    background-image: url(images/Longos3.jpg);
  }
}

/* Import font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Orbitron", sans-serif;
}

#staff-dashboard,
#admin-dashboard,
#resident-container,
#tracking-container,
#request-form-container,
#complaint-form-container,
#other-form-container {
  background-color: #ffffff !important;
  border-radius: 12px;
  color: #000;
  overflow-y: auto;
  max-height: calc(100vh - 150px);
}

body {
  background: #b740fa;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

/* Status Bar (only shown after login) */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #55185d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 100px;
}

.status-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}

.website-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  color: white;
  margin: 0;
}

.status-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-btn,
.logout-btn {
  background-color: #ffd524;
  border: none;
  color: #2c003e;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.notification-count {
  background: white;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.logout-icon,
.notif-icon {
  font-size: 1.2rem;
  display: inline-block;
  height: 30px;
  width: 30px;
}

/* Split container for login/signup/role selection pages */
.left-section {
  flex: 1;
  background: url("images/Longos.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  color: #f0f0f0;
  font-family: "Roboto", sans-serif;
  position: relative;
  min-height: 300px;
  animation: service-bg-change 20s infinite ease-in-out;
}

.left-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.left-section > * {
  position: relative;
  z-index: 2;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.website-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
  font-size: 0.9em;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#split-screen-container {
  width: 100%;
  min-height: 100vh;
  display: block;
}

.split-container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.form-side {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  order: 1;
}

/* Full screen container for other pages */
#full-screen-container {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  background-color: #b740fa;
  display: none;
  padding-top: 120px;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  color: #fff;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  color: #000000; 
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.8rem;
}

.header h2 {
  color: #ffffff;
  font-size: 1rem;
}

.header h3 {
  color: #ffd524;
  font-size: 1.5rem;
}

/* Form Title Styling Fixes */
#request-form-container .header h2,
#complaint-form-container .header h2,
#other-form-container .header h2 {
  color: #000000 !important;
  font-size: 1.5rem !important;
  margin-bottom: 15px !important;
  text-align: center !important;
  font-weight: bold !important;
}

/* Form Container Styling */
#request-form-container,
#complaint-form-container,
#other-form-container {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Form Label Styling */
#request-form-container .form-group label,
#complaint-form-container .form-group label,
#other-form-container .form-group label {
  color: #000000 !important;
  font-weight: 500;
}

/* Form Input Styling */
#request-form-container input,
#request-form-container select,
#request-form-container textarea,
#complaint-form-container input,
#complaint-form-container select,
#complaint-form-container textarea,
#other-form-container input,
#other-form-container select,
#other-form-container textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #cccccc !important;
  padding: 10px;
  border-radius: 5px;
}

.nav-controls,
.form-container,
.stats,
.service-options,
.role-options {
  margin-top: 20px;
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #000000;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav-btn:hover {
  background-color: rgba(157, 45, 255, 0.651);
}

/* Notification Area */
.notification-area {
  position: relative;
  display: inline-block;
}

#notif-icon {
  background-color: #b740fa;
  color: #b740fa;
  border: none;
  padding: 10px 10px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

#notif-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#notif-count {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  position: absolute;
  top: -5px;
  right: -5px;
}

.notif-panel {
  background-color: #ffd524;
  color: #000000;
  position: absolute;
  top: 45px;
  right: 0;
  width: 280px;
  border: 1px solid #e101ff;
  border-radius: 10px;
  box-shadow: 0 0 10px #55185d;
  z-index: 1000;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

#notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#notif-list li {
  border-bottom: 1px solid #45a29e44;
  padding: 8px;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #ffd524;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin-top: 10px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #000000;
}

.admin-btn {
  background-color: #ffd524;
  margin: 5px;
}

.admin-btn:hover {
  background-color: #ffd524;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #000000;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Password toggle */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 60%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #000000;
  padding: 5px;
}

/* Cards */
.role-card,
.service-card,
.stat-card {
  background-color: #ffd524;
  border-radius: 12px;
  padding: 20px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
}

.role-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  background-color: #ffd524;
}

.role-card h3,
.service-card h3 {
  background-color: #ffd524;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.role-card p,
.service-card p {
  color: #000000;
  font-size: 0.9rem;
}

.stat-card h3 {
  color: #000000;
  font-size: 1rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #000000;
}

/* Grid Layouts */
.role-options,
.service-options,
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.admin-status-board
/* Tables */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  background-color: rgba(31, 40, 51, 0.5);
  padding: 10px;
}

.tracking-table,
.submission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.85em;
}

.tracking-table th,
.submission-table th {
  background-color: #b740fa;
  color: #ffffff;
  padding: 10px 25px;
  text-align: left;
  border-bottom: 2px solid #ffd524;
  font-size: 0.9em;
}
.tracking-table th,
.tracking-table td,
.submission-table th,
.submission-table td {
  white-space: nowrap;
}

.tracking-table td,
.submission-table td {
  background-color: #55185d;
  color: white;
  padding: 10px 12px;
  border-bottom: 3px solid #ffffff;
  font-size: 0.85em;
}

.tracking-table tr:last-child td,
.submission-table tr:last-child td {
  border-bottom: none;
}

.tracking-table tr:hover td,
.submission-table tr:hover td {
  background-color: #1f2833;
}

/* Action buttons with icons */
.action-btn {
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 3px;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-btn:hover {
  opacity: 0.8;
}

.action-icon {
  width: 16px;
  height: 16px;
}

/* Status Colors */
.status-pending {
  color: #f39c12;
}
.status-processing {
  color: #3498db;
}
.status-completed {
  color: #2ecc71;
}
.status-rejected {
  color: #e74c3c;
}

/* Tab Navigation */
.tab-btn {
  padding: 8px 15px;
  background: transparent;
  border: none;
  color: #000000;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  margin-right: 5px;
}

.tab-btn.active {
  border-bottom: 3px solid #d9cb00;
  font-weight: bold;
  color: #fff000;
}

.tab-btn:hover:not(.active) {
  color: #fff000;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Admin Status Board */
.admin-status-board {
  margin-top: 30px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid #ffd524;
}

.admin-status-board h2 {
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.3rem;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hover Button Effects */
.service-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.service-options .box {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 300px;
  overflow: hidden;
  transition: all 0.5s ease;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-options .box:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.service-options .box .service-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.service-options .box .imgBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.service-options .box .imgBx:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(22, 96, 136, 0.7),
    rgba(0, 0, 0, 0.7)
  );
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-options .box:hover .imgBx:before {
  opacity: 1;
}

.service-options .box .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-in-out;
}

.service-options .box .imgBx:hover img {
  transform: scale(1.2);
}

.service-options .box .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  box-sizing: border-box;
  color: white;
  text-align: left;
}

.service-options .box .content .title {
  font-size: 20px;
  margin-bottom: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.service-options .box .content p {
  font-size: 13px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.1s;
}

.service-options .box:hover .content .title,
.service-options .box:hover .content p {
  transform: translateY(0);
  opacity: 1;
}

/* Update & View button styling */
.update-btn, .view-btn, .delete-btn {
  background: linear-gradient(90deg, #e101ff, #b740fa);
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.update-btn:hover, .view-btn:hover, .delete-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #b740fa;
}

/* Status select dropdown */
.status-select {
  padding: 6px;
  border-radius: 4px;
  background-color: #ffffff;
  color: #555555;
  border: 1px solid #555555;
  cursor: pointer;
  font-size: 0.8em;
}

.status-select:focus {
  outline: none;
  border-color: #00c6ff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: linear-gradient( #ffffff, #b740fa);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #b740fa;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(157, 45, 255, 0.651);
  position: relative;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #b740fa;
}

.modal-header h2 {
  color: #000000;
  font-size: 1.3rem;
}

.close-btn {
  color: #000000;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
  color: #e74c3c;
  text-decoration: none;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px 5px;
}

.item-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.item-details p {
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(31, 40, 51, 0.5);
  border-radius: 5px;
  font-size: 0.9em;
}

.item-details p strong {
  color: #fff000;
}

.modal-footer {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #fff000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #b740fa;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #55185d;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .split-container {
    flex-direction: row;
  }

  .form-side {
    order: 0;
    padding: 40px;
  }

  .left-section {
    min-height: 100vh;
  }

  .logo {
    width: 200px;
  }

  .website-title {
    font-size: 2.5em;
  }

  .description {
    font-size: 1em;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header h3 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .service-options {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .service-options .box {
    width: 300px;
  }

  .service-options .box .content .title {
    font-size: 24px;
  }

  .service-options .box .content p {
    font-size: 14px;
  }

  .modal-content {
    width: 80%;
    padding: 25px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    padding: 30px;
  }

  .role-options,
  .service-options,
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .service-options {
    justify-content: space-between;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .status-bar {
    padding: 10px 15px;
    height: 80px;
  }

  .website-title {
    font-size: 1.5rem;
  }

  .status-controls {
    gap: 8px;
  }

  .notification-btn,
  .logout-btn {
    padding: 8px 10px;
  }

  .logout-icon,
  .notif-icon {
    height: 24px;
    width: 24px;
  }

  .left-section {
    padding: 20px;
  }

  .logo {
    width: 120px;
    margin-bottom: 15px;
  }

  .website-title {
    font-size: 1.8em;
  }

  .description {
    font-size: 0.8em;
  }

  .container {
    padding: 15px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header h2 {
    font-size: 0.9rem;
  }

  .role-card,
  .service-card,
  .stat-card {
    padding: 15px;
  }

  .role-card h3,
  .service-card h3 {
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 15px;
  }
}

/* Very small devices (landscape phones, less than 576px) */
@media (max-width: 360px) {
  .website-title {
    font-size: 1.2rem;
  }

  .status-controls {
    gap: 5px;
  }

  .notification-btn,
  .logout-btn {
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .left-section {
    padding: 15px;
  }

  .logo {
    width: 100px;
  }

  .role-options,
  .service-options,
  .stats {
    grid-template-columns: 1fr;
  }

  .service-options .box {
    height: 250px;
  }

  .service-options .box .content .title {
    font-size: 18px;
  }

  .service-options .box .content p {
    font-size: 12px;
  }
}
