/* ============================================================
   FILE DETAILS DIALOG STYLES
   ============================================================ */

.file-details-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.file-details-dialog-overlay.open {
  display: flex;
}

.dialog-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background-color: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialogSlideIn 0.2s ease-out;
}

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

/* Dialog Header */
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.dialog-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dialog-icon {
  flex-shrink: 0;
  color: #06b6d4;
}

.dialog-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-close-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.dialog-close-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Dialog Tabs */
.dialog-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  background-color: rgba(15, 23, 42, 0.3);
}

.dialog-tab {
  padding: 12px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background-color: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dialog-tab:hover {
  color: #cbd5e1;
}

.dialog-tab.active {
  color: #06b6d4;
  border-bottom-color: #06b6d4;
}

/* Dialog Content */
.dialog-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Overview Tab */
.overview-tab .info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 14px;
  color: #e2e8f0;
}

.info-value.monospace {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  color: #94a3b8;
  word-break: break-all;
}

.info-value.capitalize {
  text-transform: capitalize;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.pending {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* AI Analysis Tab */
.ai-tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-section h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.ai-content {
  padding: 16px;
  background-color: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}

.ai-content.summary-content {
  max-height: 200px;
  overflow-y: auto;
}

.ai-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
}

.ai-processing .processing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.ai-processing h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #fbbf24;
}

.ai-processing p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.ai-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* Dialog Footer */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background-color: rgba(15, 23, 42, 0.3);
}

.dialog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dialog-btn.secondary {
  background-color: rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
}

.dialog-btn.secondary:hover {
  background-color: rgba(51, 65, 85, 0.8);
}

.dialog-btn.primary {
  background-color: #06b6d4;
  color: #0f172a;
}

.dialog-btn.primary:hover {
  background-color: #22d3ee;
}
