/* Custom Styles for Veriguard Analytic */

/* Custom theme colors based on new logo */
:root {
    --veriguard-primary: #2d3748;
    --veriguard-primary-rgb: 45, 55, 72;
    --veriguard-secondary: #4a5568;
    --veriguard-light: #e2e8f0;
    --veriguard-dark: #1a202c;
    --veriguard-accent: #4299e1;
}

/* Override Bootstrap variables */
[data-bs-theme=dark] {
    --bs-primary: var(--veriguard-primary);
    --bs-primary-rgb: var(--veriguard-primary-rgb);
    --bs-secondary: var(--veriguard-secondary);
    --bs-link-color: var(--veriguard-accent);
    --bs-link-hover-color: #63b3ed;
}

/* Text avatar for testimonials */
.text-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--veriguard-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Icon boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--veriguard-primary-rgb), 0.15);
}

/* Timeline styles for How It Works page */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--veriguard-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

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

.timeline-content {
    position: relative;
    background-color: var(--bs-body-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-left: 3px solid var(--veriguard-primary);
}

.inner-circle {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--veriguard-primary-rgb), 0.15);
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--veriguard-primary);
}

/* Custom hero section */
.hero-section {
    background-color: rgba(var(--veriguard-primary-rgb), 0.05);
    padding: 5rem 0;
    border-bottom: 1px solid rgba(var(--veriguard-primary-rgb), 0.1);
}

/* Custom button styling */
.btn-primary {
    background-color: var(--veriguard-primary);
    border-color: var(--veriguard-primary);
}

.btn-primary:hover {
    background-color: var(--veriguard-dark);
    border-color: var(--veriguard-dark);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(var(--veriguard-primary-rgb), 0.15);
    transition: all 0.3s ease;
}

.btn-outline-secondary {
    border-color: var(--veriguard-secondary);
    color: var(--veriguard-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--veriguard-secondary);
    color: white;
}

/* Footer styling */
footer {
    background-color: var(--veriguard-dark) !important;
}

footer a {
    text-decoration: none;
    color: var(--veriguard-light) !important;
}

footer a:hover {
    text-decoration: underline;
    color: white !important;
}

/* FAQ page styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--veriguard-primary-rgb), 0.1);
    color: var(--veriguard-accent);
}

.accordion-button:focus {
    border-color: var(--veriguard-primary);
}

/* Custom card styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: rgba(var(--veriguard-primary-rgb), 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(var(--veriguard-primary-rgb), 0.15);
    border-color: var(--veriguard-primary);
}

.card-title {
    color: var(--veriguard-primary);
}

/* Icon styling */
.text-primary,
.fa-primary,
.fas.text-primary,
.fab.text-primary {
    color: var(--veriguard-primary) !important;
}

/* Nav styling */
.navbar-dark {
    background-color: var(--veriguard-dark) !important;
}

.nav-link.active {
    color: var(--veriguard-accent) !important;
    font-weight: 500;
}

/* Custom link styling */
a {
    transition: color 0.3s ease;
    color: var(--veriguard-accent);
}

a:hover {
    color: #63b3ed;
}

/* Table styling */
.table {
    border-color: var(--veriguard-primary);
}

/* Alert styling */
.alert-info {
    background-color: rgba(var(--veriguard-primary-rgb), 0.1);
    border-color: var(--veriguard-primary);
    color: var(--veriguard-accent);
}

.alert-success {
    border-color: var(--veriguard-primary);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .timeline:before {
        left: 31px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .inner-circle {
        left: 31px;
        transform: none;
    }
}
