body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  margin: 0;
  padding: 20px;
  position: relative;
}

.container {
  background: #1e293b;
  padding: 45px;
  border-radius: 20px;
  width: 1400px;
  max-width: 95%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideIn 0.6s ease-out;
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.container.thinking-mode {
  border: 3px solid #0088ff;
  animation: rapid-border-pulse 1.5s ease-in-out infinite;
}

@keyframes rapid-border-pulse {
  0%, 100% { 
    border-color: rgba(0, 136, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.2), 0 20px 60px rgba(0,0,0,0.4);
  }
  50% { 
    border-color: rgba(0, 136, 255, 1);
    box-shadow: 0 0 60px rgba(0, 136, 255, 0.8), 
                0 0 100px rgba(0, 136, 255, 0.4),
                inset 0 0 30px rgba(0, 136, 255, 0.1),
                0 20px 60px rgba(0,0,0,0.4);
  }
}

.crt-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.crt-effects.active {
  opacity: 1;
}

.scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.1)
  );
  background-size: 100% 4px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

.flicker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 16, 16, 0.05);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% { opacity: 0.02; }
  50% { opacity: 0.05; }
  100% { opacity: 0.02; }
}

.grid-bg {
  background-image: 
    linear-gradient(rgba(0, 136, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

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

.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: fadeIn 0.8s ease-out;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(148, 163, 184, 0.1);
  gap: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1 {
  text-align: left;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: glow 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.5));
  }
}

#themeToggle {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

#themeToggle:hover {
  transform: rotate(180deg);
}

.theme-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.form-section {
  margin-bottom: 25px;
  animation: slideInLeft 0.5s ease-out;
  animation-fill-mode: both;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

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

.form-section label {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
}

.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.3s ease;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.05);
}

.radio-label:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.05);
}

.radio-label input[type="radio"] {
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  accent-color: #3b82f6;
}

.radio-label input[type="radio"]:checked {
  transform: scale(1.2);
}

.radio-label:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

input[type="text"], input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  background: #0f172a;
  border: 2px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  background: #1e293b;
}

input[type="text"]::placeholder {
  color: #64748b;
}

input[type="file"] {
  padding: 12px 16px;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #3b82f6;
  background: #1e293b;
}

.analyze-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-top: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.analyze-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.analyze-btn:hover::before {
  width: 400px;
  height: 400px;
}

.analyze-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.analyze-btn:active {
  transform: translateY(0);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  animation: slideDown 0.5s ease-out;
}

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

.report {
  margin-top: 30px;
  background: #0f172a;
  padding: 25px;
  border-radius: 12px;
  max-height: 500px;
  overflow-y: auto;
  animation: expandIn 0.5s ease-out;
  border: 2px solid rgba(148, 163, 184, 0.1);
}

@keyframes expandIn {
  from {
    max-height: 0;
    opacity: 0;
    padding: 0 25px;
  }
  to {
    max-height: 500px;
    opacity: 1;
    padding: 25px;
  }
}

.report h2 {
  animation: fadeIn 0.6s ease-out;
  color: #3b82f6;
  font-size: 22px;
  margin-bottom: 15px;
}

.report pre {
  animation: fadeIn 0.8s ease-out;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

body.light {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
}

body.light .container {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body.light .container.thinking-mode {
  border: 3px solid #0088ff;
}

body.light .header {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.light h1 {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light .form-section label {
  color: #475569;
}

body.light input[type="text"],
body.light input[type="file"] {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.light input[type="text"]:focus {
  background: #ffffff;
  border-color: #3b82f6;
}

body.light input[type="text"]::placeholder {
  color: #94a3b8;
}

body.light #themeToggle {
  background: transparent;
  border: none;
}

body.light #themeToggle:hover {
  background: transparent;
}

body.light .radio-label {
  color: #475569;
  background: rgba(59, 130, 246, 0.05);
}

body.light .radio-label:hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.15);
}

body.light .radio-label:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

body.light .report {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.light .report h2 {
  color: #1d4ed8;
}

body.light .report pre {
  color: #334155;
}

.input-wrapper {
  position: relative;
}

.input-wrapper.focused input[type="text"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

small {
  color: #94a3b8;
  font-size: 13px;
}

body.light small {
  color: #64748b;
}

.logout-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  margin-left: 60px;
}

.logout-btn-questionnaire {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  margin-left: 260px;
}

.logout-btn-questionnaire:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.logout-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  margin-left: auto;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

body.light .logout-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

body.light .logout-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.site-footer {
  background-color: transparent;
  border-top: none;
  padding: 10px 0;
  text-align: center;
  margin-top: auto;
  color: #666;
  font-size: 15px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border: none;
  box-shadow: none;
  background: transparent;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.questionnaire-status {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  animation: slideInDown 0.6s ease-out;
}

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

.status-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #10b981;
  font-weight: 600;
  font-size: 16px;
}

.status-icon {
  width: 28px;
  height: 28px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

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

.action-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.change-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.change-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

body.light .questionnaire-status {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

body.light .status-message {
  color: #059669;
}

body.light .status-icon {
  background: #059669;
}

.container-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.form-wrapper {
  flex: 1;
  min-width: 0;
}

.pdf-section {
  width: 380px;
  flex-shrink: 0;
  padding-left: 30px;
  border-left: 2px solid rgba(148, 163, 184, 0.1);
}

.pdf-title {
  color: #3b82f6;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.pdf-title:hover {
  color: #60a5fa;
}

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

.pdf-count {
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
}

.arrow.open {
  transform: rotate(180deg);
}

.pdf-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pdf-dropdown-content.open {
  max-height: 600px;
  overflow-y: auto;
}

.pdf-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.pdf-dropdown-content::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 10px;
}

.pdf-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 10px;
}

.pdf-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-item {
  background: #0f172a;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pdf-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.pdf-name {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  word-break: break-word;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.pdf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn.download {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.action-btn.download:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.action-btn.delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.action-btn.delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-btn.custom-report {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
}

.action-btn.custom-report:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

body.light .action-btn.custom-report {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body.light .action-btn.custom-report:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.empty-pdf {
  color: #64748b;
  text-align: center;
  padding: 30px 15px;
  font-style: italic;
  font-size: 14px;
}

body.light .pdf-section {
  border-left-color: rgba(148, 163, 184, 0.2);
}

body.light .pdf-title {
  color: #1d4ed8;
}

body.light .pdf-title:hover {
  color: #2563eb;
}

body.light .pdf-count {
  background: #1d4ed8;
}

body.light .pdf-item {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.light .pdf-item:hover {
  border-color: rgba(29, 78, 216, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light .pdf-name {
  color: #475569;
}

body.light .empty-pdf {
  color: #94a3b8;
}
body.light .pdf-dropdown-content::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.2);
}

body.light .pdf-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(29, 78, 216, 0.5);
}

body.light .pdf-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 78, 216, 0.7);
}

@media (max-width: 1200px) {
  .container-content {
    flex-direction: column;
  }
  
  .pdf-section {
    width: 100%;
    padding-left: 0;
    padding-top: 30px;
    border-left: none;
    border-top: 2px solid rgba(148, 163, 184, 0.1);
  }
  
  body.light .pdf-section {
    border-top-color: rgba(148, 163, 184, 0.2);
  }
  
  .pdf-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

.bulk-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
}

.select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.bulk-action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn.bulk-download,
.action-btn.bulk-delete {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.action-btn.bulk-download {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.action-btn.bulk-download:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.action-btn.bulk-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.action-btn.bulk-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.pdf-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
  flex-shrink: 0;
}

.pdf-item.selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateX(5px);
}

body.light .bulk-actions-header {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

body.light .select-all-label {
  color: #1d4ed8;
}

body.light .pdf-item.selected {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.6);
}

.summary-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.summary-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.summary-modal-content {
  position: relative;
  background: #1e293b;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.summary-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid rgba(148, 163, 184, 0.1);
}

.summary-modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.summary-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

.summary-modal-body {
  padding: 30px;
}

.summary-modal-subtitle {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 25px;
  text-align: center;
}

.summary-modal-subtitle strong {
  color: #3b82f6;
  font-weight: 600;
}

.summary-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.summary-type-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.summary-type-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.summary-type-btn:active {
  transform: translateY(0);
}

.summary-btn-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.summary-btn-text {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.overwrite-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.overwrite-btn {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  width: 100%;
}

.overwrite-btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.overwrite-btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.overwrite-btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.overwrite-btn-secondary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.overwrite-btn-cancel {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.overwrite-btn-cancel:hover {
  background: rgba(148, 163, 184, 0.3);
}

body.light .summary-modal-content {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.4);
}

body.light .summary-modal-header {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.light .summary-modal-subtitle {
  color: #475569;
}

body.light .summary-type-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  border-color: rgba(59, 130, 246, 0.4);
}

body.light .summary-type-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.7);
}

body.light .summary-btn-text {
  color: #1e293b;
}

body.light .summary-modal-close {
  color: #64748b;
}

body.light .summary-modal-close:hover {
  color: #ef4444;
}

@media (max-width: 768px) {
  .summary-button-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .summary-modal-header {
    padding: 20px;
  }
  
  .summary-modal-body {
    padding: 20px;
  }
}



/*  display the  aler message */
.messages-container {
  margin: 20px 0;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.alert-icon {
  font-size: 20px;
}

.alert-text {
  flex: 1;
  font-weight: 600;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

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

body.light .alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

body.light .alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}