/* Webview specific styles - cleaned up duplicates */


.content {
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  width: calc(100% - 270px);
  flex: 1 0 auto;
}


.container {
  max-width: 1000px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 5px;
}

/* Upload page specific styles */
.upload-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}


.upload-container h1 {
  margin-top: 32px;
  margin-bottom: 32px;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 32px;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.upload-area.drag-over {
  border-color: #007bff;
  background: #f0f7ff;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-preview {
  text-align: left;
}

.upload-icon {
  color: #666;
}

.upload-icon svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.browse-button {
  display: inline-block;
  padding: 12px 24px;
  background: #3e96ff;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s ease;
}

.browse-button:hover {
  background: #166ed7;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.file-name {
  font-weight: 500;
  color: #333;
}

.file-size {
  color: #666;
  margin-left: 16px;
}


.file-error {
  color: #dc3545;
}

.file-response {
  margin-top: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.upload-progress {
  margin-top: 20px;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #007bff;
  width: 0;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #666;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

/* Header */
.header {
  font-size: 46px;
  font-weight: 800;
  margin: 0 0 16px 0;
}

/* Paragraphs */
.paragraph {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Timeline Sections */
.timeline-section {
  margin-bottom: 32px;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  background-color: #1e90ff;
  border-radius: 50%;
}

.timeline-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.timeline-category {
  font-size: 14px;
  color: #666;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: #cc2e3f; /* Trustbook red */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Show loader only if triggered */
body.show-loader #loader {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Scaling */
@media (min-width: 500px) {
  .header {
    font-size: 50px;
  }

  .paragraph,
  .timeline-title,
  .timeline-category {
    font-size: 18px;
  }

  .timeline-date {
    font-size: 16px;
  }
}

/* Accordion */
.accordion {
  border-top: 1px solid #eee;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-size: 20px;
}

.accordion-header.active::after {
  content: '−';
}

.accordion-content {
  display: none;
  padding: 0 0 16px 0;
}

.accordion-content ul {
  margin: 0;
  padding-left: 20px;
}

.accordion-content li {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

@media (min-width: 500px) {
  .accordion-header,
  .accordion-content li {
    font-size: 18px;
  }
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #fff;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 5px 0px 0px 5px;
}

.card:hover {
background-color:#E5E5E5;
}


.card.active {
  background-color: #1a1a1a;
  color: #ffffff;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.card-tag {
  display: inline-block;
  background-color: #B9D9FF;
  color: #000000;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}

.card-tag.action {
  background-color: #EEA207;
  color: #fff;
  display:flex;
}

.card-tag.action.invalid-document {
  background-color: #dc3545;
  color: #fff;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; /* space between title and spinner */
} 

@media (min-width: 500px) {
  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 16px;
  }

  .card-tag {
    font-size: 13px;
  }
}

.trustbook-logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin-bottom: 16px;
}

/* Removed duplicate user-overlay styles - now in sidebar.css */


.subheader {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.upload-preview {
  margin-top: 32px;
  border-top: 1px solid #ccc;
  padding-top: 24px;
  text-align: left;
}

.send-button {
  background-color: #3bb866; /* green */
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 40px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  position: relative;
  display: block;
  margin: 24px auto;
}

.send-button:hover {
  background-color: #32a457; /* darker green on hover */
}


.remove-file {
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
}
.remove-file:hover {
  color: #dc3545;
}

.file-status {
  font-weight: 500;
}
.file-status.success {
  color: #28a745;
}
.file-status.error {
  color: #dc3545;
}
.file-status.pending {
  color: #ff9800;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.footer {
  width: 100%;
  background-color: #1a1a2e;
  color: white;
  padding: 48px 20px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 800px; /* Match .upload-container max-width */
  margin: 0 auto;
  padding: 0 20px;
}

.footer-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
  font-size: 14px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: none;
}


.get-app-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 64px;
  margin-bottom: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.get-app-left {
  flex: 1;
  min-width: 280px;
}

.get-app-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.get-app-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.store-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}


.badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-icon {
  height: 40px;
  width: auto;
}

.app-preview {
  max-width: 200px;
  height: auto;
}


.contract-card {
  background-color: white;
  border-radius: 15px;
  border: 1px solid var(--TB-Ligth-Grey-2, #C8C6C6);
  padding: 24px;
  margin-bottom: 24px;
}

.contract-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

.contract-file-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contract-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eee;
}

.contract-file-item:first-child {
  border-top: none;
}

.contract-file-icon {
  width: 20px;
  margin-right: 12px;
}


.file-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}

/* Removed duplicate sidebar and footer link styles */



.sidebar-footer-link {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  display: block; 
  line-height: 22px; /* 146.667% */
  padding: 10px 0px 6px;
}

.sidebar-footer-link:hover {
  text-decoration: none;
}



.upload-area.drag-over {
  border-color: #3e96ff;
  background: #f0f7ff;
  box-shadow: 0 0 8px rgba(62, 150, 255, 0.3);
  transition: all 0.3s ease;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.top-navbar {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-navbar .logo {
  font-size: 24px;
  font-weight: 700;
  color: #1c1c2b;
  text-decoration: none;
}

.search-bar {
  flex-grow: 1;
  margin: 0 32px;
}

.search-bar input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 9999px;
  font-size: 14px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #888;
  font-size: 16px;
}

.empty-state img {
  max-width: 180px;
  margin-bottom: 24px;
  opacity: 0.6;
}


  .delete-btn {
    background-color: #1c1c2b;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid transparent;
  border-top: 3px solid #1a1a2e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.notes {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: #000;
  justify-content: center;
  align-items: center;
  display: flex;
  padding-top:20px;
}

.contract-summary {
  margin: 24px auto 0;
  max-width: 1000px;
  width: 100%;
}

.contract-summary.paragraph {
  margin-bottom: 32px;
}

.contract-summary > *:last-child {
  margin-bottom: 0;
}

.unlock-divider {
  margin: 48px auto 0;
  max-width: 1000px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}


.unlock-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 40px auto;
}

.unlock-box {
  flex: 1 1 50%;
  max-width: 500px;
}

.unlock-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.unlock-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 100%;  /* allows full width of parent */
  width: 100%;
  align-items: flex-start;
}

.unlock-box h2 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.unlock-box ul {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.unlock-box li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.checkmark {
  color: #28b76b;
  font-size: 20px;
  margin-right: 10px;
}


.simple-links {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
  font-size: 12px;
  text-decoration: none;
   color: #1c1c2b;
   align-items: right;
}
.simple-links:hover {
  text-decoration: underline;
}
.initials-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #888;
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
}


.unlock-visuals {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
  min-width: 300px;
}

.store-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.qr-code {
  width: 120px;
  height: 120px;
}
.qr-code .img {
  width: 120px;
  height: 120px;
}

.store-badge {
  width: 160px;
}

.webview-subheader {
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.webview-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.webview-summary {
  font-weight: 400;
  margin-bottom: 24px;
  margin-right:30px;
}

.webview-section-title {
  font-size: 20px;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 8px;
}

.webview-paragraph {
  margin-top: 0;
  margin-bottom: 16px;
  padding-right:30px;
}

.webview-list {
  padding-left: 20px;
  margin-bottom: 16px;
  padding-right:30px;
}
