/* Checkpoint App - New Visual Identity 2026
   Palette: Orange Energy (#F15A24), Deep Blue (#003B5C),
            Gold (#FFB81C), Cloud White (#FAFAFA), Soft Gray (#E0E0E0)
*/

:root {
  --orange: #F15A24;
  --orange-dark: #d44d1a;
  --orange-light: #fff0e8;
  --blue: #003B5C;
  --blue-dark: #002a44;
  --blue-light: #e6f0f5;
  --gold: #FFB81C;
  --gold-dark: #e5a419;
  --gold-light: #fff8e6;
  --white: #FAFAFA;
  --gray: #E0E0E0;
  --gray-dark: #999;
  --text: #1a1a2e;
  --text-light: #666;
  --success: #22c55e;
  --error: #ef4444;

  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow: 0 2px 12px rgba(0,59,92,0.08);
  --shadow-hover: 0 6px 20px rgba(0,59,92,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
  background: var(--blue);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,59,92,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(241,90,36,0.4);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}

.nav-links a i { font-size: 1rem; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

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

.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241,90,36,0.35);
}

.btn-secondary {
  background: var(--blue);
  color: white;
}
.btn-secondary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--blue);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #16a34a;
}

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

.btn-block {
  width: 100%;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

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

/* Alerts */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid var(--success);
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--error);
}

.alert-warning {
  background: #fff8e6;
  color: #92400e;
  border-left: 4px solid var(--gold);
}

.alert-info {
  background: var(--blue-light);
  color: var(--blue);
  border-left: 4px solid var(--blue);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.badge-gold {
  background: var(--gold-light);
  color: #92400e;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--orange);
  transition: var(--transition);
}

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

.stat-icon {
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* KPI with specific color */
.stat-card.kpi-orange { border-top-color: var(--orange); }
.stat-card.kpi-blue { border-top-color: var(--blue); }
.stat-card.kpi-gold { border-top-color: var(--gold); }
.stat-card.kpi-green { border-top-color: var(--success); }

/* Filters Bar */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray);
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text-light);
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Section Title */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i { color: var(--orange); }

/* Page Header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.page-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-card .icon-wrap.orange { background: var(--orange-light); color: var(--orange); }
.feature-card .icon-wrap.blue { background: var(--blue-light); color: var(--blue); }
.feature-card .icon-wrap.gold { background: var(--gold-light); color: var(--gold-dark); }
.feature-card .icon-wrap.green { background: #dcfce7; color: var(--success); }

.feature-card h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Price Display */
.price-display {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-display .price-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--orange);
}

.price-display .price-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.price-display .price-sub {
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0.6rem 1rem; }
  .nav-links a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
  .page-title { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .price-display .price-value { font-size: 2rem; }
  .hide-mobile { display: none !important; }
}

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

.fade-in-up {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s infinite; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state .empty-icon {
  font-size: 3rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-light);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--gray);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead { background: var(--blue); color: white; }
th { padding: 0.9rem 1rem; text-align: left; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--gray); font-size: 0.9rem; }
tbody tr:hover { background: var(--orange-light); }

/* Print */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid var(--gray); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
