:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light;
  color: #213547;
  background-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #C9A84C;
  text-decoration: inherit;
}

a:hover {
  color: #B8960C;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #C9A84C;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4em;
  }
  button {
    padding: 0.5em 1em;
    font-size: 0.95em;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }
  button {
    padding: 0.4em 0.9em;
    font-size: 0.9em;
  }
}.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Side - Branding */
.login-branding {
  flex: 1;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.branding-content {
  text-align: center;
  z-index: 10;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logo-wrapper {
  margin-bottom: 30px;
}

.logo-circle {
  width: 280px;
  height: 280px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 80px;
  font-weight: 900;
  color: #D4AF37;
  font-family: "Arial Black", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-name {
  font-size: 64px;
  font-weight: 900;
  color: #D4AF37;
  margin: 20px 0 10px 0;
  letter-spacing: 8px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  font-family: "Arial Black", sans-serif;
}

.brand-tagline {
  font-size: 18px;
  color: rgba(212, 175, 55, 0.8);
  margin: 0 0 40px 0;
  font-weight: 300;
  letter-spacing: 2px;
}

.decorative-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: -50px;
  animation-delay: 1s;
}

.circle-3 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}
.feature-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(212, 175, 55, 0.1);
  padding: 15px 30px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateX(10px);
}

.feature-icon {
  font-size: 24px;
}

.feature-text {
  color: #D4AF37;
  font-weight: 600;
  font-size: 16px;
}

/* Right Side - Login Form */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f8f9fa;
}

.login-box {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.login-title {
  margin: 0 0 10px 0;
  color: #333;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.login-subtitle {
  text-align: center;
  color: #666;
  margin: 0 0 30px 0;
  font-size: 15px;
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #fcc;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: #C9A84C;
  background: white;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group input::placeholder {
  color: #999;
}

.login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.4);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-info {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.login-info p {
  margin: 8px 0;
}

.login-info code {
  background-color: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
  color: #C9A84C;
  font-weight: 700;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }
  .login-branding {
    padding: 40px 30px;
    min-height: 40vh;
  }
  .logo-circle {
    width: 100px;
    height: 100px;
  }
  .logo-text {
    font-size: 50px;
  }
  .brand-name {
    font-size: 42px;
    letter-spacing: 4px;
  }
  .brand-tagline {
    font-size: 14px;
  }
  .feature-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
  }
  .feature-item {
    padding: 10px 20px;
  }
  .feature-icon {
    font-size: 18px;
  }
  .feature-text {
    font-size: 14px;
  }
  .login-form-section {
    padding: 40px 20px;
  }
  .login-box {
    padding: 40px 30px;
  }
  .login-title {
    font-size: 26px;
  }
  .circle-1,
  .circle-2,
  .circle-3 {
    display: none;
  }
}
@media (max-width: 480px) {
  .login-branding {
    padding: 30px 20px;
    min-height: 35vh;
  }
  .logo-circle {
    width: 80px;
    height: 80px;
  }
  .logo-text {
    font-size: 40px;
  }
  .brand-name {
    font-size: 32px;
    letter-spacing: 3px;
  }
  .brand-tagline {
    font-size: 12px;
  }
  .feature-list {
    gap: 10px;
  }
  .feature-item {
    flex-direction: column;
    gap: 5px;
    padding: 10px 15px;
  }
  .login-box {
    padding: 30px 20px;
  }
  .login-title {
    font-size: 24px;
  }
  .login-subtitle {
    font-size: 13px;
  }
}.uploaded-files-container {
  width: 100%;
  padding: 15px;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  width: 100%;
}

.files-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.files-count {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.filters-section {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 200px;
}

.filter-group:first-child {
  flex: 2;
  min-width: 300px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #C9A84C;
}

.clear-filters-btn {
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  height: 38px;
}

.clear-filters-btn:hover {
  background-color: #5a6268;
}

.no-files-message {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

.no-files-message p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 20px;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 15px;
  background-color: white;
  color: #C9A84C;
  border: 2px solid #C9A84C;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  min-width: 45px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #C9A84C;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(201, 168, 76, 0.3);
}

.pagination-btn.active {
  background-color: #C9A84C;
  color: white;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #ddd;
  color: #999;
}

.pagination-ellipsis {
  padding: 8px 5px;
  color: #666;
  font-weight: bold;
}

/* Table Styles */
.files-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  table-layout: auto;
}

.files-table thead {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.files-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.files-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}

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

.files-table td {
  padding: 12px;
  font-size: 14px;
  color: #333;
  vertical-align: middle;
}

.si-number-cell {
  text-align: center;
  font-weight: 600;
  color: #C9A84C;
  width: 60px;
  white-space: nowrap;
}

.file-type-icon-cell {
  text-align: center;
  width: 70px;
}

.file-type-icon-cell svg {
  vertical-align: middle;
}

.status-cell {
  text-align: center;
  width: 140px;
}

.status-dropdown {
  padding: 6px 10px;
  border: 2px solid;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: white;
  outline: none;
}

.status-dropdown.status-pending {
  border-color: #FF9800;
  color: #FF9800;
}

.status-dropdown.status-verified {
  border-color: #4CAF50;
  color: #4CAF50;
}

.status-dropdown.status-rejected {
  border-color: #F44336;
  color: #F44336;
}

.status-dropdown:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

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

.status-badge.status-pending {
  background-color: #FFF3E0;
  color: #FF9800;
}

.status-badge.status-verified {
  background-color: #E8F5E9;
  color: #4CAF50;
}

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

.file-name-cell {
  width: auto;
}

.file-name-text {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}

.actions-cell {
  white-space: nowrap;
}

.view-btn,
.delete-btn-table {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin-right: 6px;
}

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

.view-btn:hover {
  background-color: #B8960C;
  transform: translateY(-1px);
}

.delete-btn-table {
  background-color: #1a1a2e;
  color: #D4AF37;
  padding: 6px 10px;
}

.delete-btn-table:hover {
  background-color: #16213e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.3);
}

/* Modal Styles */
.file-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.file-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.file-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
  border-radius: 12px 12px 0 0;
}

.file-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.file-modal-content {
  padding: 24px;
}

.file-preview-section {
  margin-bottom: 20px;
  text-align: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.modal-file-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-pdf-preview {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
}

.pdf-preview {
  padding: 10px !important;
  background: #e9ecef !important;
}

.pdf-preview-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.pdf-actions {
  text-align: center;
}

.open-pdf-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.open-pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, #B8960C 0%, #C9A84C 100%);
}

.pdf-fallback-text {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.pdf-fallback-text a {
  color: #C9A84C;
  text-decoration: none;
  font-weight: 600;
}

.pdf-fallback-text a:hover {
  text-decoration: underline;
}

.file-icon-preview {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.file-icon-preview .pdf-actions {
  margin-top: 20px;
}

.large-file-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 10px;
}

.file-type-label {
  font-size: 18px;
  color: #666;
  font-weight: 500;
  margin: 0;
}

.file-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 15px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  min-width: 140px;
  color: #333;
  font-weight: 600;
}

.detail-row span {
  color: #555;
  flex: 1;
  word-break: break-word;
}

.file-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.download-btn,
.close-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.download-btn:hover {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.4);
}

.open-file-btn {
  padding: 10px 24px;
  border: 2px solid #C9A84C;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #C9A84C;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.open-file-btn:hover {
  background-color: #B8960C;
  border-color: #B8960C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.close-btn {
  background-color: #6c757d;
  color: white;
}

.close-btn:hover {
  background-color: #5a6268;
}

/* Old grid styles - keeping for backward compatibility if needed */
.file-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.file-icon-large {
  font-size: 48px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
}

.delete-file-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

.delete-file-btn:hover {
  transform: scale(1.2);
}

.file-info {
  flex: 1;
}

.file-heading {
  color: #2c3e50;
  font-size: 18px;
  margin: 0 0 8px 0;
  font-weight: 600;
  word-wrap: break-word;
}

.file-description {
  color: #666;
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.file-name {
  color: #34495e;
  font-size: 15px;
  margin: 0 0 10px 0;
  font-weight: 500;
  word-break: break-all;
}

.file-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.file-meta p {
  color: #555;
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.4;
}

.file-meta strong {
  color: #333;
  font-weight: 600;
}

.file-preview-container {
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.file-preview {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */
/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .uploaded-files-container {
    padding: 12px;
  }
  .files-header h2 {
    font-size: 22px;
  }
  .filters-section {
    padding: 12px;
  }
  .filter-group {
    min-width: 150px;
  }
  .filter-group:first-child {
    min-width: 250px;
  }
  .files-table {
    font-size: 13px;
  }
  .files-table th,
  .files-table td {
    padding: 10px 8px;
  }
}
/* Mobile Styles - Large (max-width: 768px) */
@media (max-width: 768px) {
  /* Container */
  .uploaded-files-container {
    padding: 10px;
  }
  /* Header */
  .files-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .files-header h2 {
    font-size: 20px;
  }
  .files-count {
    font-size: 13px;
  }
  /* Filters */
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }
  .filter-group,
  .filter-group:first-child {
    min-width: 100%;
    flex: 1;
  }
  .filter-group label {
    font-size: 13px;
  }
  .filter-group input,
  .filter-group select {
    padding: 8px 10px;
    font-size: 13px;
  }
  .clear-filters-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }
  /* Table */
  .files-table-container {
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .files-table {
    font-size: 12px;
    min-width: 650px;
  }
  .files-table th,
  .files-table td {
    padding: 8px 6px;
  }
  .si-number-cell {
    width: 50px;
    font-size: 12px;
  }
  .file-type-icon-cell {
    width: 50px;
  }
  .file-type-icon-cell svg {
    width: 18px;
    height: 18px;
  }
  .status-cell {
    width: auto;
  }
  .status-dropdown,
  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .file-name-cell {
    max-width: 200px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 4px 8px;
    font-size: 11px;
    margin-right: 4px;
  }
  /* Modal */
  .file-modal {
    max-width: 95%;
    margin: 10px;
  }
  .file-modal-header {
    padding: 15px 20px;
  }
  .file-modal-header h2 {
    font-size: 18px;
  }
  .file-modal-content {
    padding: 20px;
  }
  .file-preview-section {
    padding: 15px;
  }
  .modal-file-preview {
    max-height: 250px;
  }
  .modal-pdf-preview {
    height: 350px;
  }
  .file-details {
    padding: 15px;
  }
  .detail-row {
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
  }
  .detail-row strong {
    min-width: auto;
    font-size: 13px;
  }
  .detail-row span {
    font-size: 13px;
  }
  .file-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .file-modal-actions button,
  .file-modal-actions a {
    width: 100%;
  }
  .open-pdf-btn {
    width: 100%;
    padding: 14px;
  }
  /* Pagination */
  .pagination {
    padding: 15px 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 35px;
  }
  .pagination-numbers {
    gap: 3px;
  }
  /* No Files Message */
  .no-files-message {
    padding: 40px 15px;
  }
  .no-files-message p {
    font-size: 15px;
  }
}
/* Mobile Styles - Medium (max-width: 600px) */
@media (max-width: 600px) {
  .uploaded-files-container {
    padding: 8px;
  }
  .files-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .files-header h2 {
    font-size: 18px;
  }
  .files-count {
    font-size: 12px;
  }
  .filters-section {
    padding: 10px;
    gap: 10px;
  }
  .filter-group label {
    font-size: 12px;
  }
  .filter-group input,
  .filter-group select {
    padding: 7px 9px;
    font-size: 12px;
  }
  .clear-filters-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .files-table {
    font-size: 11px;
    min-width: 600px;
  }
  .files-table th,
  .files-table td {
    padding: 6px 5px;
  }
  .file-modal-content {
    padding: 15px;
  }
  .file-preview-section {
    padding: 12px;
  }
}
/* Mobile Styles - Small (max-width: 480px) */
@media (max-width: 480px) {
  .uploaded-files-container {
    padding: 5px;
  }
  .files-header {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .files-header h2 {
    font-size: 16px;
  }
  .files-count {
    font-size: 11px;
  }
  .filters-section {
    padding: 8px;
    gap: 8px;
  }
  .filter-group {
    gap: 4px;
  }
  .filter-group label {
    font-size: 11px;
  }
  .filter-group input,
  .filter-group select {
    padding: 6px 8px;
    font-size: 11px;
  }
  .clear-filters-btn {
    padding: 6px 12px;
    font-size: 11px;
    height: 32px;
  }
  .files-table {
    font-size: 10px;
    min-width: 550px;
  }
  .files-table th,
  .files-table td {
    padding: 5px 4px;
  }
  .si-number-cell {
    width: 40px;
  }
  .file-type-icon-cell {
    width: 40px;
  }
  .file-type-icon-cell svg {
    width: 16px;
    height: 16px;
  }
  .status-dropdown,
  .status-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 3px 6px;
    font-size: 10px;
  }
  .file-modal {
    max-width: 100%;
    margin: 5px;
    border-radius: 8px;
  }
  .file-modal-header {
    padding: 12px 15px;
  }
  .file-modal-header h2 {
    font-size: 16px;
  }
  .close-modal-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .file-modal-content {
    padding: 12px;
  }
  .file-preview-section {
    padding: 10px;
  }
  .modal-file-preview {
    max-height: 200px;
  }
  .modal-pdf-preview {
    height: 300px;
  }
  .large-file-icon {
    font-size: 60px;
  }
  .file-type-label {
    font-size: 16px;
  }
  .file-details {
    padding: 12px;
  }
  .detail-row {
    padding: 6px 0;
  }
  .detail-row strong,
  .detail-row span {
    font-size: 12px;
  }
  .file-modal-actions button,
  .file-modal-actions a {
    padding: 8px 20px;
    font-size: 13px;
  }
  .open-pdf-btn {
    padding: 12px;
    font-size: 14px;
  }
  .pagination {
    padding: 10px 5px;
  }
  .pagination-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 30px;
  }
  .no-files-message {
    padding: 30px 10px;
  }
  .no-files-message p {
    font-size: 14px;
  }
  .file-card {
    padding: 10px;
  }
  .file-icon-large {
    font-size: 48px;
  }
}
/* Mobile Styles - Extra Small (max-width: 375px) */
@media (max-width: 375px) {
  .files-header h2 {
    font-size: 15px;
  }
  .files-count {
    font-size: 10px;
  }
  .filters-section {
    padding: 6px;
  }
  .files-table {
    font-size: 9px;
    min-width: 500px;
  }
  .files-table th,
  .files-table td {
    padding: 4px 2px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 2px 4px;
    font-size: 9px;
  }
  .pagination-btn {
    padding: 4px 6px;
    font-size: 10px;
    min-width: 28px;
  }
}.admin-dashboard {
  min-height: 100vh;
  background-color: #f8f6f1;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dashboard-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
  color: #D4AF37;
}

.dashboard-header p {
  margin: 5px 0 0 0;
  opacity: 0.9;
  color: #e0d5b7;
}

.logout-btn {
  background-color: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  border: 2px solid #D4AF37;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: #D4AF37;
  color: #1a1a2e;
}

/* Profile Section Styles */
.profile-section {
  position: relative;
}

.profile-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.15);
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: profilePulse 2s infinite;
}

.profile-icon:hover {
  background-color: rgba(212, 175, 55, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes profilePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}
.profile-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 1000;
  animation: slideDropdown 0.3s ease-out;
}

@keyframes slideDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-dropdown-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.profile-info {
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.profile-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.profile-role {
  margin: 5px 0 0 0;
  font-size: 13px;
  opacity: 0.9;
  text-transform: capitalize;
}

.dropdown-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0;
}

.logout-dropdown-btn {
  width: 100%;
  padding: 15px 20px;
  background: white;
  border: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.logout-dropdown-btn:hover {
  background-color: #f8f9fa;
  color: #C9A84C;
}

.logout-dropdown-btn svg {
  transition: transform 0.2s;
}

.logout-dropdown-btn:hover svg {
  transform: translateX(3px);
}

.dashboard-tabs {
  display: flex;
  background-color: white;
  border-bottom: 2px solid #e0e0e0;
  padding: 0 20px;
}

.tab {
  padding: 15px 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab.active {
  color: #C9A84C;
  border-bottom-color: #C9A84C;
  font-weight: 600;
}

.tab:hover {
  color: #C9A84C;
}

.dashboard-content {
  padding: 20px;
  width: 100%;
  max-width: none;
  flex: 1;
}

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

.section-header h2 {
  margin: 0;
  color: #000;
}

.create-user-btn {
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s;
}

.create-user-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4);
}

.create-user-form {
  background: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.create-user-form h3 {
  margin-top: 0;
  color: #000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #000;
  font-weight: 500;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  color: #000;
  background-color: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: #C9A84C;
}

.submit-btn {
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #fcc;
}

.success-message {
  background-color: #efe;
  color: #3c3;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #cfc;
}

.users-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  width: 100%;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}

.users-table th {
  text-align: left;
  padding: 12px;
  background-color: #1a1a2e;
  color: #D4AF37;
  font-weight: 600;
  border-bottom: 2px solid #D4AF37;
}

.users-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #000;
  font-size: 14px;
}

.users-table tr:hover {
  background-color: #f8f9fa;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

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

.files-section h2 {
  margin-top: 0;
  color: #000;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.file-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

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

.file-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 10px;
}

.file-info h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #000;
  word-break: break-word;
}

.file-heading-admin {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #C9A84C;
  word-break: break-word;
  font-weight: 700;
}

.file-description-admin {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  word-break: break-word;
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 5px;
}

.file-name-admin {
  margin: 10px 0;
  font-size: 14px;
  color: #000;
  word-break: break-word;
  font-weight: 600;
}

.file-meta {
  margin: 5px 0;
  font-size: 13px;
  color: #000;
}

.file-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-top: 10px;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 40px;
  font-size: 16px;
}

/* User View Modal Styles */
.view-user-btn {
  background-color: #C9A84C;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 8px;
  transition: all 0.2s;
}

.view-user-btn:hover {
  background-color: #B8960C;
  transform: translateY(-1px);
}

.user-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.user-modal {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.user-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
  border-radius: 12px 12px 0 0;
}

.user-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.user-modal-content {
  padding: 24px;
}

.user-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #C9A84C;
}

.detail-item label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item span {
  color: #555;
  font-size: 16px;
}

.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: 2px;
  color: #333;
}

.toggle-password-btn {
  background: #C9A84C;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: fit-content;
  transition: all 0.2s;
}

.toggle-password-btn:hover {
  background: #B8960C;
  transform: scale(1.05);
}

.password-note {
  color: #999;
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
}

.status-active {
  color: #4CAF50;
  font-weight: 600;
}

.status-inactive {
  color: #F44336;
  font-weight: 600;
}

.user-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.close-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.close-btn:hover {
  background-color: #5a6268;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .user-modal {
    max-width: 95%;
    margin: 10px;
  }
  .user-modal-header h2 {
    font-size: 18px;
  }
  .detail-item {
    padding: 10px;
  }
}
/* Upload Section Styles */
.upload-section {
  width: 100%;
}

.upload-section-header {
  background: white;
  padding: 20px 25px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.upload-section-header:hover {
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}

.upload-section-header h2 {
  margin: 0;
  color: #000;
  font-size: 20px;
}

.dropdown-toggle-btn {
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
}

.dropdown-toggle-btn:hover {
  transform: scale(1.1);
}

.upload-form-wrapper {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  animation: slideDown 0.3s ease-out;
  width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.upload-form {
  width: 100%;
}

@media (max-width: 968px) {
  .upload-form-wrapper {
    padding: 20px;
  }
}
.upload-form {
  width: 100%;
}

@media (max-width: 968px) {
  .upload-form-wrapper {
    padding: 20px;
  }
}
.file-dropzone {
  border: 2px dashed #C9A84C;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.file-dropzone.dragging {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.15);
  border-width: 3px;
  transform: scale(1.02);
}

.file-upload-label {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.file-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4);
}

.file-input {
  display: none;
}

.selected-files {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 2px dashed #C9A84C;
}

.selected-files p {
  margin-top: 0;
  color: #C9A84C;
  font-weight: 600;
}

.files-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.files-list li {
  display: flex;
  align-items: center;
  padding: 8px;
  background: white;
  margin: 5px 0;
  border-radius: 4px;
  color: #333;
}

.file-icon {
  margin-right: 10px;
}

.file-name {
  flex: 1;
  color: #000;
  font-weight: 500;
}

.file-size {
  color: #666;
  font-size: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  color: #000;
  background-color: #fff;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-textarea {
  resize: vertical;
}

/* Date Input Specific Styles */
.date-input {
  cursor: pointer;
  position: relative;
  padding-right: 35px;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 2px;
  opacity: 0.6;
  filter: invert(0.5);
  padding: 5px;
  transition: all 0.2s;
}

.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: rgba(201, 168, 76, 0.1);
  filter: invert(0.3);
}

.date-input:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.upload-btn {
  flex: 1;
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clear-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.clear-btn:hover:not(:disabled) {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.clear-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Files Container Styles */
.files-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.admin-files-section,
.users-files-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.upload-section .admin-files-section {
  width: 100%;
}

.admin-files-section {
  border-left: 4px solid #D4AF37;
}

.users-files-section {
  border-left: 4px solid #1a1a2e;
}

.admin-files-section .section-header h2 {
  color: #C9A84C;
  margin: 0 0 20px 0;
}

.users-files-section .section-header h2 {
  color: #1a1a2e;
  margin: 0 0 20px 0;
}

/* Admin Own Files Styles */
.admin-own-files {
  margin-top: 20px;
}

.files-section-header {
  margin-bottom: 20px;
}

.filter-controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-filter,
.date-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-filter label,
.date-filter label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.search-filter input,
.date-filter input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #000;
  background-color: #fff;
}

.search-filter input {
  min-width: 300px;
}

.date-filter {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.clear-filter-btn {
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.clear-filter-btn:hover {
  background-color: #5a6268;
}

/* Files Table */
.files-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.files-table thead {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.files-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.files-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

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

.files-table td {
  padding: 12px;
  color: #333;
}

.si-number-cell {
  width: 60px;
  text-align: center;
  font-weight: 600;
  color: #C9A84C;
}

.file-name-cell {
  max-width: 300px;
}

.file-name-text {
  font-weight: 600;
  color: #000;
  word-break: break-word;
}

.file-type-icon-cell {
  width: 80px;
  text-align: center;
}

.actions-cell {
  width: 280px;
  white-space: nowrap;
}

.view-btn,
.download-btn-table,
.delete-btn-table {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-right: 5px;
  transition: all 0.2s;
}

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

.view-btn:hover {
  background-color: #B8960C;
  transform: translateY(-1px);
}

.download-btn-table {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.download-btn-table:hover {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.3);
}

.delete-btn-table {
  background-color: #1a1a2e;
  color: #D4AF37;
}

.delete-btn-table:hover {
  background-color: #16213e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.3);
}

.no-files {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  background-color: white;
  border: 2px solid #C9A84C;
  color: #C9A84C;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #C9A84C;
  color: white;
}

.pagination-btn.active {
  background-color: #C9A84C;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-ellipsis {
  padding: 8px;
  color: #666;
}

/* File View Modal */
.file-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.file-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.file-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
  border-radius: 12px 12px 0 0;
}

.file-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.file-modal-content {
  padding: 24px;
}

.file-preview-section {
  text-align: center;
  margin-bottom: 20px;
}

.modal-file-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-icon-preview {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.large-file-icon {
  font-size: 72px;
}

.large-file-icon svg {
  width: 72px;
  height: 72px;
}

.file-type-label {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.file-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: #333;
  font-weight: 600;
}

.detail-row span {
  color: #666;
  text-align: right;
}

.file-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.download-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.4);
}

.open-file-btn {
  padding: 10px 24px;
  border: 2px solid #C9A84C;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #C9A84C;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.open-file-btn:hover {
  background-color: #B8960C;
  border-color: #B8960C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-filter input {
    min-width: 100%;
  }
  .date-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .files-table {
    font-size: 12px;
  }
  .files-table th,
  .files-table td {
    padding: 8px;
  }
  .actions-cell {
    width: auto;
  }
  .view-btn,
  .download-btn-table,
  .delete-btn-table {
    padding: 4px 8px;
    font-size: 11px;
  }
}
.loading-message,
.no-files-message {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #ddd;
  margin-top: 20px;
}

.no-files-message {
  color: #C9A84C;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */
/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .dashboard-content {
    padding: 15px;
  }
  .users-table {
    font-size: 13px;
  }
  .users-table th,
  .users-table td {
    padding: 10px 8px;
  }
  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .filter-controls {
    gap: 10px;
  }
  .search-filter input {
    min-width: 200px;
  }
}
/* Mobile Styles - Large (max-width: 768px) */
@media (max-width: 768px) {
  /* Header Adjustments */
  .dashboard-header {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .dashboard-header h1 {
    font-size: 22px;
  }
  .dashboard-header p {
    font-size: 13px;
  }
  .profile-icon {
    width: 45px;
    height: 45px;
  }
  /* Tabs */
  .dashboard-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
  }
  .tab {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  /* Content */
  .dashboard-content {
    padding: 15px 10px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .section-header h2 {
    font-size: 20px;
  }
  .create-user-btn {
    width: 100%;
    padding: 12px 20px;
  }
  /* Forms */
  .create-user-form,
  .upload-form-wrapper {
    padding: 20px 15px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Users Table */
  .users-list {
    padding: 15px;
    overflow-x: auto;
  }
  .users-table {
    font-size: 12px;
    min-width: 600px;
  }
  .users-table th,
  .users-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .view-user-btn,
  .delete-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  /* Upload Section */
  .upload-section-header {
    padding: 15px 20px;
  }
  .upload-section-header h2 {
    font-size: 18px;
  }
  .file-dropzone {
    padding: 15px;
  }
  .file-upload-label {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }
  /* Filter Controls */
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-filter,
  .date-filter {
    width: 100%;
  }
  .search-filter input {
    min-width: 100%;
  }
  .date-filter {
    flex-direction: column;
    align-items: stretch;
  }
  /* Files Table */
  .files-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .files-table {
    font-size: 12px;
    min-width: 700px;
  }
  .files-table th,
  .files-table td {
    padding: 8px 6px;
  }
  .si-number-cell {
    width: 50px;
    font-size: 12px;
  }
  .file-type-icon-cell {
    width: 50px;
  }
  .file-type-icon-cell svg {
    width: 18px;
    height: 18px;
  }
  .file-name-cell {
    max-width: 200px;
  }
  .actions-cell {
    width: auto;
  }
  .view-btn,
  .download-btn-table,
  .delete-btn-table {
    padding: 4px 8px;
    font-size: 11px;
    margin-right: 3px;
  }
  /* Files Grid */
  .files-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .file-card {
    padding: 15px;
  }
  /* Modals */
  .user-modal,
  .file-modal {
    max-width: 95%;
    margin: 10px;
  }
  .user-modal-header,
  .file-modal-header {
    padding: 15px 20px;
  }
  .user-modal-header h2,
  .file-modal-header h2 {
    font-size: 18px;
  }
  .user-modal-content,
  .file-modal-content {
    padding: 20px;
  }
  .detail-row {
    flex-direction: column;
    gap: 5px;
  }
  .detail-row strong {
    min-width: auto;
  }
  .file-modal-actions,
  .user-modal-actions {
    flex-direction: column;
  }
  .file-modal-actions button,
  .user-modal-actions button {
    width: 100%;
  }
  .modal-file-preview {
    max-height: 250px;
  }
  .modal-pdf-preview {
    height: 350px;
  }
  /* Pagination */
  .pagination {
    padding: 15px 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 35px;
  }
  .pagination-numbers {
    gap: 3px;
  }
  /* Form Actions */
  .form-actions {
    flex-direction: column;
  }
  .upload-btn,
  .clear-btn,
  .submit-btn {
    width: 100%;
  }
}
/* Mobile Styles - Medium (max-width: 600px) */
@media (max-width: 600px) {
  .dashboard-header {
    padding: 12px 15px;
  }
  .dashboard-header h1 {
    font-size: 20px;
  }
  .dashboard-header p {
    font-size: 12px;
  }
  .profile-icon {
    width: 40px;
    height: 40px;
  }
  .dashboard-tabs {
    padding: 0 5px;
  }
  .tab {
    padding: 10px 15px;
    font-size: 13px;
  }
  .dashboard-content {
    padding: 12px 8px;
  }
  .section-header h2 {
    font-size: 18px;
  }
  .create-user-form,
  .upload-form-wrapper,
  .users-list {
    padding: 15px 12px;
  }
  .users-table {
    min-width: 550px;
  }
  .upload-section-header {
    padding: 12px 15px;
  }
  .file-dropzone {
    padding: 12px;
  }
  .selected-files {
    padding: 12px;
  }
  .files-table {
    min-width: 650px;
  }
  .file-card {
    padding: 12px;
  }
  .user-modal-content,
  .file-modal-content {
    padding: 15px;
  }
}
/* Mobile Styles - Small (max-width: 480px) */
@media (max-width: 480px) {
  .dashboard-header {
    padding: 10px 12px;
  }
  .dashboard-header h1 {
    font-size: 18px;
  }
  .dashboard-header p {
    font-size: 11px;
  }
  .profile-icon {
    width: 36px;
    height: 36px;
  }
  .logout-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  .tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  .dashboard-content {
    padding: 10px 5px;
  }
  .section-header {
    margin-bottom: 15px;
  }
  .section-header h2 {
    font-size: 16px;
  }
  .create-user-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .create-user-form,
  .upload-form-wrapper,
  .users-list,
  .admin-files-section,
  .users-files-section {
    padding: 12px 10px;
    border-radius: 6px;
  }
  .form-group label {
    font-size: 13px;
  }
  .form-group input,
  .form-group textarea,
  .form-input,
  .form-textarea {
    padding: 8px;
    font-size: 14px;
  }
  .upload-section-header h2 {
    font-size: 16px;
  }
  .dropdown-toggle-btn {
    padding: 6px 12px;
    font-size: 16px;
  }
  .file-upload-label {
    padding: 8px 16px;
    font-size: 14px;
  }
  .file-dropzone {
    padding: 10px;
  }
  .selected-files {
    padding: 10px;
  }
  .files-list li {
    padding: 6px;
    font-size: 13px;
  }
  .form-actions button {
    padding: 10px 20px;
    font-size: 14px;
  }
  .users-table {
    font-size: 11px;
    min-width: 500px;
  }
  .users-table th,
  .users-table td {
    padding: 6px 4px;
  }
  .view-user-btn,
  .delete-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  .files-table {
    font-size: 11px;
    min-width: 600px;
  }
  .files-table th,
  .files-table td {
    padding: 6px 4px;
  }
  .view-btn,
  .download-btn-table,
  .delete-btn-table {
    padding: 3px 6px;
    font-size: 10px;
  }
  .file-card {
    padding: 10px;
  }
  .file-icon {
    font-size: 36px;
  }
  .file-heading-admin {
    font-size: 16px;
  }
  .file-description-admin {
    font-size: 13px;
    padding: 6px;
  }
  .file-name-admin {
    font-size: 13px;
  }
  .file-meta {
    font-size: 12px;
  }
  .user-modal,
  .file-modal {
    max-width: 100%;
    margin: 5px;
    border-radius: 8px;
  }
  .user-modal-header,
  .file-modal-header {
    padding: 12px 15px;
  }
  .user-modal-header h2,
  .file-modal-header h2 {
    font-size: 16px;
  }
  .close-modal-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .user-modal-content,
  .file-modal-content {
    padding: 12px;
  }
  .detail-item {
    padding: 10px;
  }
  .detail-item label {
    font-size: 12px;
  }
  .detail-item span {
    font-size: 14px;
  }
  .file-preview-section {
    padding: 15px;
  }
  .modal-file-preview {
    max-height: 200px;
  }
  .modal-pdf-preview {
    height: 300px;
  }
  .large-file-icon {
    font-size: 60px;
  }
  .file-type-label {
    font-size: 16px;
  }
  .file-details {
    padding: 15px;
  }
  .detail-row {
    padding: 8px 0;
  }
  .detail-row strong {
    font-size: 13px;
  }
  .detail-row span {
    font-size: 13px;
  }
  .file-modal-actions button,
  .user-modal-actions button {
    padding: 8px 20px;
    font-size: 13px;
  }
  .pagination {
    padding: 10px 5px;
  }
  .pagination-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 30px;
  }
  .no-files,
  .no-data {
    padding: 30px 15px;
    font-size: 14px;
  }
}
/* Mobile Styles - Extra Small (max-width: 375px) */
@media (max-width: 375px) {
  .dashboard-header h1 {
    font-size: 16px;
  }
  .profile-icon {
    width: 32px;
    height: 32px;
  }
  .tab {
    padding: 6px 10px;
    font-size: 11px;
  }
  .section-header h2 {
    font-size: 15px;
  }
  .users-table,
  .files-table {
    font-size: 10px;
    min-width: 400px;
  }
  .users-table th,
  .users-table td,
  .files-table th,
  .files-table td {
    padding: 4px 2px;
  }
  .view-btn,
  .download-btn-table,
  .delete-btn-table,
  .view-user-btn,
  .delete-btn {
    padding: 2px 5px;
    font-size: 9px;
  }
}.user-dashboard {
  min-height: 100vh;
  background-color: #f8f6f1;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dashboard-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
  color: #D4AF37;
}

.dashboard-header p {
  margin: 5px 0 0 0;
  opacity: 0.9;
  color: #e0d5b7;
}

.logout-btn {
  background-color: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  border: 2px solid #D4AF37;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: #D4AF37;
  color: #1a1a2e;
}

/* Profile Section Styles */
.profile-section {
  position: relative;
}

.profile-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.15);
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: profilePulse 2s infinite;
}

.profile-icon:hover {
  background-color: rgba(212, 175, 55, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes profilePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}
.profile-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 1000;
  animation: slideDropdown 0.3s ease-out;
}

@keyframes slideDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-dropdown-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.profile-info {
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.profile-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.profile-role {
  margin: 5px 0 0 0;
  font-size: 13px;
  opacity: 0.9;
  text-transform: capitalize;
}

.dropdown-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0;
}

.logout-dropdown-btn {
  width: 100%;
  padding: 15px 20px;
  background: white;
  border: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.logout-dropdown-btn:hover {
  background-color: #f8f9fa;
  color: #C9A84C;
}

.logout-dropdown-btn svg {
  transition: transform 0.2s;
}

.logout-dropdown-btn:hover svg {
  transform: translateX(3px);
}

.dashboard-content {
  padding: 20px;
  width: 100%;
  max-width: none;
  flex: 1;
}

.upload-section {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
}

.upload-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
  border-bottom: 2px solid #f0f0f0;
}

.upload-section-header:hover {
  background-color: #f8f9fa;
}

.upload-section-header h2 {
  color: #000;
  margin: 0;
  font-size: 20px;
}

.dropdown-toggle-btn {
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.dropdown-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.upload-form-container {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  box-shadow: none;
  animation: slideDown 0.3s ease;
  width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.upload-form-container .form-group {
  margin-bottom: 20px;
}

.upload-form-container .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.upload-form-container .form-group input,
.upload-form-container .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  color: #000;
  background-color: #fff;
  font-family: inherit;
}

.upload-form-container .form-group input:focus,
.upload-form-container .form-group textarea:focus {
  outline: none;
  border-color: #C9A84C;
}

.upload-form-container .form-group textarea {
  resize: vertical;
}

.upload-form-container .form-group input[type=date] {
  cursor: pointer;
  padding-right: 35px;
}

.upload-form-container .form-group input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  filter: brightness(0);
  opacity: 1;
}

.upload-form-container .form-group input[type=date]:hover::-webkit-calendar-picker-indicator {
  background-color: #f5f5f5;
  border-radius: 4px;
  filter: brightness(0);
  opacity: 0.7;
}

.upload-form-container .form-group input::placeholder,
.upload-form-container .form-group textarea::placeholder {
  color: #666;
}

.upload-area-compact {
  background: #fff;
  border: 2px dashed #C9A84C;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area-compact:hover {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.05);
}

.upload-area-compact.dragging {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.15);
  border-width: 3px;
  transform: scale(1.02);
}

.upload-label-compact {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-icon-small {
  font-size: 24px;
}

.upload-text-small {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.file-input {
  display: none;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.upload-btn {
  flex: 1;
  background: linear-gradient(135deg, #C9A84C 0%, #B8960C 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cancel-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.cancel-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.files-section h2 {
  color: #000;
  margin-bottom: 20px;
}

/* Table Styles */
.files-table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
}

.files-table thead {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.files-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.files-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}

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

.files-table td {
  padding: 12px;
  font-size: 14px;
  color: #333;
  vertical-align: middle;
}

.si-number-cell {
  text-align: center;
  font-weight: 600;
  color: #C9A84C;
  width: 80px;
}

.file-type-icon-cell {
  text-align: center;
  width: 80px;
}

.file-type-icon-cell svg {
  vertical-align: middle;
}

.status-cell {
  text-align: center;
  width: 140px;
}

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

.status-badge.status-pending {
  background-color: #FFF3E0;
  color: #FF9800;
}

.status-badge.status-verified {
  background-color: #E8F5E9;
  color: #4CAF50;
}

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

.file-name-cell {
  max-width: 350px;
}

.file-name-text {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}

.actions-cell {
  white-space: nowrap;
}

.view-btn,
.delete-btn-table {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin-right: 6px;
}

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

.view-btn:hover {
  background-color: #B8960C;
  transform: translateY(-1px);
}

.delete-btn-table {
  background-color: #1a1a2e;
  color: #D4AF37;
  padding: 6px 10px;
}

.delete-btn-table:hover {
  background-color: #16213e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.3);
}

/* File Modal Styles */
.file-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.file-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.file-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
  border-radius: 12px 12px 0 0;
}

.file-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.file-modal-content {
  padding: 24px;
}

.file-preview-section {
  margin-bottom: 20px;
  text-align: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.modal-file-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-icon-preview {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.large-file-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 10px;
}

.file-type-label {
  font-size: 18px;
  color: #666;
  font-weight: 500;
  margin: 0;
}

.file-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 15px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  min-width: 140px;
  color: #333;
  font-weight: 600;
}

.detail-row span {
  color: #555;
  flex: 1;
  word-break: break-word;
}

.file-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.download-btn,
.close-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #D4AF37;
}

.download-btn:hover {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.4);
}

.open-file-btn {
  padding: 10px 24px;
  border: 2px solid #C9A84C;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #C9A84C;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.open-file-btn:hover {
  background-color: #B8960C;
  border-color: #B8960C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.close-btn {
  background-color: #6c757d;
  color: white;
}

.close-btn:hover {
  background-color: #5a6268;
}

/* Old Grid Styles - Keep for backward compatibility */
.files-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.files-section-header h2 {
  margin: 0;
  color: #000;
}

.filter-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-filter label {
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.search-filter input {
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  min-width: 250px;
}

.search-filter input:focus {
  outline: none;
  border-color: #C9A84C;
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.date-filter label {
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.date-filter input {
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  cursor: pointer;
  padding-right: 30px;
}

.date-filter input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  filter: brightness(0);
  opacity: 1;
}

.date-filter input[type=date]:hover::-webkit-calendar-picker-indicator {
  background-color: #f5f5f5;
  border-radius: 4px;
  filter: brightness(0);
  opacity: 0.7;
}

.date-filter input:focus {
  outline: none;
  border-color: #C9A84C;
}

.clear-filter-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.clear-filter-btn:hover {
  background-color: #f5f5f5;
}

.no-files {
  background: #fff;
  padding: 60px;
  border-radius: 8px;
  text-align: center;
  color: #000;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.file-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.file-icon-large {
  font-size: 64px;
  margin-bottom: 15px;
}

.file-details {
  width: 100%;
  text-align: center;
}

.file-heading {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #C9A84C;
  word-break: break-word;
  font-weight: 700;
}

.file-description {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #000;
  line-height: 1.5;
  word-break: break-word;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 5px;
}

.file-name {
  margin: 10px 0 10px 0;
  font-size: 14px;
  color: #000;
  word-break: break-word;
  font-weight: 600;
}

.file-size {
  color: #000;
  font-size: 14px;
  margin: 5px 0;
}

.file-date {
  color: #000;
  font-size: 12px;
  margin: 5px 0 15px 0;
}

.file-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin: 15px 0;
}

.delete-file-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  width: 100%;
}

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

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 20px;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 15px;
  background-color: white;
  color: #C9A84C;
  border: 2px solid #C9A84C;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  min-width: 45px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #C9A84C;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(201, 168, 76, 0.3);
}

.pagination-btn.active {
  background-color: #C9A84C;
  color: white;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #ddd;
  color: #999;
}

.pagination-ellipsis {
  padding: 8px 5px;
  color: #666;
  font-weight: bold;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */
/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .dashboard-content {
    padding: 15px;
  }
  .files-table {
    font-size: 13px;
  }
  .files-table th,
  .files-table td {
    padding: 10px 8px;
  }
  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .filter-controls {
    gap: 10px;
  }
  .search-filter input {
    min-width: 200px;
  }
}
/* Mobile Styles - Large (max-width: 768px) */
@media (max-width: 768px) {
  /* Header */
  .dashboard-header {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .dashboard-header h1 {
    font-size: 22px;
  }
  .dashboard-header p {
    font-size: 13px;
  }
  .profile-icon {
    width: 45px;
    height: 45px;
  }
  /* Content */
  .dashboard-content {
    padding: 15px 10px;
  }
  /* Upload Section */
  .upload-section {
    margin-bottom: 20px;
  }
  .upload-section-header {
    padding: 15px 20px;
  }
  .upload-section-header h2 {
    font-size: 18px;
  }
  .dropdown-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .upload-form-container {
    padding: 20px 15px;
  }
  .upload-form-container .form-group label {
    font-size: 13px;
  }
  .upload-form-container .form-group input,
  .upload-form-container .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }
  .upload-area-compact {
    padding: 12px;
  }
  .upload-icon-small {
    font-size: 20px;
  }
  .upload-text-small {
    font-size: 13px;
  }
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .upload-btn,
  .cancel-btn {
    width: 100%;
    padding: 10px 20px;
  }
  /* Files Section */
  .files-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .files-section-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .filter-controls {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .search-filter,
  .date-filter {
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .search-filter label,
  .date-filter label {
    font-size: 13px;
  }
  .search-filter input,
  .date-filter input {
    min-width: auto;
    flex: 1;
    font-size: 14px;
  }
  .clear-filter-btn {
    width: 100%;
  }
  /* Files Table */
  .files-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
  }
  .files-table {
    font-size: 12px;
    min-width: 650px;
  }
  .files-table th,
  .files-table td {
    padding: 8px 6px;
  }
  .si-number-cell {
    width: 50px;
    font-size: 12px;
  }
  .file-type-icon-cell {
    width: 50px;
  }
  .file-type-icon-cell svg {
    width: 18px;
    height: 18px;
  }
  .status-cell {
    width: auto;
  }
  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .file-name-cell {
    max-width: 200px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 4px 8px;
    font-size: 11px;
    margin-right: 4px;
  }
  /* Files Grid */
  .files-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .file-card {
    padding: 15px;
  }
  /* Modal */
  .file-modal {
    max-width: 95%;
    margin: 10px;
    border-radius: 10px;
  }
  .file-modal-header {
    padding: 15px 20px;
  }
  .file-modal-header h2 {
    font-size: 18px;
  }
  .file-modal-content {
    padding: 20px;
  }
  .file-preview-section {
    padding: 15px;
  }
  .modal-file-preview {
    max-height: 250px;
  }
  .modal-pdf-preview {
    height: 350px;
  }
  .file-details {
    padding: 15px;
  }
  .detail-row {
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
  }
  .detail-row strong {
    min-width: auto;
    font-size: 13px;
  }
  .detail-row span {
    font-size: 13px;
  }
  .file-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .file-modal-actions button,
  .file-modal-actions a {
    width: 100%;
  }
  .open-pdf-btn {
    width: 100%;
    padding: 14px;
  }
  /* Pagination */
  .pagination {
    padding: 15px 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 35px;
  }
  .pagination-numbers {
    gap: 3px;
  }
}
/* Mobile Styles - Medium (max-width: 600px) */
@media (max-width: 600px) {
  .dashboard-header {
    padding: 12px 15px;
  }
  .dashboard-header h1 {
    font-size: 20px;
  }
  .dashboard-header p {
    font-size: 12px;
  }
  .profile-icon {
    width: 40px;
    height: 40px;
  }
  .dashboard-content {
    padding: 12px 8px;
  }
  .upload-section-header {
    padding: 12px 15px;
  }
  .upload-section-header h2 {
    font-size: 16px;
  }
  .upload-form-container {
    padding: 15px 12px;
  }
  .upload-area-compact {
    padding: 10px;
  }
  .files-section h2 {
    font-size: 16px;
  }
  .search-filter,
  .date-filter {
    padding: 6px 10px;
  }
  .files-table {
    font-size: 11px;
    min-width: 600px;
  }
  .files-table th,
  .files-table td {
    padding: 6px 5px;
  }
  .files-grid {
    gap: 12px;
  }
  .file-card {
    padding: 12px;
  }
  .file-modal-content {
    padding: 15px;
  }
}
/* Mobile Styles - Small (max-width: 480px) */
@media (max-width: 480px) {
  .dashboard-header {
    padding: 10px 12px;
  }
  .dashboard-header h1 {
    font-size: 18px;
  }
  .dashboard-header p {
    font-size: 11px;
  }
  .profile-icon {
    width: 36px;
    height: 36px;
  }
  .logout-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  .dashboard-content {
    padding: 10px 5px;
  }
  .upload-section {
    margin-bottom: 15px;
    border-radius: 6px;
  }
  .upload-section-header {
    padding: 10px 12px;
  }
  .upload-section-header h2 {
    font-size: 15px;
  }
  .dropdown-toggle-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .upload-form-container {
    padding: 12px 10px;
  }
  .upload-form-container .form-group {
    margin-bottom: 15px;
  }
  .upload-form-container .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .upload-form-container .form-group input,
  .upload-form-container .form-group textarea {
    padding: 8px;
    font-size: 13px;
  }
  .upload-area-compact {
    padding: 8px;
  }
  .upload-icon-small {
    font-size: 18px;
  }
  .upload-text-small {
    font-size: 12px;
  }
  .form-actions {
    margin-top: 15px;
  }
  .upload-btn,
  .cancel-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .files-section h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .search-filter,
  .date-filter {
    padding: 5px 8px;
    border-radius: 6px;
  }
  .search-filter label,
  .date-filter label {
    font-size: 12px;
  }
  .search-filter input,
  .date-filter input {
    padding: 6px 10px;
    font-size: 13px;
  }
  .clear-filter-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .files-table {
    font-size: 10px;
    min-width: 550px;
  }
  .files-table th,
  .files-table td {
    padding: 5px 4px;
  }
  .si-number-cell {
    width: 40px;
  }
  .file-type-icon-cell {
    width: 40px;
  }
  .file-type-icon-cell svg {
    width: 16px;
    height: 16px;
  }
  .status-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 3px 6px;
    font-size: 10px;
  }
  .files-grid {
    gap: 10px;
  }
  .file-card {
    padding: 10px;
  }
  .file-icon-large {
    font-size: 48px;
  }
  .file-heading {
    font-size: 16px;
  }
  .file-description {
    font-size: 13px;
    padding: 8px;
  }
  .file-name {
    font-size: 13px;
  }
  .file-size,
  .file-date {
    font-size: 12px;
  }
  .delete-file-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .file-modal {
    max-width: 100%;
    margin: 5px;
    border-radius: 8px;
  }
  .file-modal-header {
    padding: 12px 15px;
  }
  .file-modal-header h2 {
    font-size: 16px;
  }
  .close-modal-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .file-modal-content {
    padding: 12px;
  }
  .file-preview-section {
    padding: 12px;
  }
  .modal-file-preview {
    max-height: 200px;
  }
  .modal-pdf-preview {
    height: 300px;
  }
  .large-file-icon {
    font-size: 60px;
  }
  .file-type-label {
    font-size: 16px;
  }
  .file-details {
    padding: 12px;
  }
  .detail-row {
    padding: 6px 0;
  }
  .detail-row strong,
  .detail-row span {
    font-size: 12px;
  }
  .file-modal-actions button,
  .file-modal-actions a {
    padding: 8px 20px;
    font-size: 13px;
  }
  .open-pdf-btn {
    padding: 12px;
    font-size: 14px;
  }
  .pagination {
    padding: 10px 5px;
  }
  .pagination-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 30px;
  }
  .no-files {
    padding: 30px 15px;
    font-size: 14px;
  }
}
/* Mobile Styles - Extra Small (max-width: 375px) */
@media (max-width: 375px) {
  .dashboard-header h1 {
    font-size: 16px;
  }
  .profile-icon {
    width: 32px;
    height: 32px;
  }
  .upload-section-header h2 {
    font-size: 14px;
  }
  .files-section h2 {
    font-size: 14px;
  }
  .files-table {
    font-size: 9px;
    min-width: 500px;
  }
  .files-table th,
  .files-table td {
    padding: 4px 2px;
  }
  .view-btn,
  .delete-btn-table {
    padding: 2px 4px;
    font-size: 9px;
  }
  .upload-btn,
  .cancel-btn {
    font-size: 13px;
  }
}* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
  }
}