/* Custom styles for Resume Builder */

/* CSS Custom Properties for Theme System */
:root {
  /* Default theme values */
  --resume-primary-color: #0d6efd;
  --resume-heading-color: #333333;
  --resume-text-color: #333333;
  --resume-border-color: #333333;
  --resume-background-color: #ffffff;
  --resume-font-family: 'Times New Roman', serif;
  --resume-font-size: 14px;
  --resume-heading-size: 18px;
  --resume-line-height: 1.4;
  --resume-spacing-base: 1rem;
  --resume-spacing-section: 1.5rem;
  --resume-spacing-compact: 0.75rem;
  --resume-spacing-spacious: 2rem;
}

/* Override Bootstrap defaults for better resume styling */
.resume-preview {
  font-family: var(--resume-font-family);
  line-height: var(--resume-line-height);
  color: var(--resume-text-color);
  background-color: var(--resume-background-color);
}

.resume-preview h2 {
  font-size: var(--resume-heading-size);
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--resume-heading-color);
}

.resume-preview h5 {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--resume-border-color);
  padding-bottom: 0.25rem;
  margin-bottom: var(--resume-spacing-base);
  color: var(--resume-heading-color);
}

.resume-preview p {
  margin-bottom: 0.75rem;
  font-size: var(--resume-font-size);
}

.resume-preview .text-muted {
  color: #666 !important;
}

/* Resume themed content wrapper */
.resume-themed {
  font-family: var(--resume-font-family);
  color: var(--resume-text-color);
  line-height: var(--resume-line-height);
  background-color: var(--resume-background-color);
}

.resume-themed h2 {
  font-size: var(--resume-heading-size);
  color: var(--resume-heading-color);
  margin-bottom: var(--resume-spacing-base);
}

.resume-themed h5 {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--resume-border-color);
  padding-bottom: 0.25rem;
  margin-bottom: var(--resume-spacing-base);
  color: var(--resume-heading-color);
}

.resume-themed p {
  font-size: var(--resume-font-size);
  margin-bottom: 0.75rem;
}

.resume-themed .section {
  margin-bottom: var(--resume-spacing-section);
}

/* Custom button styles */
.btn-custom {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form styling improvements */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  color: #495057;
}

/* Card styling */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
}

.card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
  border-bottom: none;
}

/* Skill tags */
.skill-tag {
  display: inline-block;
  margin: 0.25rem;
}

/* Sticky preview */
.sticky-top {
  position: sticky;
  top: 1rem;
  z-index: 1020;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animation for smooth transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sticky-top {
    position: relative;
    top: auto;
  }
  
  .resume-preview {
    font-size: 0.9rem;
  }
  
  .resume-preview h2 {
    font-size: 1.5rem;
  }
}

/* Chevron rotation for collapsible sections */
.btn-link .bi-chevron-down {
  transition: transform 0.3s ease;
}

.btn-link.collapsed .bi-chevron-down {
  transform: rotate(-90deg);
}

/* Print styles for PDF export */
@media print {
  .resume-preview {
    font-size: 12pt;
    line-height: 1.3;
  }
  
  .resume-preview h2 {
    font-size: 16pt;
  }
  
  .resume-preview h5 {
    font-size: 12pt;
  }
}


