/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gradient-background {
  background-color: hsla(0, 0%, 0%, 1);
  --grain-size: 2422px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 700'%3E%3Cfilter id='pixelGrain'%3E%3CfeTurbulence type='turbulence' baseFrequency='18' numOctaves='3' seed='1' stitchTiles='stitch' result='noise'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 1'/%3E%3C/feComponentTransfer%3E%3CfeMorphology operator='dilate' radius='0.2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 3 -1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23pixelGrain)' opacity='1'/%3E%3C/svg%3E");
  background-image: var(--grain), var(--grain), var(--grain), var(--grain),
    var(--grain), var(--grain),
    radial-gradient(
      circle at 99% 99%,
      hsla(0, 0%, 0%, 0.58) 4.38%,
      transparent 42.15%
    ),
    radial-gradient(
      circle at 49% 104%,
      hsla(0, 0%, 0%, 0.71) 4.38%,
      transparent 43.3%
    ),
    radial-gradient(
      circle at 91% 43%,
      hsla(194.6, 93%, 38%, 0.94) 3.5%,
      transparent 64.4%
    ),
    radial-gradient(
      circle at 71% 82%,
      hsla(206.8, 0%, 0%, 1) 3.5%,
      transparent 33.6%
    ),
    radial-gradient(
      circle at 0% 61%,
      hsla(221.3, 93%, 25%, 0.86) 8.7%,
      transparent 51.9%
    ),
    radial-gradient(
      circle at 60% 56%,
      hsla(206.8, 89%, 34%, 0.49) 3.5%,
      transparent 48.2%
    );

  background-blend-mode: overlay, overlay, overlay, overlay, overlay, overlay,
    overlay, normal, normal, normal, normal, normal, normal;
  background-size: var(--grain-size), var(--grain-size), var(--grain-size),
    var(--grain-size), var(--grain-size), var(--grain-size), cover, cover, cover,
    cover, cover, cover;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #afafaf;
}

body:has(header) {
  padding-top: 40px;
}

header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: #fff;
  background: #000;
  padding: 12px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  flex-direction: column;
}

/* Auth Card Styles */
.auth-card {
  border: 1px solid #1c1c1c;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 536px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.auth-card:has(.widget-content) + .progress-bar,
.auth-card:has(.widget-content) {
  max-width: 800px;
}

.auth-card-header {
  background: rgba(28, 28, 28, 0.55);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 16px 24px;
}

.auth-card-body {
  background-color: #fff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 16px 24px;
}

.auth-card-body:has(.widget-content) {
  padding: 0;
}

.auth-card h1 {
  font-size: 36px;
  color: #fff;
  font-weight: 600;
}

.auth-card h1 span {
  color: #17c39d;
  display: inline-block;
  margin: 0 4px;
}

.subtitle {
  color: #c8c8c8;
  font-size: 20px;
  padding-bottom: 10px;
  font-weight: 300;
}

/* Info Section */
.info-section {
  border-bottom: 1px dashed #c8c8c8;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.info-section p {
  color: #292929;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 16px;
}

.info-section a {
  font-weight: 600;
  color: #555555;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-list {
  padding-bottom: 16px;
}

.info-list p {
  color: #292929;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 8px;
}

.info-list ol {
  list-style: decimal;
  margin-left: 20px;
}

.info-list ol li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Process Steps */
.process-steps {
  text-align: left;
  margin-bottom: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
}

.process-steps h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.process-steps ol {
  list-style: none;
  counter-reset: step-counter;
}

.process-steps li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  padding-left: 15px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-icon {
  font-size: 1.2rem;
  min-width: 24px;
}

.process-steps li span:last-child {
  color: #555;
  line-height: 1.5;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  margin-top: 16px;
  gap: 10px;
  width: 100%;
  max-width: 536px;
}

.progress-step {
  flex: 1;
  padding: 12px 0px;
  font-size: 12px;
  font-weight: 600;
  color: #292929;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.progress-strip {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  margin-top: 4px;
  background: #e6e6e6;
}

.progress-step.active .progress-strip {
  background: #8d8d8d;
}

.progress-step::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
  text-align: left;
}

/* Button Styles */
.btn-primary {
  font-family: "Noto Sans", sans-serif;
  background: #292929;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* 
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
} */

.btn-primary:hover {
  background-color: #414141;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  font-family: "Noto Sans", sans-serif;
  background: transparent;
  color: #292929;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(41, 41, 41, 0.1);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.2rem;
}

/* Disclaimer */
.disclaimer {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 12px;
  color: #f2f2f2;
  background-color: rgba(28, 28, 28, 0.55);
  width: 100%;
  max-width: 536px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.disclaimer a {
  font-weight: 600;
  text-decoration: underline;
  color: #fff;
}

.disclaimer a:hover {
  color: #17c39d;
}

/* Message Styles */
.message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 500;
}

.message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Modal styles */
.backdrop {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.backdrop.active {
  display: flex;
}

.modal {
  background-color: #fefefe;
  color: #333;
  margin: auto;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.modal-content {
  background-color: #f8f8f8;
  padding: 24px;
  font-size: 16px;
  line-height: 22px;
  max-height: 60vh;
  overflow-y: scroll;
  overscroll-behavior: contain;
}

.modal-content h4 {
  font-weight: normal;
  margin-bottom: 8px;
}

.modal-content p {
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: normal;
}

.modal-footer,
.modal-header {
  padding: 16px 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-footer button {
  width: auto;
}

/* Loading Styles */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  color: #666;
  font-weight: 500;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e1e5e9;
  border-left-color: #292929;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* Pending Page Specific Styles */

.instructions {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 4px solid #292929;
}

.auth-card:has(.resend-section) {
  margin-top: 15px;
}

.resend-section.auth-card-header {
  background-color: #fcfcfc;
  gap: 5px;
}

.resend-section.auth-card-header *,
.resend-section .form-group {
  width: 100%;
  text-align: left;
}

.resend-section.auth-card-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.resend-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.resend-section p {
  font-size: 12px;
  color: #555555;
}

.back-link:hover {
  background: rgba(42, 82, 152, 0.1);
  text-decoration: none;
}

/* Logout Button Styles */
.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Upload Section Styles */
.upload-section {
  text-align: left;
}

.upload-section h3 {
  margin-bottom: 15px;
  color: #1e3c72;
  font-size: 1.8rem;
}

.upload-section p {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.dropzone-container {
  min-height: 300px;
  border: none;
  border-radius: 12px;
  background: white;
  padding: 0px;
  margin: 20px 0;
  overflow: visible;
}

/* SendSafely widget styling fixes */
#sendsafely-dropzone img {
  display: none;
}

li.sendsafely-upload-item {
  color: #292929;
  background-color: #F2F2F2;
  font-size: 14px;
  font-family: "Noto Sans", sans-serif;
}

li.sendsafely-upload-item img {
  display: none;
}

.dropzone-container iframe {
  opacity: 1 !important;
  z-index: 10 !important;
}

.dropzone-container #sendsafely-iframe {
  opacity: 1 !important;
}

.dropzone-container #sendsafely-dropzone {
  z-index: 5 !important;
}

/* SendSafely Form Styling */
.sendsafely-form {
  margin: 0 auto;
}

.form-header h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.form-header p {
  background: #ecf8ff;
  color: #030762;
  margin-bottom: 0;
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: #292929;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.required {
  color: #dc3545;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  font-size: 14px;
  height: 40px;
}

.form-group input:focus {
  outline: none;
  border-color: #000;
  /* box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1); */
}

.sendsafely-dropzone {
  min-height: 120px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sendsafely-dropzone:hover {
  border-color: #292929;
  background: #f8f9fa;
}

#dropzone-replacement-div,
.file-list-container {
  margin-bottom: 20px;
}

.file-list-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list-container li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 4px solid #28a745;
}

.file-status {
  font-weight: 600;
  font-size: 0.9rem;
}

.file-status-completed {
  color: #28a745;
}

.file-status-uploading {
  color: #ffc107;
}

.upload-success {
  padding: 30px;
  text-align: center;
}

.upload-success.hidden {
  display: none;
}

.upload-success .success-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.upload-success h4 {
  color: #292929;
  margin-bottom: 10px;
  font-size: 1rem;
}

.upload-success p {
  color: #6f6f6f;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.secure-link {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  word-break: break-all;
}

.secure-link a {
  color: #292929;
  text-decoration: none;
}

.secure-link a:hover {
  text-decoration: underline;
}

.upload-actions {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px dashed #8d8d8d;
}

.upload-actions p {
  margin-bottom: 15px;
  font-weight: 600;
}

.upload-actions #upload-another-btn {
  color: #292929;
  border: 1px solid #292929;
  background: transparent;
  width: auto;
}

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

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
  margin: 0;
  min-width: 140px;
}

.fallback-upload {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.fallback-upload .fallback-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.fallback-upload h4 {
  color: #1e3c72;
  margin-bottom: 15px;
}

.fallback-upload .fallback-note {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

/* Widget Page Styles */
.widget-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
}

.widget-header {
  background: linear-gradient(135deg, #323232 0%, #292929 100%);
  color: white;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

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

.user-email {
  font-weight: 500;
  opacity: 0.9;
  font-size: 1.1rem;
}

.widget-content {
  padding: 10px;
}

.welcome-section {
  text-align: center;
  margin-bottom: 35px;
}

.welcome-section h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #1e3c72;
}

.upload-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 16px;
  /* padding: 80px 50px; */
  text-align: center;
  /* margin-bottom: 50px; */
  position: relative;
  overflow: hidden;
}

.upload-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(42, 82, 152, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(30, 60, 114, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.placeholder-icon {
  font-size: 5rem;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.upload-placeholder h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1e3c72;
  position: relative;
  z-index: 1;
}

.upload-placeholder p {
  color: #666;
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.placeholder-note {
  font-style: italic;
  color: #888;
  margin-bottom: 35px !important;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  padding: 12px 0;
  border-bottom: 1px solid #e1e5e9;
  position: relative;
  padding-left: 35px;
  font-size: 1.05rem;
}

.info-section li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #292929;
  font-weight: bold;
  font-size: 1.2rem;
  top: 10px;
}

.info-section li:last-child {
  border-bottom: none;
}

.simple-dropzone {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  background: #f8f9fa;
}

.simple-dropzone .dropzone-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.simple-dropzone h4 {
  color: #1e3c72;
  margin-bottom: 15px;
}

.simple-dropzone .upload-note {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
}

.file-list {
  margin-top: 20px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.file-item {
  padding: 8px 12px;
  background: rgba(42, 82, 152, 0.1);
  border-radius: 6px;
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .auth-card h1 {
    font-size: 2.2rem;
  }

  .progress-bar {
    flex-direction: column;
    gap: 8px;
  }

  .process-steps {
    padding: 20px;
  }

  .widget-content {
    padding: 30px 25px;
  }

  .widget-header {
    padding: 30px 25px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .widget-header h1 {
    font-size: 1.8rem;
  }

  .upload-placeholder {
    padding: 50px 30px;
  }

  .placeholder-icon {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-card h1 {
    font-size: 1.9rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .progress-step {
    font-size: 0.75rem;
    padding: 10px 6px;
  }

  .upload-placeholder {
    padding: 40px 20px;
  }

  .info-section,
  .process-steps {
    padding: 15px;
  }
}

/* Tab Navigation Styles */
.tab-navigation {
  display: flex;
  width: fit-content;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.tab-button:hover {
  background: rgba(0, 0, 0, 0.02);
  color: #333;
}

.tab-button.active {
  color: #292929;
  border-bottom-color: #292929;
}

.tab-button svg {
  width: 20px;
  height: 20px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* History Section Styles */
.history-section {
  min-height: 250px;
}

.history-header {
  margin-bottom: 16px;
}

.history-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.history-header p {
  color: #666;
  font-size: 14px;
}

.history-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 8px;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.history-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: #fff;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.history-item-date {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-item-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.history-item-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.history-file svg {
  width: 16px;
  height: 16px;
  color: #666;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0084d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 12px;
  color: #666;
}

.empty-state svg,
.error-state svg {
  color: #999;
}

.empty-state h3,
.error-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-state p,
.error-state p {
  font-size: 14px;
  margin: 0;
}

.error-state .btn-primary {
  margin-top: 16px;
}
