/* Safeweb Theme - Responsive Fullscreen Presentation */

/* Color Variables */
:root {
  --safeweb-dark-blue: #0954ce;
  --safeweb-primary: #0c56de;
  --safeweb-button: #15274f;
  --safeweb-light-bg: #f8fafc;
  --safeweb-white: #ffffff;
  --vivo-purple: #660099;
  --text-dark: #1a1a2e;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-light: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--safeweb-white);
  color: var(--text-dark);
  line-height: 1.4;
}

/* Slide Container - Responsive Fullscreen */
.slide {
  width: 100vw;
  height: 100vh;
  background: var(--safeweb-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Flexbox Utilities */
.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }
.fit { flex-shrink: 0; }
.fill { flex: 1; }

/* Header Zone */
.slide-header {
  padding: 3vh 5vw 2vh;
  flex-shrink: 0;
}

.slide-category {
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--safeweb-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 1vh;
}

.slide-title {
  font-size: clamp(24px, 4vw, 42px);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.1;
}

.slide-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-medium);
  font-weight: 400;
  margin-top: 1vh;
}

/* Content Zone */
.slide-content {
  flex: 1;
  padding: 2vh 5vw;
  overflow: hidden;
}

/* Footer Zone */
.slide-footer {
  padding: 1.5vh 5vw;
  background: var(--safeweb-light-bg);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.slide-footer p {
  font-size: clamp(9px, 1vw, 11px);
  color: var(--text-light);
}

/* Cards */
.card {
  background: var(--safeweb-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: clamp(12px, 2vw, 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-primary {
  background: linear-gradient(135deg, var(--safeweb-primary) 0%, var(--safeweb-dark-blue) 100%);
  color: white;
  border: none;
}

.card-dark {
  background: var(--safeweb-button);
  color: white;
  border: none;
}

/* Stat Cards */
.stat-card {
  text-align: center;
  padding: clamp(16px, 2vw, 24px);
}

.stat-value {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--safeweb-primary);
  line-height: 1;
}

.stat-label {
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--text-medium);
  margin-top: 1vh;
  line-height: 1.3;
}

/* Logo */
.logo-safeweb {
  height: clamp(28px, 4vw, 44px);
  width: auto;
}

.logo-safeweb.small {
  height: clamp(22px, 3vw, 32px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5vh 1.5vw;
  border-radius: 20px;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
}

.badge-primary {
  background: rgba(12, 86, 222, 0.1);
  color: var(--safeweb-primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Icon Circles */
.icon-circle {
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 86, 222, 0.1);
  color: var(--safeweb-primary);
  font-size: clamp(16px, 2vw, 22px);
}

.icon-circle.large {
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  font-size: clamp(22px, 2.5vw, 28px);
}

/* Charts */
.chart-container {
  background: var(--safeweb-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
  height: 100%;
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
  padding-top: 2vh;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}

.bar {
  width: clamp(40px, 5vw, 60px);
  background: linear-gradient(180deg, var(--safeweb-primary) 0%, var(--safeweb-dark-blue) 100%);
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
}

.bar.highlight {
  background: linear-gradient(180deg, var(--success) 0%, #059669 100%);
}

.bar.danger {
  background: linear-gradient(180deg, var(--danger) 0%, #b91c1c 100%);
}

.bar-value {
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 700;
  color: var(--text-dark);
}

.bar-label {
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--text-medium);
}

/* Progress Bars */
.progress-bar {
  height: clamp(6px, 1vh, 10px);
  background: var(--border-light);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--safeweb-primary) 0%, var(--safeweb-dark-blue) 100%);
  border-radius: 5px;
}

/* Timeline */
.timeline {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  height: 100%;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-badge {
  background: var(--safeweb-primary);
  color: white;
  padding: 0.5vh 1vw;
  border-radius: 20px;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1vh;
  text-align: center;
}

.timeline-content {
  background: var(--safeweb-light-bg);
  border-radius: 10px;
  padding: clamp(12px, 1.5vw, 18px);
  flex: 1;
}

.timeline-content.active {
  background: linear-gradient(135deg, var(--safeweb-primary) 0%, var(--safeweb-dark-blue) 100%);
  color: white;
}

/* Tables */
.table-container {
  background: var(--safeweb-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.table-header {
  background: var(--safeweb-button);
  color: white;
  padding: 1.5vh 2vw;
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 13px);
}

.table-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  flex: 1;
  padding: 1.5vh 2vw;
  font-size: clamp(11px, 1.2vw, 13px);
  display: flex;
  align-items: center;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(12, 86, 222, 0.05) 0%, rgba(9, 84, 206, 0.1) 100%);
  border: 1px solid rgba(12, 86, 222, 0.2);
  border-radius: 10px;
  padding: clamp(12px, 1.5vw, 18px);
}

/* Alerts */
.alert {
  padding: 1.5vh 2vw;
  border-radius: 8px;
  font-size: clamp(11px, 1.2vw, 13px);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

/* Phone Mockup */
.phone-mockup {
  width: clamp(120px, 12vw, 160px);
  height: clamp(240px, 24vw, 320px);
  background: white;
  border-radius: 20px;
  border: 3px solid #333;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  background: var(--vivo-purple);
  padding: 0.5vh 1vw;
  display: flex;
  justify-content: space-between;
  font-size: clamp(6px, 0.8vw, 8px);
  color: white;
  flex-shrink: 0;
}

.phone-header {
  background: linear-gradient(135deg, var(--vivo-purple) 0%, #4A0072 100%);
  padding: 1vh 1.5vw;
  color: white;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  flex-shrink: 0;
}

.phone-content {
  flex: 1;
  padding: 1vh 1vw;
  background: white;
  overflow: hidden;
}

/* Dividers */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 2vh 0;
}

.divider-vertical {
  width: 1px;
  background: var(--border-light);
  margin: 0 2vw;
}

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

.mt-8 { margin-top: 1vh; }
.mt-16 { margin-top: 2vh; }
.mb-8 { margin-bottom: 1vh; }
.mb-16 { margin-bottom: 2vh; }

.gap-8 { gap: 1vh; }
.gap-12 { gap: 1.5vh; }
.gap-16 { gap: 2vh; }
.gap-24 { gap: 3vh; }

.p-16 { padding: 2vh 2vw; }
.p-24 { padding: 3vh 3vw; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }

/* Responsive Typography */
.text-xs { font-size: clamp(9px, 1vw, 11px); }
.text-sm { font-size: clamp(11px, 1.2vw, 13px); }
.text-base { font-size: clamp(13px, 1.4vw, 15px); }
.text-lg { font-size: clamp(16px, 1.8vw, 20px); }
.text-xl { font-size: clamp(20px, 2.5vw, 28px); }
.text-2xl { font-size: clamp(28px, 3.5vw, 40px); }
.text-3xl { font-size: clamp(36px, 4.5vw, 52px); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors */
.text-primary { color: var(--safeweb-primary); }
.text-dark { color: var(--text-dark); }
.text-medium { color: var(--text-medium); }
.text-light { color: var(--text-light); }
.text-white { color: white; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.bg-primary { background: var(--safeweb-primary); }
.bg-dark { background: var(--safeweb-button); }
.bg-light { background: var(--safeweb-light-bg); }
.bg-white { background: var(--safeweb-white); }
