/* Custom CSS for PentestPrepper Lite */

:root {
    --primary-color: #8BD8BD;
    --secondary-color: #EE9823;
    --success-color: #8BD8BD;
    --warning-color: #EE9823;
    --danger-color: #dc3545;
    --info-color: #8BD8BD;
    --dark-color: #001C34;
    --light-color: #f8f9fa;
    --integsec-dark: #001C34;
    --integsec-cyan-green: #8BD8BD;
    --integsec-orange: #EE9823;
    --integsec-yellow: #FFFF04;
    --text-color: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--integsec-dark) 0%, rgba(0, 28, 52, 0.95) 50%, var(--integsec-dark) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 216, 189, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(238, 152, 35, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 28, 52, 0.95) 0%, rgba(139, 216, 189, 0.25) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 18px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(139, 216, 189, 0.15);
    border: 2px solid rgba(139, 216, 189, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 216, 189, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cards */
.card {
    border: 2px solid rgba(139, 216, 189, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(139, 216, 189, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--integsec-cyan-green), var(--integsec-orange));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(139, 216, 189, 0.3);
    border-color: rgba(139, 216, 189, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, rgba(139, 216, 189, 0.25), rgba(139, 216, 189, 0.15));
    color: white;
    border-radius: 14px 14px 0 0 !important;
    border: none;
    border-bottom: 2px solid rgba(139, 216, 189, 0.3);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    color: var(--integsec-cyan-green);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--integsec-cyan-green), rgba(139, 216, 189, 0.85));
    color: var(--integsec-dark);
    box-shadow: 0 6px 18px rgba(139, 216, 189, 0.35);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(139, 216, 189, 1), var(--integsec-cyan-green));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 216, 189, 0.5);
    color: var(--integsec-dark);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, var(--integsec-orange), rgba(238, 152, 35, 0.9));
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(238, 152, 35, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, rgba(238, 152, 35, 1), var(--integsec-orange));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(238, 152, 35, 0.5);
    color: #FFFFFF;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, var(--danger-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8), rgba(108, 117, 125, 0.7));
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(108, 117, 125, 1), rgba(108, 117, 125, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 216, 189, 0.1);
    background: linear-gradient(180deg, rgba(0, 28, 52, 0.98) 0%, rgba(0, 28, 52, 0.95) 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(139, 216, 189, 0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(139, 216, 189, 0.6);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--integsec-cyan-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--integsec-cyan-green) !important;
}

.nav-link:hover::after {
    width: 80%;
}

/* Form Elements */
.form-control {
    border-radius: 10px;
    border: 2px solid rgba(139, 216, 189, 0.4);
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    border-color: var(--integsec-cyan-green);
    box-shadow: 0 0 0 0.25rem rgba(139, 216, 189, 0.3), 0 4px 12px rgba(139, 216, 189, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: rgba(139, 216, 189, 0.6);
    background-color: rgba(255, 255, 255, 0.14);
}

.form-label {
    color: var(--integsec-cyan-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.input-group-text {
    background: linear-gradient(135deg, rgba(139, 216, 189, 0.2), rgba(139, 216, 189, 0.1));
    border: 2px solid rgba(139, 216, 189, 0.4);
    border-right: none;
    color: var(--integsec-cyan-green);
    font-weight: 600;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--integsec-cyan-green);
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid rgba(139, 216, 189, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--integsec-cyan-green);
    border-color: var(--integsec-cyan-green);
    box-shadow: 0 0 10px rgba(139, 216, 189, 0.5);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 216, 189, 0.25);
}

.form-check-label {
    color: var(--text-color);
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Code blocks */
.code-block {
    background: rgba(0, 28, 52, 0.8);
    color: var(--integsec-cyan-green);
    border: 1px solid var(--integsec-cyan-green);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-block code {
    color: var(--integsec-cyan-green);
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Badges */
.badge {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.45em 0.8em;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--integsec-orange), rgba(238, 152, 35, 0.9)) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--integsec-cyan-green), rgba(139, 216, 189, 0.85)) !important;
    color: var(--integsec-dark);
}

/* Tables */
.table {
    color: var(--text-color);
}

.table th {
    font-weight: 600;
    background-color: rgba(139, 216, 189, 0.2);
    border-bottom: 2px solid var(--integsec-cyan-green);
    color: var(--text-color);
}

.table td {
    border-color: rgba(139, 216, 189, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 216, 189, 0.1);
}

/* Alerts */
.alert {
    border: 2px solid;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-info {
    background: linear-gradient(135deg, rgba(139, 216, 189, 0.25), rgba(139, 216, 189, 0.15));
    border-color: var(--integsec-cyan-green);
    color: #FFFFFF;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3), rgba(40, 167, 69, 0.2));
    border-color: #28a745;
    color: #FFFFFF;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(238, 152, 35, 0.35), rgba(238, 152, 35, 0.25));
    border-color: var(--integsec-orange);
    color: #FFFFFF;
    font-size: 1.05rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(220, 53, 69, 0.2));
    border-color: var(--danger-color);
    color: #FFFFFF;
}

/* Module Results */
.module-result {
    border-left: 4px solid var(--integsec-cyan-green);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

/* Loading animations */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* Status indicators */
.status-vulnerable {
    color: var(--danger-color);
}

.status-safe {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Verification step styling */
.verification-details {
    background: linear-gradient(45deg, rgba(238, 152, 35, 0.3), rgba(238, 152, 35, 0.2));
    border: 2px solid var(--integsec-orange);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: var(--text-color);
    font-weight: 500;
}

/* Security focus indicators */
.security-high {
    border-left: 4px solid var(--danger-color);
}

.security-medium {
    border-left: 4px solid var(--integsec-yellow);
}

.security-low {
    border-left: 4px solid var(--integsec-cyan-green);
}

/* IntegSec brand styling */
.integsec-brand {
    color: var(--integsec-cyan-green);
    font-weight: bold;
}

.navbar-brand .integsec-brand {
    text-shadow: 0 0 10px rgba(139, 216, 189, 0.5);
}

/* Links */
a {
    color: var(--integsec-cyan-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--integsec-orange);
}

.text-light a {
    color: var(--integsec-cyan-green);
}

.text-light a:hover {
    color: var(--integsec-orange);
}

/* Bootstrap utility overrides for dark theme */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

.bg-warning {
    background-color: var(--integsec-orange) !important;
    color: var(--text-color) !important;
}

.list-group-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text-color);
    border: 1px solid rgba(139, 216, 189, 0.25);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(135deg, rgba(139, 216, 189, 0.15), rgba(139, 216, 189, 0.08));
    border-color: rgba(139, 216, 189, 0.4);
    transform: translateX(5px);
}

.list-group-numbered .list-group-item::before {
    color: var(--integsec-cyan-green);
    font-weight: 700;
}

/* Professional card styling */
.card.professional {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--integsec-cyan-green);
    color: var(--text-color);
}

.card.professional:hover {
    border-color: var(--integsec-cyan-green);
    box-shadow: 0 8px 25px rgba(139, 216, 189, 0.3);
}

/* Tooltip customizations */
.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 6px;
}

/* Modal customizations */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Feature Cards Carousel */
.features-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
}

.features-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 216, 189, 0.8);
    border: 2px solid var(--integsec-cyan-green);
    color: var(--integsec-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.features-carousel-nav:hover {
    background: var(--integsec-cyan-green);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 216, 189, 0.5);
}

.features-carousel-nav.prev {
    left: 10px;
}

.features-carousel-nav.next {
    right: 10px;
}

.features-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.features-track {
    display: flex;
    animation: scroll-right 10s linear infinite;
    gap: 1.5rem;
    will-change: transform;
    transition: transform 0.5s ease;
}

.features-track:hover {
    animation-play-state: paused;
}

.features-track.manual-control {
    animation: none;
}

.feature-card-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    padding: 1rem;
    box-sizing: border-box;
}

/* Calculate animation distance: move by exactly 3 items (50% of 6 items) */
@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 992px) {
    .feature-card-slide {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
    
    @keyframes scroll-right {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 0.75rem));
        }
    }
}

@media (max-width: 768px) {
    .feature-card-slide {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
    
    @keyframes scroll-right {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 0.75rem));
        }
    }
    
    .features-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .features-carousel-nav.prev {
        left: 5px;
    }
    
    .features-carousel-nav.next {
        right: 5px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}
