/* Document Detail Page Styles */

/* Back Button */
.back-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-secondary, #4a5568);
  font-size: 0.95rem;
  padding: 8px 0;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.back-button:hover {
  color: var(--primary-color, #f6961d);
}

.back-button svg {
  margin-right: 8px;
}

/* Document Header */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary, #2d3748);
}

.doc-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.classification-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: rgba(246, 150, 29, 0.1);
  color: var(--primary-color, #f6961d);
}

.classification-business-confidential {
  background-color: rgba(246, 150, 29, 0.1);
  color: var(--primary-color, #f6961d);
}

.classification-customer-confidential {
  background-color: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.classification-public {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 8px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn svg {
  margin-right: 8px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  color: var(--text-secondary, #4a5568);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--primary-color, #f6961d);
  border: 1px solid var(--primary-color, #f6961d);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color, #e88c18);
  border-color: var(--secondary-color, #e88c18);
}

.mr-2 {
  margin-right: 8px;
}

/* Document Sections */
.doc-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.doc-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary, #2d3748);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Document Preview */
.document-preview {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #4a5568);
}

.file-icon {
  margin-bottom: 16px;
  color: var(--text-secondary, #4a5568);
}

.file-info {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary, #4a5568);
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 8px;
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.property-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-item.full-width {
  grid-column: 1 / -1;
}

.property-item.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: var(--text-secondary, #4a5568);
}

.text-secondary {
  color: var(--text-secondary, #4a5568);
}

/* History Panel */
.history-panel {
  margin-top: 24px;
}

.history-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.history-item:hover {
  background: rgba(246, 150, 29, 0.05);
}

.history-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-color, #f6961d);
  border-radius: 50%;
  color: white;
}

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

.history-title {
  font-weight: 500;
  color: var(--text-primary, #2d3748);
}

.history-details {
  font-size: 0.9rem;
  color: var(--text-secondary, #4a5568);
}

.history-date {
  font-size: 0.85rem;
  color: var(--text-secondary, #4a5568);
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  /* background: white; */
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .doc-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .file-info {
    flex-direction: column;
    gap: 8px;
  }
}
