/* SAS Employee Hub - Site-wide Styles */

/* Document content background (optional gray) */
.doc-content {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 1rem;
}

/* Active navigation state */
.main-nav a.is-active {
  color: #58a6ff;
  border-bottom: 2px solid #58a6ff;
}

/* Travel Card Styles */
.travel-card-wrap {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.travel-card {
  background: #0c1a2b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
}

.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #0f2740, #0a1a2b);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-brand {
  font-size: 1.1rem;
  color: #9fd1ff;
}

.tc-name {
  color: #9fd1ff;
  font-size: 1.2rem;
}

.tc-section {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-section:first-of-type {
  border-top: none;
}

.tc-section h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: #9fd1ff;
  font-weight: 600;
}

.tc-section p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tc-section strong {
  color: #b8d4ff;
  font-weight: 500;
}

.tc-section span[data-out] {
  color: #fff;
  font-weight: 400;
}

.tc-actions {
  margin-top: 1rem;
  text-align: center;
}

/* Approval checkbox */
.approve {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-weight: 500;
}

.approve input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Form status messages */
#form-status {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

#form-status:empty {
  display: none;
}

/* Document breadcrumbs */
.doc-crumbs {
  margin: 0.5rem 0 1rem;
  display: flex;
  gap: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* All Documents page styles */
.doc-filters {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

#doc-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.doc-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doc-item a {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.doc-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0366d6;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.9rem;
  color: #586069;
  margin-bottom: 0.5rem;
}

.doc-desc {
  font-size: 0.95rem;
  color: #24292e;
  line-height: 1.5;
}

.empty {
  text-align: center;
  padding: 2rem;
  color: #586069;
  font-style: italic;
}

/* Admin styles */
.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e4e8;
}

.admin-nav {
  display: flex;
  gap: 1rem;
}

.admin-nav a {
  padding: 0.5rem 1rem;
  background: #f6f8fa;
  border-radius: 6px;
  text-decoration: none;
  color: #24292e;
  font-weight: 500;
  transition: background 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: #0366d6;
  color: #fff;
}

/* Print styles for Travel Card */
@media print {
  body * {
    visibility: hidden !important;
  }
  
  .travel-card,
  .travel-card * {
    visibility: visible !important;
  }
  
  .travel-card {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    box-shadow: none;
  }
  
  .tc-actions {
    display: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .doc-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .travel-card {
    font-size: 0.9rem;
  }
  
  .tc-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}