/* ======================================================
   TamilAI Document Details
   SSL Technology
====================================================== */

.document-details {
  position: fixed;

  inset: 0;

  display: none;

  justify-content: center;

  align-items: center;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(10px);

  z-index: 100000;

  animation: fadeDocument 0.25s ease;
}

@keyframes fadeDocument {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.document-details-window {
  width: 700px;

  max-width: 90%;

  background: #091823;

  border: 1px solid rgba(0, 216, 255, 0.22);

  border-radius: 22px;

  overflow: hidden;

  box-shadow:
    0 0 25px rgba(0, 216, 255, 0.2),
    0 0 60px rgba(0, 216, 255, 0.08);

  animation: popupDocument 0.25s ease;
}

@keyframes popupDocument {
  from {
    opacity: 0;

    transform: translateY(25px) scale(0.95);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* ========================================= */

.document-details-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 22px;

  background: #0c2231;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.document-details-header h2 {
  margin: 0;

  color: #00d8ff;

  font-size: 24px;
}

.document-details-header button {
  width: 42px;

  height: 42px;

  border: none;

  border-radius: 12px;

  background: #132e41;

  color: var(--text-primary);

  cursor: pointer;

  transition: 0.25s;
}

.document-details-header button:hover {
  background: #00d8ff;

  color: black;
}

/* ========================================= */

.document-details-body {
  padding: 30px;

  display: flex;

  gap: 30px;

  align-items: flex-start;
}

.document-preview-icon {
  width: 110px;

  height: 110px;

  border-radius: 20px;

  background: #102d40;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 64px;

  border: 1px solid rgba(0, 216, 255, 0.2);

  flex-shrink: 0;
}

/* ========================================= */

.document-info {
  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 14px;
}

.document-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 16px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.04);
}

.document-row span {
  color: #8eb2c4;

  font-size: 14px;
}

.document-row strong {
  color: var(--text-primary);

  font-size: 14px;

  text-align: right;

  word-break: break-word;
}

/* ========================================= */

.document-actions {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;

  padding: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  background: #0b1d2a;
}

.document-actions button {
  height: 48px;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;

  transition: 0.25s;

  color: var(--text-primary);

  background: #143247;
}

.document-actions button:hover {
  transform: translateY(-3px);

  background: #00d8ff;

  color: black;

  box-shadow: 0 0 20px rgba(0, 216, 255, 0.35);
}

/* ========================================= */

@media (max-width: 700px) {
  .document-details-body {
    flex-direction: column;

    align-items: center;
  }

  .document-preview-icon {
    width: 90px;

    height: 90px;

    font-size: 52px;
  }

  .document-actions {
    grid-template-columns: 1fr;
  }
}
.document-header-left {
  display: flex;

  align-items: center;

  gap: 16px;
}

.document-header-icon {
  width: 64px;

  height: 64px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 34px;

  border-radius: 18px;

  background: #143247;

  border: 1px solid rgba(0, 216, 255, 0.25);

  flex-shrink: 0;
}

.document-header-info {
  display: flex;

  flex-direction: column;

  gap: 6px;
}

.document-header-info h2 {
  margin: 0;

  font-size: 28px;

  color: var(--text-primary);
}

.document-ai-status {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #74ffae;

  font-size: 14px;

  font-weight: 600;
}

.status-dot {
  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: #57ff8d;

  box-shadow: 0 0 12px #57ff8d;
}
