/* styles.css - Corporate Identity Stylesheet for Overtime GmbH HR & Salary Dashboard */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&family=Roboto+Slab:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700;900&display=swap');

/* Color variables & tokens */
:root {
  --primary: #2A3F6B; /* Deep Navy */
  --primary-rgb: 42, 63, 107;
  --secondary: #3E5C9A; /* Steel Blue */
  --secondary-rgb: 62, 92, 154;
  --accent: #C8B06E; /* Luxury Gold */
  --accent-rgb: 200, 176, 110;
  --accent-hover: #B79E5A;
  --text-dark: #2B2B2B;
  --text-muted: #666666;
  --bg-app: #F5F7FA;
  --white: #FFFFFF;
  
  /* Modern Glassmorphism variables */
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.5);
  --sidebar-bg: linear-gradient(180deg, #1D2E53 0%, #2A3F6B 100%);
  --gold-gradient: linear-gradient(135deg, #DFCA8D 0%, #C8B06E 100%);
  --blue-gradient: linear-gradient(135deg, #3E5C9A 0%, #2A3F6B 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(42, 63, 107, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 63, 107, 0.08);
  --shadow-lg: 0 16px 40px rgba(42, 63, 107, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(42, 63, 107, 0.06);
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Fonts */
  --font-primary: 'Roboto', 'Nunito Sans', sans-serif;
  --font-title: 'Roboto Slab', serif;
}

/* Base resets & scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Custom Scrollbar for modern visual premium */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(42, 63, 107, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 176, 110, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Main Dashboard Structure */
.dashboard-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar Navigation & Filters */
aside.sidebar {
  width: 300px;
  background: var(--sidebar-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  overflow-y: auto;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Navigation Links (PowerBI Page Tabs) */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  gap: 12px;
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 176, 110, 0.4);
  box-shadow: inset 4px 0 0 var(--accent);
}

/* Filter Section in Sidebar */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reset-filters-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 11px;
  transition: color 0.2s;
}

.reset-filters-btn:hover {
  color: var(--accent);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.filter-select, .search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.filter-select option {
  background: #1D2E53;
  color: var(--white);
}

.filter-select:focus, .search-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(200, 176, 110, 0.25);
}

/* Main Dashboard Area */
main.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-app);
}

/* Top bar styled header */
header.top-bar {
  height: 80px;
  background-color: var(--white);
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  z-index: 5;
}

.welcome-info h1 {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.welcome-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.global-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background-color: var(--white);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(42, 63, 107, 0.02);
}

.action-btn.primary-action {
  background: var(--gold-gradient);
  border: none;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(200, 176, 110, 0.25);
}

.action-btn.primary-action:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(200, 176, 110, 0.35);
  transform: translateY(-1px);
}

/* Dashboard Viewport Area */
.viewport {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-page {
  display: none; /* Controlled via JS */
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease forwards;
}

.dashboard-page.active {
  display: flex;
}

/* Keyframe for page fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layout definitions for Page Content */
.top-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.charts-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.charts-three-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-split-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  align-items: start;
}

/* Glassmorphism Cards styling */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 176, 110, 0.25);
}

.glass-card:hover::before {
  background: var(--accent);
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.glass-card-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* KPI Card specifics */
.kpi-card {
  padding: 20px 24px;
  justify-content: center;
}

.kpi-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.kpi-trend.positive {
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.1);
}

.kpi-trend.negative {
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.kpi-trend.neutral {
  color: #6B7280;
  background-color: rgba(107, 114, 128, 0.1);
}

.kpi-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  color: rgba(42, 63, 107, 0.08);
}

/* Chart containers */
.chart-container {
  position: relative;
  width: 100%;
  height: 250px;
}

.chart-container-large {
  position: relative;
  width: 100%;
  height: 320px;
}

/* Custom Table component */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.custom-table th {
  padding: 12px 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid #E2E8F0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #EDF2F7;
  color: var(--text-dark);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr {
  transition: background-color 0.2s;
  cursor: pointer;
}

.custom-table tbody tr:hover {
  background-color: rgba(62, 92, 154, 0.04);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.badge-inactive {
  background-color: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.badge-blue {
  background-color: rgba(62, 92, 154, 0.12);
  color: var(--secondary);
}

.badge-gold {
  background-color: rgba(200, 176, 110, 0.15);
  color: #9C8343;
}

/* Employee profile details cards */
.profile-card {
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(200, 176, 110, 0.2);
}

.profile-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.profile-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-details-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.profile-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.profile-detail-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Select Employee dropdown style for Page 3 */
.employee-select-wrapper {
  margin-bottom: 20px;
  width: 100%;
}

.employee-dropdown {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--primary);
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.employee-dropdown:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 176, 110, 0.2);
}

/* Career and Promotion timeline in Page 3 */
.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  position: relative;
  padding-left: 20px;
}

.career-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: #E2E8F0;
}

.timeline-event {
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.timeline-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.timeline-event-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.timeline-event-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-event-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Modern Pay Gap visualizer */
.paygap-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.paygap-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 4px solid var(--white);
}

.paygap-circle::after {
  content: '';
  position: absolute;
  top: -6px; right: -6px; bottom: -6px; left: -6px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
}

.paygap-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.paygap-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.paygap-desc {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 10px;
}

/* Responsive queries */
@media (max-width: 1200px) {
  .top-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-row-grid {
    grid-template-columns: 1fr;
  }
  .charts-three-cols-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  aside.sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  main.main-content {
    height: auto;
    overflow: visible;
  }
  header.top-bar {
    padding: 16px 24px;
    height: auto;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .viewport {
    padding: 16px;
  }
  .detail-split-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LANDING PAGE & LOGIN PANEL STYLES
   ========================================== */

/* Logo Image class */
.logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Landing Page Body override (to allow scrolling) */
.landing-body {
  background-color: var(--bg-app);
  color: var(--text-dark);
  font-family: var(--font-primary);
  overflow-y: auto !important; /* Forces scroll bar visibility on public page */
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing Page Header */
.landing-header {
  height: 80px;
  background-color: #1D2E53; /* Dark Navy */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.landing-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-logo-text {
  display: flex;
  flex-direction: column;
}

.landing-logo-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--white); /* White text for contrast */
  line-height: 1.2;
}

.landing-logo-subtitle {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-link {
  color: rgba(255, 255, 255, 0.95); /* Light navigation link */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--accent);
}

.landing-btn-login {
  background: var(--gold-gradient);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(200, 176, 110, 0.25);
  transition: all 0.25s ease;
}

.landing-btn-login:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(200, 176, 110, 0.35);
  transform: translateY(-1px);
}

/* Hero Section layout */
.hero-section {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  background-color: rgba(200, 176, 110, 0.12);
  color: #9C8343;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-btn-primary {
  background: var(--blue-gradient);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(42, 63, 107, 0.2);
  transition: all 0.25s ease;
}

.hero-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(42, 63, 107, 0.3);
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background-color: var(--white);
  border: 1px solid #CBD5E1;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.hero-btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(42, 63, 107, 0.02);
}

/* Dashboard Teaser mockup styling */
.hero-teaser {
  position: relative;
  display: flex;
  justify-content: center;
}

.teaser-glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.teaser-header {
  background-color: rgba(42, 63, 107, 0.05);
  border-bottom: 1px solid rgba(42, 63, 107, 0.08);
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.teaser-dots {
  display: flex;
  gap: 6px;
}

.teaser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #CBD5E1;
}

.teaser-tab {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--white);
  padding: 6px 14px;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(42, 63, 107, 0.08);
  border-bottom: none;
  margin-top: 10px;
}

.teaser-body-mock {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teaser-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.teaser-kpi {
  background-color: var(--white);
  border: 1px solid #E2E8F0;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teaser-kpi-lbl {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.teaser-kpi-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.teaser-chart-mock {
  height: 110px;
  border-bottom: 2px solid #E2E8F0;
  border-left: 2px solid #E2E8F0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 10px 4px;
}

.teaser-bar-item {
  width: 24px;
  background-color: rgba(62, 92, 154, 0.25);
  border-radius: 4px 4px 0 0;
}

.teaser-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(29, 46, 83, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--white);
  text-align: center;
  z-index: 5;
}

.teaser-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.teaser-lock-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 8px;
  animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); text-shadow: 0 0 15px rgba(200, 176, 110, 0.7); }
}

.teaser-overlay-content h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.teaser-overlay-content p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 290px;
}

.teaser-unlock-btn {
  background: var(--gold-gradient);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(200, 176, 110, 0.3);
  transition: all 0.2s;
}

.teaser-unlock-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Feature grid section style */
.features-section {
  background-color: var(--white);
  padding: 80px 40px;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-app);
  border: 1px solid #E2E8F0;
  padding: 36px 30px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--blue-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Security notice banner */
.security-note {
  background-color: var(--bg-app);
  padding: 60px 40px;
}

.security-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.security-icon {
  font-size: 30px;
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-text h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.security-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Login panel layout */
.login-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, #F5F7FA 0%, #E2E8F0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #E2E8F0;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.login-logo-header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-logo-img {
  height: 52px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.login-logo-header h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.login-logo-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
  background-color: var(--white);
}

.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 176, 110, 0.2);
}

.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(42, 63, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.login-submit-btn:hover {
  box-shadow: 0 6px 18px rgba(42, 63, 107, 0.25);
  transform: translateY(-1px);
}

.login-submit-btn.loading {
  background: #2A3F6B;
  box-shadow: none;
  cursor: wait;
  transform: none;
  opacity: 0.85;
}

.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

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

.login-error-box {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.3s ease;
  line-height: 1.4;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.credentials-info-box {
  margin-top: 24px;
  background-color: rgba(200, 176, 110, 0.08);
  border: 1px dashed rgba(200, 176, 110, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 12.5px;
  color: #8A7235;
  display: flex;
  gap: 12px;
  line-height: 1.5;
  text-align: left;
}

.credentials-info-box i {
  font-size: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.credential-code {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  font-weight: bold;
  color: var(--primary);
}

/* Landing footer */
.landing-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive configurations for landing views */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 36px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .landing-header {
    padding: 0 24px;
  }
}

