/*
 * RecruitPro - Modern Military Recruitment Platform
 * Sleek black and white design with excellent typography
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #000000;
  --secondary-black: #1a1a1a;
  --tertiary-black: #2a2a2a;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-black);
  background-color: var(--light-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-black);
  background: var(--light-gray);
}

/* Cards and Panels */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
  background: var(--white);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--medium-gray);
  background: var(--light-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--secondary-black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-black);
  border: 1px solid var(--medium-gray);
}

.btn-secondary:hover {
  background: var(--light-gray);
  border-color: var(--dark-gray);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

.table th {
  font-weight: 600;
  color: var(--primary-black);
  background: var(--light-gray);
}

.table tbody tr:hover {
  background: var(--light-gray);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background: var(--success);
  color: var(--white);
}

.badge-warning {
  background: var(--warning);
  color: var(--white);
}

.badge-danger {
  background: var(--error);
  color: var(--white);
}

.badge-info {
  background: var(--info);
  color: var(--white);
}

.badge-secondary {
  background: var(--medium-gray);
  color: var(--primary-black);
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-black) 0%, #1a1a1a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 0;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.sidebar-header {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.sidebar-header p {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 2rem 0;
}

.sidebar-nav li {
  margin: 0.5rem 1.5rem;
  position: relative;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-nav a:hover::before {
  left: 100%;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-decoration: none;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--white);
  border-left: 4px solid #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-nav a.active::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
}

.sidebar-nav a i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-black);
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-user-info h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-user-info p {
  margin: 0.25rem 0 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.main-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}

/* Progress Bars */
.progress {
  height: 8px;
  background: var(--medium-gray);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary-black);
  transition: width 0.3s ease;
}

.progress-bar.bg-success { background: var(--success); }
.progress-bar.bg-warning { background: var(--warning); }
.progress-bar.bg-danger { background: var(--error); }

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Applications Grid Layout */
.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.application-row {
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--white);
  margin-bottom: 0.75rem;
}

.application-row:last-child {
  margin-bottom: 0;
}

.application-row:hover {
  background-color: var(--light-gray);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.application-row[data-priority="high"] {
  border-left: 4px solid var(--error);
  box-shadow: var(--shadow-sm);
}

.application-row[data-status="approved"] {
  border-left: 4px solid var(--success);
}

.application-row[data-status="rejected"] {
  border-left: 4px solid var(--error);
}

/* Enhanced Profile Cards */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-card-info {
  flex-grow: 1;
  min-width: 0; /* Allows text truncation */
}

.profile-card-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
  font-size: 1.1rem;
}

.profile-card-details {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Button Groups */
.btn-group {
  display: flex;
  gap: 0.25rem;
}

.btn-group .btn {
  border-radius: var(--border-radius) !important;
}

/* Enhanced Progress Bars */
.progress {
  background-color: var(--medium-gray);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Fitness Page Styles */
.fitness-stat-card {
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
}

.fitness-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fitness-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.fitness-metric {
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  margin-bottom: 1rem;
}

.fitness-metric-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

.exercise-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opat-exercise {
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--medium-gray);
}

.workout-exercise {
  transition: var(--transition);
}

.workout-exercise:hover {
  transform: translateX(5px);
}

.progress-chart {
  display: flex;
  align-items: end;
  gap: 1rem;
  height: 120px;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
}

.chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.bar {
  width: 100%;
  min-height: 20px;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.bar:hover {
  opacity: 0.8;
}

.bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.achievement-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  transition: var(--transition);
}

.achievement-item:hover {
  background: var(--medium-gray);
  transform: translateX(5px);
}

.achievement-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Mini Stats */
.mini-stat {
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  text-align: center;
}

.mini-stat h5 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.mini-stat small {
  color: var(--dark-gray);
  font-weight: 500;
}

/* Enhanced Exercise Spacing */
.opat-exercise {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
}

.opat-exercise:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workout-exercise {
  transition: var(--transition);
  margin-bottom: 1rem;
}

.workout-exercise:hover {
  transform: translateX(3px);
}

/* Better badge spacing */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* Enhanced button spacing */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  gap: 0.375rem;
}

/* Fitness specific spacing fixes */
.opat-exercise .d-flex {
  align-items: flex-start !important;
}

.exercise-info {
  flex-grow: 1;
}

.exercise-info h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-black);
}

.exercise-info p {
  font-size: 0.875rem;
  line-height: 1.4;
}

.exercise-actions {
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.exercise-actions .badge {
  margin-bottom: 0.5rem;
}

.exercise-actions button {
  min-width: 100px;
}

/* Glowing Button Animation */
.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(0, 0, 0, 0.2);
  }
}

.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Campaign Modal Styles */
.campaign-step {
  display: none;
  animation: slideInRight 0.3s ease-out;
}

.campaign-step.active {
  display: block;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--medium-gray);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 1rem;
  position: relative;
}

.step-circle.active {
  background: var(--primary-black);
}

.step-circle.completed {
  background: var(--success);
}

.step-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2rem;
  height: 2px;
  background: var(--medium-gray);
  transform: translateY(-50%);
}

.step-circle:last-child::after {
  display: none;
}

.step-circle.completed::after {
  background: var(--success);
}

/* Real-time Meters */
.campaign-meter {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.5s ease;
}

.campaign-meter.high-impact {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--success);
}

.campaign-meter.medium-impact {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid var(--warning);
}

.campaign-meter.low-impact {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--error);
}

.meter-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* Campaign Loader */
.campaign-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--medium-gray);
  border-top: 4px solid var(--primary-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-steps {
  text-align: center;
}

.loader-step {
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.loader-step.active {
  opacity: 1;
  font-weight: 600;
}

/* Live Campaign Ticker */
.campaign-ticker-container {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2d2d2d 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.campaign-ticker {
  display: flex;
  align-items: center;
  height: 65px;
  color: var(--white);
}

.ticker-header {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
  text-transform: uppercase;
}

.ticker-header::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid var(--success);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.ticker-header i {
  width: 18px;
  height: 18px;
  animation: tickerPulse 2s infinite;
}

@keyframes tickerPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

.ticker-scroll {
  display: flex;
  animation: tickerScroll 270s linear infinite;
  white-space: nowrap;
  gap: 2rem;
  width: max-content;
}

@keyframes tickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  gap: 0.75rem;
  color: var(--white);
}

.ticker-stat {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1em;
}

.ticker-metric {
  color: #60a5fa;
  font-weight: 700;
  font-size: 1.05em;
}

.ticker-alert {
  color: var(--warning);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.ticker-campaign {
  color: #a78bfa;
  font-weight: 600;
}

.ticker-trend {
  color: #34d399;
  font-weight: 700;
}

/* Hover to pause ticker */
.campaign-ticker-container:hover .ticker-scroll {
  animation-play-state: paused;
}

/* Ticker responsive */
@media (max-width: 768px) {
  .campaign-ticker {
    height: 55px;
  }
  
  .ticker-header {
    font-size: 0.75rem;
    padding: 0 1rem;
  }
  
  .ticker-item {
    font-size: 0.85rem;
  }
}

/* Enhanced Dashboard Styles */
.metric-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-color: var(--success);
}

.metric-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 50%;
  margin: 0 auto;
}

.metric-icon i {
  width: 24px;
  height: 24px;
}

.metric-progress {
  margin-top: 0.5rem;
}

.metric-value {
  transition: all 0.3s ease;
}

/* Activity Feed Styles */
.activity-feed {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
  transition: background-color 0.2s ease;
}

.activity-item:hover {
  background: var(--light-gray);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-icon i {
  width: 18px;
  height: 18px;
}

.activity-content {
  flex-grow: 1;
}

.activity-content p {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-content small {
  font-size: 0.75rem;
}

/* Pipeline Enhancements */
.pipeline-stage {
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  transition: all 0.2s ease;
  cursor: pointer;
}

.pipeline-stage:hover {
  background: var(--medium-gray);
  transform: translateX(5px);
}

.pipeline-progress {
  min-width: 80px;
}

.pipeline-details {
  padding-left: 1.5rem;
}

/* Pulse Animation */
.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Enhanced Cards */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status Badges Enhancement */
.badge {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Button Enhancements */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Progress Bar Enhancements */
.progress {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Responsive Dashboard */
@media (max-width: 992px) {
  .metric-card {
    margin-bottom: 1rem;
  }
  
  .activity-feed {
    max-height: 200px;
  }
  
  .pipeline-stage {
    margin-bottom: 0.75rem;
  }
}

/* Future Soldier Community Styles */
.community-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.community-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.stat-icon i {
  width: 28px;
  height: 28px;
}

.community-stat h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.community-nav {
  border-bottom: 1px solid var(--medium-gray);
}

.nav-tabs {
  border-bottom: none;
  gap: 1rem;
}

.nav-link {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--medium-gray);
  font-weight: 500;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--primary-black);
  background: var(--light-gray);
}

.nav-link.active {
  color: var(--primary-black);
  background: var(--white);
  border-bottom: 2px solid var(--primary-black);
}

.community-tab {
  min-height: 400px;
  padding: 1.5rem 0;
}

.qa-feed {
  max-height: 600px;
  overflow-y: auto;
}

.qa-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

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

.qa-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.qa-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.qa-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 0.75rem;
}

.qa-description {
  color: var(--dark-gray);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.qa-tags {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.qa-footer {
  display: flex;
  justify-content: between;
  align-items: center;
}

.qa-stats {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
}

.qa-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--medium-gray);
  font-size: 0.85rem;
}

.qa-stat i {
  width: 16px;
  height: 16px;
}

.qa-actions {
  display: flex;
  gap: 0.5rem;
}

.community-sidebar .card {
  border: 1px solid var(--light-gray);
}

.trending-topic, .contributor {
  transition: background-color 0.2s ease;
}

.trending-topic:hover, .contributor:hover {
  background: var(--light-gray);
}

.contributor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.contributor-stats {
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .row {
    margin: 0;
  }
  
  .col {
    padding: 0;
    margin-bottom: 1rem;
  }
  
  [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .application-row .row {
    flex-direction: column;
  }
  
  .application-row .col-4,
  .application-row .col-3,
  .application-row .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
}