/* public/assets/style.css */

/* 1. Global Theme Variables */
:root {
    /* Brand Colors - Cyber Theme */
    --primary-color: #00f2ea;
    --primary-hover: #00d4ff;
    --secondary-color: #0b1120;
    --accent-color: #6366f1;

    /* Backgrounds */
    --bg-dark: #030712;
    /* Deepest Navy/Black */
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-grid: rgba(0, 242, 234, 0.03);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-highlight: #00f2ea;

    /* Glows */
    --glow-primary: 0 0 20px rgba(0, 242, 234, 0.3);

    /* Font */
    --font-main: 'Cairo', sans-serif;
}

/* 2. Base Styles */
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    /* Cyber Grid Background */
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #00f2ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 234, 0.2));
}

.text-cyan {
    color: var(--text-highlight) !important;
}

.lead {
    color: var(--text-muted);
    font-weight: 400;
}

/* 3. Components */

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 242, 234, 0.2);
}

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-color);
    color: #000;
    /* Black text for high contrast on Cyan */
    border: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    /* Sharper corners for cyber look */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
}

.btn-primary-gradient:hover {
    background: var(--primary-hover);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
    transform: translateY(-2px);
}

.btn-danger-gradient {
    background: #ef4444;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.btn-danger-gradient:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline-glass:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 242, 234, 0.05);
}

/* Feature Icons */
.feature-box {
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.glass-card:hover .feature-icon {
    background: var(--primary-color);
    color: #000;
}

/* Steps */
.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1rem;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

/* Pricing */
.pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.1);
    background: linear-gradient(180deg, rgba(0, 242, 234, 0.05) 0%, rgba(17, 24, 39, 0.9) 100%);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

/* Navbar */
.navbar {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Dynamic Navbar States */
.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Glass Effect */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Stats */
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-muted {
    color: #94a3b8 !important;
}

.form-control {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    background: rgba(17, 24, 39, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 242, 234, 0.1);
    color: #fff;
}

/* 6. Wizard Steps */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
    transform: translateY(-50%);
}

.step-item {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s;
    position: relative;
}

.step-item.active {
    border-color: var(--primary-color);
    background: var(--bg-dark);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
}

.step-item.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Cursor Blink Effect */
.cursor-blink {
    color: var(--primary-color);
    font-weight: 400;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 7. Print Styles for PDF */
/* 7. Print Styles for PDF */
/* Service Tabs */
.service-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.service-tab:hover:not(.disabled) {
    background: rgba(0, 242, 234, 0.1);
    color: #fff;
    border-color: var(--primary-color);
}

.service-tab.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.service-tab.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

/* 7. Print Styles for PDF */
@media print {
    @page {
        margin: 1cm;
        size: auto;
    }

    /* Disable all animations and transitions */
    * {
        animation: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        opacity: 1 !important;
        /* Ensure everything is visible */
        transform: none !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
        color: #000 !important;
        min-height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        overflow: visible !important;
    }

    /* Layout Reset - Aggressive */
    .container,
    .container-fluid,
    .row,
    .col-md-4,
    .col-12,
    .report-page-container {
        width: 100% !important;
        max-width: none !important;
        min-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 0 0 100% !important;
        display: block !important;
        overflow: visible !important;
        position: static !important;
    }

    /* Components Reset */
    .glass-card,
    .card-header,
    .card-footer,
    .report-container {
        background: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        color: #000 !important;
        backdrop-filter: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .alert {
        background: #fff !important;
        border: 2px solid #000 !important;
        color: #000 !important;
        padding: 15px !important;
        font-weight: bold !important;
        margin-bottom: 20px !important;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 5px 0 !important;
        /* Minimal padding */
        background: #fff !important;
        border: none !important;
        color: #000 !important;
    }

    .card-header {
        border-bottom: 2px solid #000 !important;
        margin-bottom: 20px !important;
    }

    /* Summary board horizontal */
    .row.mb-5.g-4 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px !important;
    }

    .row.mb-5.g-4 .col-md-4 {
        width: 32% !important;
        /* Fit 3 items */
        flex: 0 0 32% !important;
    }

    .p-3.rounded-3 {
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Text Colors */
    .text-white,
    .text-muted,
    .text-info,
    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    span,
    strong {
        color: #000 !important;
        text-shadow: none !important;
    }

    /* Table Fixes */
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 10pt;
        margin-top: 20px;
        table-layout: auto !important;
        /* Let browser decide width */
    }

    .table td,
    .table th {
        border: 1px solid #000 !important;
        padding: 4px !important;
        background-color: #fff !important;
        color: #000 !important;
        word-wrap: break-word;
        white-space: normal !important;
        overflow-wrap: break-word;
    }

    /* Hide non-printable elements */
    .d-print-none,
    nav,
    .navbar,
    .btn,
    footer,
    .cursor-blink,
    a[href^="scan.php"] {
        display: none !important;
    }

    .badge {
        color: #000 !important;
        border: 1px solid #000 !important;
        font-weight: bold;
    }
}

/* Announcement Bar Styles */
.announcement-bar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 15px;
    /* RTL margin */
}

.announcement-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Trusted Badge Redesign */
.trusted-badge-container {
    background: rgba(2, 6, 23, 0.7);
    /* Darker, more visible background */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 234, 0.15);
    /* Subtle cyan border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Depth shadow */
    transition: all 0.3s ease;
}

.trusted-badge-container:hover {
    background: rgba(2, 6, 23, 0.9);
    border-color: rgba(0, 242, 234, 0.4);
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.15);
    transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}