/* Global Styles */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #2ec4b6;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --gray-color: #6c757d;
  --gray-light: #e9ecef;
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.min-vh-75 {
  min-height: 75vh;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Navbar */
.navbar {
  transition: var(--transition);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Step Circles */
.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Avatar Circles */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Cards */
.card {
  transition: var(--transition);
  border-radius: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Dashboard Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: var(--dark-color);
  color: white;
  padding-top: 1rem;
  transition: var(--transition);
  z-index: 1000;
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.main-content {
  margin-left: 250px;
  padding: 2rem;
  transition: var(--transition);
}

/* Progress Bar */
.progress-bar {
  background-color: var(--primary-color);
}

/* Resume Templates */
.template-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.template-card.selected {
  border-color: var(--primary-color);
}

.template-card:hover {
  border-color: var(--gray-light);
}

/* Resume Preview */
.resume-preview {
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 800px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* For real-time resume preview */
.sticky-preview {
  position: sticky;
  top: 2rem;
}

/* Mobile menu toggle */
.menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  display: none;
}

@media (max-width: 991.98px) {
  .menu-toggle {
    display: block;
  }
}

/* Resume Templates */
.resume-template {
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.resume-template:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resume-template.selected {
  border-color: var(--primary-color);
}

/* Job Cards */
.job-card {
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.badge-pill {
  border-radius: 50rem;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

/* Dynamic form fields */
.dynamic-field {
  position: relative;
  padding-right: 40px;
}

.remove-field {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Tooltip */
.custom-tooltip {
  position: relative;
  display: inline-block;
}

.custom-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
