/* Bastion - Web Application Security Platform */
/* Custom CSS Styles */

:root {
    --bs-primary: #0d6efd;
    --bs-dark: #1a1a2e;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* General */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::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='%230d6efd' fill-opacity='0.05'%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-section .container {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
}

.security-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.grade-badge {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    color: #198754;
    background: white;
    padding: 10px 30px;
    border-radius: 10px;
}

/* Step Cards — equal-width row */
#kako-radi .row > [class*="col"] {
    flex: 0 0 20%;
    max-width: 20%;
}
@media (max-width: 991.98px) {
    #kako-radi .row > [class*="col"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 575.98px) {
    #kako-radi .row > [class*="col"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.step-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
#kako-radi .step-card h3 {
    font-size: 1.1rem;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
#kako-radi .step-card p {
    flex-grow: 1;
    margin-bottom: 0;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Module Cards */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.card-footer {
    border-top: none;
    padding: 1rem 1.25rem;
}

/* CMS Cards */
.cms-card {
    border: 2px solid #e9ecef;
}

.cms-card:hover {
    border-color: var(--bs-primary);
}

.cms-card img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.cms-card:hover img {
    filter: grayscale(0%);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 0.8rem 2rem;
}

/* Free Scan Section */
#scan {
    background: var(--gradient-primary);
}

#scan .input-group-lg .form-control {
    border-radius: 10px 0 0 10px;
    border: none;
    padding: 1rem 1.5rem;
}

#scan .input-group-lg .input-group-text {
    border: none;
    border-radius: 10px 0 0 10px;
}

#scan .input-group-lg .btn {
    border-radius: 0 10px 10px 0;
    padding: 1rem 2rem;
}

/* Scan Results */
.grade-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
}

.grade-display.grade-a { background: #d4edda; color: #198754; }
.grade-display.grade-b { background: #cfe2ff; color: #0d6efd; }
.grade-display.grade-c { background: #fff3cd; color: #856404; }
.grade-display.grade-d { background: #f8d7da; color: #dc3545; }
.grade-display.grade-f { background: #f8d7da; color: #dc3545; }

/* Remediation Features */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Floating Cart */
.cart-float {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
}

.cart-float:hover {
    transform: scale(1.1);
}

/* Offcanvas */
.offcanvas {
    width: 400px !important;
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item .remove-item {
    color: #dc3545;
    cursor: pointer;
}

/* Slot Status */
.slot-status .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .security-badge {
        padding: 30px;
    }
    
    .grade-badge {
        font-size: 2rem;
        padding: 5px 20px;
    }
    
    .offcanvas {
        width: 100% !important;
    }
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* NIS2 Banner */
.bg-primary.text-white h4 {
    margin-bottom: 0.5rem;
}

/* Footer Links */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Alert Boxes */
.alert {
    border-radius: 10px;
}

/* Tables in results */
.table {
    margin-bottom: 0;
}

.table td, .table th {
    vertical-align: middle;
}

/* Progress bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Fix input group seamless appearance - STRONG */
#scan .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#scan .input-group > * {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#scan .input-group .input-group-text {
    border: none !important;
    border-right: 0 !important;
    background: white !important;
}

#scan .input-group .form-control {
    border: none !important;
    border-left: 0 !important;
}

#scan .input-group .form-control:focus {
    border: none !important;
    box-shadow: none !important;
}

