/* ==========================================
   SMART PARKING REPORT - PREMIUM STYLES
   ========================================== */

:root {
    /* Color Palette - Modern & Professional */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --card: #ffffff;
    --border: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ==========================================
   HERO HEADER
   ========================================== */

.hero {
    background: var(--gradient-2);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section.dark {
    background: var(--bg-dark);
    color: white;
    max-width: 100%;
    padding: 5rem calc((100% - 1200px) / 2 + 2rem);
}

.section.dark .section-number {
    color: var(--accent-light);
}

.section.dark h2 {
    color: white;
}

.section.dark .intro-text {
    color: rgba(255, 255, 255, 0.8);
}

.section.accent {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    max-width: 100%;
    padding: 5rem calc((100% - 1200px) / 2 + 2rem);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* ==========================================
   FEATURE CARDS (Section 1)
   ========================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   CANVAS / ANIMATIONS
   ========================================== */

.canvas-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.section.dark .canvas-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

canvas {
    max-width: 100%;
    border-radius: 12px;
    background: #f8fafc;
}

.section.dark canvas {
    background: rgba(0, 0, 0, 0.2);
}

#archCanvas {
    width: 100%;
    height: 350px;
}

#sensorCanvas {
    width: 100%;
    height: 400px;
}

.canvas-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.section.dark .legend-item {
    color: rgba(255, 255, 255, 0.7);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.sensor {
    background: #3b82f6;
}

.dot.gateway {
    background: #f59e0b;
}

.dot.server {
    background: #8b5cf6;
}

.dot.packet {
    background: #ef4444;
}

.canvas-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* ==========================================
   LEVEL CARDS (Section 2)
   ========================================== */

.level-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .level-cards {
        grid-template-columns: 1fr;
    }
}

.level-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.level-card.highlight {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
}

.level-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.level-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.level-card ul {
    list-style: none;
}

.level-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.level-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

/* ==========================================
   SPLIT LAYOUT (Section 3)
   ========================================== */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.text-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status.occupied {
    background: #fef2f2;
    color: #dc2626;
}

.status.free {
    background: #f0fdf4;
    color: #16a34a;
}

/* Step List */
.step-list {
    margin-top: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
}

.step-num {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.canvas-side {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* ==========================================
   TELEMETRY GRID (Section 4)
   ========================================== */

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.telemetry-item:hover {
    transform: translateX(5px);
}

.tel-icon {
    font-size: 2rem;
    background: #f0f9ff;
    padding: 0.75rem;
    border-radius: 12px;
}

.tel-label {
    display: block;
    font-weight: 600;
    color: var(--primary);
}

.tel-value {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================
   COMMUNICATION (Section 5)
   ========================================== */

.comm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .comm-grid {
        grid-template-columns: 1fr;
    }
}

.comm-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.comm-card.highlight {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: white;
}

.comm-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.protocol {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.protocol:last-child {
    margin-bottom: 0;
}

.protocol strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.protocol p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.secure-list {
    list-style: none;
}

.secure-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.secure-list li:last-child {
    border-bottom: none;
}

.secure-list strong {
    color: var(--accent-light);
}

/* Handshake Diagram */
.handshake-diagram {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.handshake-diagram h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.handshake-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hs-node {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

.hs-node.sensor {
    background: #dbeafe;
    color: #1e40af;
}

.hs-node.gateway {
    background: #fef3c7;
    color: #92400e;
}

.hs-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.arrow-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.arrow-line {
    width: 80px;
    height: 3px;
    background: var(--accent);
    position: relative;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--accent);
}

.hs-arrow.reverse .arrow-line::after {
    right: auto;
    left: 0;
    border-left-color: transparent;
    border-right-color: var(--accent);
}

.hs-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--warning);
}

/* ==========================================
   GATEWAY (Section 6)
   ========================================== */

.gateway-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .gateway-layout {
        grid-template-columns: 1fr;
    }
}

.spec-list {
    margin-top: 1.5rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-label {
    color: rgba(255, 255, 255, 0.6);
}

.spec-value {
    font-weight: 500;
}

.gateway-visual {
    text-align: center;
}

.gw-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.gw-icon {
    font-size: 3rem;
}

.gw-connections {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================
   STATUS CARDS (Section 7)
   ========================================== */

.status-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .status-cards {
        grid-template-columns: 1fr;
    }
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-card.online .status-indicator {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-card.offline .status-indicator {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

.status-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.recovery-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 1.5rem;
}

.recovery-box h4 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.recovery-box p {
    color: #15803d;
    margin: 0;
}

/* ==========================================
   SECURITY (Section 8)
   ========================================== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.security-item:hover {
    transform: scale(1.05);
}

.sec-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.security-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.security-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.alert-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.alert-box strong {
    color: #92400e;
    display: block;
    margin-bottom: 0.5rem;
}

.alert-box p {
    color: #78350f;
    margin: 0;
}

/* ==========================================
   SERVER FEATURES (Section 9)
   ========================================== */

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.sf-item {
    background: white;
    border: 2px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sf-item:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==========================================
   BENEFITS (Section 12)
   ========================================== */

.benefits-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.benefit:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.b-icon {
    font-size: 1.5rem;
}

/* ==========================================
   APPLICATION GRID (Section 11)
   ========================================== */

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .application-grid {
        grid-template-columns: 1fr;
    }
}

.application-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.application-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.application-card.blue {
    border-color: #3b82f6;
}

.application-card.yellow {
    border-color: #f59e0b;
}

.application-card.orange {
    border-color: #f97316;
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.application-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: white;
}

.application-card h4 {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.application-card ul {
    list-style: none;
    text-align: left;
}

.application-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.application-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Alert Box Success Variant */
.alert-box.success {
    background: #dcfce7;
    border-left-color: #22c55e;
}

.alert-box.success strong {
    color: #166534;
}

.alert-box.success p {
    color: #15803d;
}

/* Police Legend Dot */
.dot.police {
    background: #ef4444;
}

/* ==========================================
   TIMELINE (Section 11)
   ========================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
}

.tl-marker {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: white;
    border: 2px solid var(--border);
}

.timeline-item.done .tl-marker {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.timeline-item.next .tl-marker {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.timeline-item.future .tl-marker {
    background: white;
    color: var(--text-light);
}

.tl-content strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.tl-content p {
    margin: 0;
    color: var(--text-light);
}

/* ==========================================
   FOOTER
   ========================================== */

.report-footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.conclusion em {
    color: var(--accent-light);
}

.meta {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    body {
        font-size: 12pt;
        background: white;
        color: black;
    }

    .hero {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }

    .section.dark,
    .section.accent {
        background: #f5f5f5 !important;
        color: black;
    }

    .section.dark h2,
    .section.dark p,
    .section.dark .intro-text,
    .section.dark li {
        color: black !important;
    }

    .floating-icon {
        display: none;
    }

    canvas {
        max-height: 200px;
    }

    .feature-card,
    .level-card,
    .comm-card,
    .telemetry-item,
    .status-card,
    .security-item {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}