/**
 * Quiris KYC System - Estilos Personalizados
 * Cores: #0AABA6 (Verde-água) e #031728 (Azul escuro)
 * Produto by Tesy Payment SA
 */

:root {
    --quiris-primary: #0AABA6;
    --quiris-dark: #031728;
    --quiris-primary-rgb: 10, 171, 166;
    --quiris-dark-rgb: 3, 23, 40;
    --quiris-light: #E8F8F7;
    --quiris-accent: #08968C;
}

/* Override das cores primárias do Bootstrap */
.bg-primary {
    background-color: var(--quiris-primary) !important;
}

.btn-primary {
    background-color: var(--quiris-primary);
    border-color: var(--quiris-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--quiris-accent);
    border-color: var(--quiris-accent);
}

.btn-outline-primary {
    color: var(--quiris-primary);
    border-color: var(--quiris-primary);
}

.btn-outline-primary:hover {
    background-color: var(--quiris-primary);
    border-color: var(--quiris-primary);
    color: white;
}

.text-primary {
    color: var(--quiris-primary) !important;
}

.navbar-dark {
    background-color: var(--quiris-dark) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Cards e componentes */
.card-header {
    background-color: var(--quiris-light);
    border-bottom: 2px solid var(--quiris-primary);
}

.badge-primary {
    background-color: var(--quiris-primary) !important;
}

.alert-info {
    background-color: rgba(var(--quiris-primary-rgb), 0.1);
    border-color: var(--quiris-primary);
    color: var(--quiris-dark);
}

/* Links */
a {
    color: var(--quiris-primary);
}

a:hover {
    color: var(--quiris-accent);
}

/* Breadcrumb */
.breadcrumb-item.active {
    color: var(--quiris-dark);
}

.breadcrumb-item a {
    color: var(--quiris-primary);
}

/* Footer customizado */
.quiris-footer {
    background-color: var(--quiris-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.quiris-footer a {
    color: var(--quiris-primary);
}

.quiris-footer a:hover {
    color: white;
}

/* Hero section */
.quiris-hero {
    background: linear-gradient(135deg, var(--quiris-dark) 0%, var(--quiris-primary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.quiris-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quiris-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Cards especiais */
.quiris-card {
    border: none;
    box-shadow: 0 4px 12px rgba(var(--quiris-primary-rgb), 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiris-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--quiris-primary-rgb), 0.25);
}

/* Badges customizados */
.badge-quiris {
    background-color: var(--quiris-primary);
    color: white;
}

.badge-quiris-dark {
    background-color: var(--quiris-dark);
    color: white;
}

/* Forms */
.form-control:focus {
    border-color: var(--quiris-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--quiris-primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--quiris-primary);
    border-color: var(--quiris-primary);
}

/* Tabelas */
.table th {
    border-top: 2px solid var(--quiris-primary);
    background-color: var(--quiris-light);
    color: var(--quiris-dark);
}

/* Progress bars */
.progress-bar {
    background-color: var(--quiris-primary);
}

/* Spinners */
.spinner-border-primary {
    color: var(--quiris-primary);
}

/* Modais */
.modal-header {
    background-color: var(--quiris-light);
    border-bottom: 2px solid var(--quiris-primary);
}

.modal-title {
    color: var(--quiris-dark);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiris-hero h1 {
        font-size: 2rem;
    }
    
    .quiris-hero .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Estados especiais */
.quiris-success {
    color: #28a745;
}

.quiris-warning {
    color: #ffc107;
}

.quiris-danger {
    color: #dc3545;
}

/* Logo e branding */
.quiris-logo {
    height: 40px;
    margin-right: 10px;
}

.quiris-brand-text {
    color: var(--quiris-primary);
    font-weight: 700;
}

/* Utility classes */
.bg-quiris-light {
    background-color: var(--quiris-light) !important;
}

.bg-quiris-dark {
    background-color: var(--quiris-dark) !important;
}

.text-quiris-primary {
    color: var(--quiris-primary) !important;
}

.text-quiris-dark {
    color: var(--quiris-dark) !important;
}

.border-quiris {
    border-color: var(--quiris-primary) !important;
}

/* Improved list/grid presentation */
.list-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-item .item-meta {
    flex: 1 1 auto;
}

.empty-state {
    border: 1px dashed rgba(var(--quiris-primary-rgb), 0.15);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    background-color: rgba(var(--quiris-primary-rgb), 0.03);
}

.action-btn {
    min-width: 42px;
}

.card-compact .card-body {
    padding: 0.9rem 1rem;
}

.muted-small {
    color: #6c757d;
    font-size: 0.9rem;
}

.hero-small {
    padding: 1.5rem 1rem;
}

/* ========================================
   ENHANCED FEATURE CARDS STYLES
   ======================================== */

/* Feature Cards com efeitos avançados */
.quiris-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(var(--quiris-primary-rgb), 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Shimmer effect ao passar mouse */
.quiris-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--quiris-primary-rgb), 0.15), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.quiris-card:hover::before {
    left: 100%;
}

.quiris-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(var(--quiris-primary-rgb), 0.35);
}

/* Ícones dos cards com wrapper circular */
.quiris-card .card-body {
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.quiris-card i[class*="bi-"] {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--quiris-primary-rgb), 0.1) 0%, rgba(var(--quiris-primary-rgb), 0.2) 100%);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.quiris-card:hover i[class*="bi-"] {
    background: linear-gradient(135deg, var(--quiris-primary) 0%, var(--quiris-accent) 100%);
    color: white !important;
    transform: scale(1.2) rotateY(360deg);
}

.quiris-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--quiris-dark);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.quiris-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Animação de scroll reveal */
@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiris-card.reveal {
    animation: revealCard 0.6s ease-out both;
}

.quiris-card.reveal:nth-child(1) { animation-delay: 0.1s; }
.quiris-card.reveal:nth-child(2) { animation-delay: 0.2s; }
.quiris-card.reveal:nth-child(3) { animation-delay: 0.3s; }
.quiris-card.reveal:nth-child(4) { animation-delay: 0.4s; }
.quiris-card.reveal:nth-child(5) { animation-delay: 0.5s; }
.quiris-card.reveal:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   ADVANCED HERO ANIMATIONS & SLIDER
   ======================================== */

/* Hero Section with Animated Background */
.quiris-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--quiris-dark) 0%, var(--quiris-primary) 100%);
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
}

.hero-shape.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.hero-shape.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float2 18s ease-in-out infinite;
}

.hero-shape.circle-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
    animation: float3 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -100px) rotate(120deg); }
    66% { transform: translate(-50px, 50px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-80px, 80px) rotate(-120deg); }
    66% { transform: translate(80px, -50px) rotate(-240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.2); }
}

/* Floating Particles Container */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Floating Particles Enhanced */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.hero-particles .hero-particle:nth-child(1) {
    animation: floatParticle1 12s ease-in-out infinite;
}

.hero-particles .hero-particle:nth-child(2) {
    animation: floatParticle2 15s ease-in-out infinite;
}

.hero-particles .hero-particle:nth-child(3) {
    animation: floatParticle3 18s ease-in-out infinite;
}

.hero-particles .hero-particle:nth-child(4) {
    animation: floatParticle4 14s ease-in-out infinite;
}

.hero-particles .hero-particle:nth-child(5) {
    animation: floatParticle5 16s ease-in-out infinite;
}

@keyframes floatParticle1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.15; }
    25% { transform: translate(100px, -150px); opacity: 0.3; }
    50% { transform: translate(-100px, -300px); opacity: 0.15; }
    75% { transform: translate(150px, -150px); opacity: 0.3; }
}

@keyframes floatParticle2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    33% { transform: translate(-120px, -200px) scale(1.3); opacity: 0.25; }
    66% { transform: translate(80px, -250px) scale(0.8); opacity: 0.2; }
}

@keyframes floatParticle3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.15; }
    50% { transform: translate(-80px, -350px) rotate(180deg); opacity: 0.3; }
}

@keyframes floatParticle4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.15; }
    40% { transform: translate(-150px, -180px); opacity: 0.25; }
    80% { transform: translate(120px, -220px); opacity: 0.2; }
}

@keyframes floatParticle5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(90px, -280px) scale(1.4); opacity: 0.3; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Title Animation */
.quiris-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: heroTitleAppear 1s ease-out;
}

@keyframes heroTitleAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Icon Pulse */
.quiris-hero h1 i {
    display: inline-block;
    animation: heroPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Typed Text Styling */
#typed-text {
    display: inline-block;
    min-height: 1.5em;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.typed-cursor {
    color: white;
    font-weight: 300;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Button Ripple Effect Enhanced */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-animated:hover::before {
    width: 400px;
    height: 400px;
}

.btn-animated:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-animated span {
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .quiris-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-shape {
        opacity: 0.05;
    }
}

/* Steps with Bounce */
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: white; }
}

/* Hero Title Animation */
.quiris-hero h1 {
    animation: heroTitleAppear 1s ease-out;
}

@keyframes heroTitleAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Icon Pulse */
.quiris-hero h1 i {
    display: inline-block;
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Button Ripple Effect */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-animated span {
    position: relative;
    z-index: 1;
}

/* Steps with Bounce */
.step-circle {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, var(--quiris-primary) 0%, var(--quiris-accent) 100%);
    box-shadow: 0 10px 30px rgba(var(--quiris-primary-rgb), 0.4);
    transition: all 0.3s ease;
    animation: bounceIn 1s ease both;
}

.step-circle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(var(--quiris-primary-rgb), 0.6);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.step-item:nth-child(1) .step-circle { animation-delay: 0.1s; }
.step-item:nth-child(2) .step-circle { animation-delay: 0.2s; }
.step-item:nth-child(3) .step-circle { animation-delay: 0.3s; }
.step-item:nth-child(4) .step-circle { animation-delay: 0.4s; }

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

