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

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  border-left: 3px solid #000;
}

::-webkit-scrollbar-track {
  background: #FAF8F5;
}

::-webkit-scrollbar-thumb {
  background: #b5f542;
  border: 3px solid #000;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9bd636;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #FAF8F5;
  color: #000000;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Removed Glassmorphism Background Elements */
body::before, body::after {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Neo Brutalist Card Effect */
.card {
  background: #ffffff;
  border-radius: 8px;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px #000;
  padding: 40px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.card h2 {
  color: #000000;
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 800;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h2 {
  margin-bottom: 0;
}

.card-header .btn {
  white-space: nowrap;
}

.card-header > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  color: #000000;
  font-size: 2.8em;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0px #b5f542;
}

.header p {
  color: #000000;
  font-size: 1.2em;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-weight: 800;
  font-size: 1.1em;
  text-transform: uppercase;
}

.form-group p {
  color: #000000;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 3px solid #000;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #000000;
  box-shadow: 4px 4px 0px #000;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #555555;
}

.form-group select option {
  background: #ffffff;
  color: #000000;
  padding: 10px;
}

.form-group input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
  background: #FAF8F5;
}

.form-group input[type="file"]::file-selector-button {
  padding: 8px 16px;
  background: #b5f542;
  color: #000000;
  border: 3px solid #000;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px #000;
}

.form-group input[type="file"]::file-selector-button:hover {
  background: #C7F259;
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #FAF8F5;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

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

/* Buttons */
.btn {
  padding: 14px 28px;
  border: 3px solid #000;
  border-radius: 999px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0px #000;
  color: #000000;
}

.btn:active, .btn:focus {
  outline: none;
}

.btn-primary {
  background: #b5f542;
}

.btn-primary:hover {
  background: #C7F259;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn-success {
  background: #4caf50;
  color: #ffffff;
}

.btn-success:hover {
  background: #45a049;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn-danger {
  background: #f44336;
  color: #ffffff;
}

.btn-danger:hover {
  background: #e53935;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn-warning {
  background: #ffc107;
  color: #000000;
}

.btn-warning:hover {
  background: #ffb300;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn-secondary {
  background: #e0e0e0;
  color: #000000;
}

.btn-secondary:hover {
  background: #d5d5d5;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
  background: #cccccc;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85em;
}

/* Navbar */
.navbar {
  background: #ffffff;
  padding: 20px 40px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px #000;
}

.navbar h2 {
  color: #000000;
  font-size: 1.6em;
  font-weight: 900;
  text-transform: uppercase;
}

.navbar .user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .user-name {
  color: #000000;
  font-weight: 800;
  font-size: 1.1em;
}

.navbar .btn {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.stat-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px #000;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #000;
  background: #b5f542;
}

.stat-card h3 {
  color: #000000;
  font-size: 1em;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.stat-card .stat-number {
  color: #000000;
  font-size: 3em;
  font-weight: 900;
  letter-spacing: -1px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.filter-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9em;
}

.filter-buttons .btn.active {
  background: #b5f542;
  color: #000000;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px #000;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

thead {
  background: #b5f542;
  border-bottom: 3px solid #000;
}

th {
  padding: 18px 15px;
  text-align: left;
  color: #000000;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
  border-right: 3px solid #000;
}

th:last-child {
  border-right: none;
}

td {
  padding: 15px;
  color: #000000;
  border-bottom: 3px solid #000;
  border-right: 3px solid #000;
  font-size: 1em;
  font-weight: 600;
}

td:last-child {
  border-right: none;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: #FAF8F5;
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  color: #000000;
  font-weight: 800;
  padding: 40px 20px !important;
}

.loading {
  text-align: center;
  color: #000000;
  font-weight: 800;
  padding: 40px 20px !important;
}

/* Table Button Styles */
td .btn {
  font-size: 0.8em;
  padding: 6px 12px;
  margin: 3px;
  text-transform: uppercase;
  font-weight: 800;
}

td .btn-sm {
  font-size: 0.75em;
  padding: 5px 10px;
}

/* Status Badges */
.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 800;
  display: inline-block;
  text-align: center;
  border: 3px solid #000;
  box-shadow: 2px 2px 0px #000;
  text-transform: uppercase;
}

.badge.pending {
  background: #ffeb3b;
  color: #000;
}

.badge.verified {
  background: #2196f3;
  color: #fff;
}

.badge.assigned {
  background: #b5f542;
  color: #000;
}

.badge.completed {
  background: #4caf50;
  color: #fff;
}

.badge.high {
  background: #f44336;
  color: #fff;
}

.badge.medium {
  background: #ff9800;
  color: #000;
}

.badge.low {
  background: #8bc34a;
  color: #000;
}

.badge.urgent {
  background: #ff5252;
  color: #fff;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.badge.not-set {
  background: #9e9e9e;
  color: #fff;
}

/* Action Buttons Container */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.action-buttons .btn {
  white-space: nowrap;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch devices */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .btn-sm {
    min-height: 40px;
    min-width: 40px;
  }
  
  td .btn {
    min-height: 44px;
  }
  
  .filter-buttons .btn {
    min-height: 48px;
  }
}

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

.modal.show,
.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #000;
}

.modal-header h3,
.modal-header h2 {
  color: #000000;
  font-size: 1.8em;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.close-modal {
  background: #f44336;
  border: 3px solid #000;
  border-radius: 999px;
  color: #fff;
  font-size: 1.5em;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px #000;
}

.close-modal:hover {
  background: #e53935;
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000;
}

.modal-footer {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 3px solid #000;
}

/* Modal Body */
.modal-body {
  padding: 10px 0;
}

/* Detail Groups in Modals */
.detail-group {
  margin-bottom: 20px;
  background: #FAF8F5;
  padding: 15px;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0px #000;
}

.detail-group label {
  display: block;
  color: #000000;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 900;
}

.detail-group .detail-value {
  color: #000000;
  font-size: 1.1em;
  margin: 0;
  line-height: 1.6;
  font-weight: 600;
}

.detail-group .detail-value strong {
  color: #000000;
  font-weight: 900;
}

.detail-separator {
  height: 3px;
  background: #000;
  margin: 25px 0;
}

/* Request ID Display */
.request-id {
  font-size: 2em;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #b5f542;
  border-radius: 8px;
  border: 3px solid #000;
  letter-spacing: 2px;
  box-shadow: 6px 6px 0px #000;
}

/* Success/Error Messages */
.success-message,
.error-message {
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  font-weight: 800;
}

.success-message {
  background: #4caf50;
  color: #fff;
}

.error-message {
  background: #f44336;
  color: #fff;
}

/* Info Box */
.info-box {
  background: #2196f3;
  color: #fff;
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  font-weight: 800;
}

/* Alert Box */
.alert {
  display: none;
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  font-weight: 800;
  animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert.show {
  display: block;
}

.alert-error {
  background: #f44336;
  color: #fff;
}

.alert-success {
  background: #4caf50;
  color: #fff;
}

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

/* Login Page Specific */
.login-container {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  max-width: 480px;
  width: 100%;
}

/* Text Link */
.text-link {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #b5f542;
  text-underline-offset: 4px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.text-link:hover {
  background: #b5f542;
  text-decoration-color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    max-width: 95%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 2.2em;
  }
  
  .card {
    padding: 25px;
  }
  
  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .navbar h2 {
    font-size: 1.4em;
    text-align: center;
  }
  
  .navbar .user-info {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .navbar .user-info .btn {
    width: 100%;
  }
  
  .card-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .card-header h2 {
    text-align: center;
    font-size: 1.4em;
  }
  
  .card-header > div {
    flex-direction: column;
    width: 100%;
  }
  
  .card-header .btn {
    width: 100%;
    justify-content: center;
  }
  
  .filter-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-buttons .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .table-container {
    overflow-x: scroll;
  }
  
  table {
    min-width: 800px;
  }
  
  .stat-card .stat-number {
    font-size: 2.2em;
  }
  
  .modal-content {
    padding: 25px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header h2 {
    font-size: 1.4em;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }
  
  .header h1 {
    font-size: 1.8em;
  }
  
  .header p {
    font-size: 1em;
  }
  
  .card {
    padding: 20px;
  }
  
  .navbar {
    padding: 15px;
  }
  
  .navbar h2 {
    font-size: 1.2em;
  }
  
  .navbar .user-name {
    font-size: 1em;
  }
  
  .card-header h2 {
    font-size: 1.2em;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 0.9em;
  }
  
  .btn-sm {
    padding: 10px 16px;
    font-size: 0.85em;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-card h3 {
    font-size: 0.95em;
  }
  
  .stat-card .stat-number {
    font-size: 2em;
  }
  
  .request-id {
    font-size: 1.4em;
    padding: 15px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 1em;
    margin-bottom: 8px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px;
  }
  
  .modal-content {
    padding: 20px;
    width: 98%;
  }
  
  .modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  
  .modal-header h2 {
    font-size: 1.2em;
  }
  
  .modal-footer {
    padding-top: 15px;
    margin-top: 15px;
  }
  
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
  }
  
  table th,
  table td {
    font-size: 0.9em;
    padding: 12px 10px;
  }
  
  table td .btn {
    font-size: 0.75em;
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  .alert {
    font-size: 0.95em;
    padding: 15px;
  }
  
  .filter-buttons {
    margin-bottom: 20px;
  }
  
  .filter-buttons .btn {
    font-size: 0.9em;
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 15px;
  }
  
  .navbar h2 {
    font-size: 1.1em;
  }
  
  .card {
    padding: 15px;
  }
  
  .card-header h2 {
    font-size: 1.1em;
  }
  
  .btn {
    font-size: 0.85em;
    padding: 12px 16px;
  }
  
  .stat-card {
    padding: 15px 12px;
  }
  
  .stat-card .stat-number {
    font-size: 1.8em;
  }
  
  table th,
  table td {
    font-size: 0.85em;
    padding: 10px 8px;
  }
  
  table td .btn {
    font-size: 0.75em;
    padding: 6px 10px;
  }
}

.neo-panel {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  border-radius: 8px;
}
