:root {
    /* Askfy Brand Colors */
    --askfy-purple: #8511b4;
    --askfy-white: #ffffff;
    --askfy-green: #00ff66;
    
    /* Primary color scheme based on brand */
    --primary-color: #8511b4;
    --secondary-color: #6c757d;
    --success-color: #00ff66;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #8511b4;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* Modern design system */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #8511b4 0%, #a855f7 50%, #8b5cf6 100%);
    --success-gradient: linear-gradient(135deg, #00ff66 0%, #10b981 100%);
    --hero-gradient: linear-gradient(135deg, #8511b4 0%, #6366f1 50%, #8b5cf6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="80" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards */
.card {
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--box-shadow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-xl);
}

.card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Feature Icons */
.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

/* Dashboard Styles */
.sidebar {
    background: #f8f9fa;
    min-height: 100vh;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Mobile Sidebar Styles */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

@media (max-width: 767.98px) {
    .sidebar-toggle {
        display: inline-block;
    }
    
    .sidebar-container {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        background: #f8f9fa;
        border-right: 1px solid #dee2e6;
        padding-top: 70px; /* Account for navbar height */
    }
    
    .sidebar-container.show {
        left: 0;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .sidebar {
        min-height: calc(100vh - 70px);
        border-right: none;
    }
}

@media (min-width: 768px) {
    .sidebar-container {
        position: relative;
        left: 0;
        width: auto;
        height: auto;
        z-index: auto;
        padding-top: 0;
    }
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* NPS Gauge */
.nps-gauge {
    width: 200px;
    height: 100px;
    position: relative;
    margin: 0 auto;
}

.nps-gauge svg {
    width: 100%;
    height: 100%;
}

.nps-gauge-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 10;
}

.nps-gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.nps-gauge-text {
    text-anchor: middle;
    font-size: 1.5rem;
    font-weight: bold;
    fill: var(--dark-color);
}

/* Rating Styles */
.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    color: #ddd;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
}

.emoji-rating {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.emoji-option {
    font-size: 2rem;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-option:hover,
.emoji-option.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

/* Satisfaction Levels */
.satisfaction-levels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.satisfaction-option {
    padding: 0.75rem 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.satisfaction-option:hover,
.satisfaction-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Public Form Styles */
.public-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.public-form .card {
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.question-card {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Progress Bar */
.progress-bar-custom {
    height: 6px;
    border-radius: 3px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .satisfaction-levels {
        flex-direction: column;
    }
    
    .satisfaction-option {
        min-width: auto;
    }
    
    .emoji-rating {
        flex-wrap: wrap;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid var(--info-color);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

/* Badge Styles */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Lottie Animation Styles */
.lottie-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lottie-container lottie-player {
    filter: drop-shadow(0 10px 30px rgba(133, 17, 180, 0.2));
    transition: all 0.3s ease;
}

.lottie-container:hover lottie-player {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(133, 17, 180, 0.3));
}

/* Legacy Animation Styles (pode remover depois) */
.askfy-animation-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.emoji-float {
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
}

.emoji-float:nth-child(1) { animation-delay: 0s; }
.emoji-float:nth-child(2) { animation-delay: 0.5s; }
.emoji-float:nth-child(3) { animation-delay: 1s; }
.emoji-float:nth-child(4) { animation-delay: 1.5s; }
.emoji-float:nth-child(5) { animation-delay: 2s; }

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

.nps-scale {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.nps-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    animation: pulse 2s ease-in-out infinite;
    font-size: 0.9rem;
}

.nps-number:nth-child(1), .nps-number:nth-child(2), .nps-number:nth-child(3) {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.nps-number:nth-child(4), .nps-number:nth-child(5), .nps-number:nth-child(6), .nps-number:nth-child(7), .nps-number:nth-child(8) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.nps-number:nth-child(9), .nps-number:nth-child(10), .nps-number:nth-child(11) {
    background: var(--success-gradient);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.poll-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.poll-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--askfy-green);
    transform: translateX(10px);
}

.suggestion-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 102, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 102, 0.6); }
}

/* Navbar Responsive Styles */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .navbar-nav .dropdown,
    .navbar-nav .btn {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .btn {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
    }
}

/* Test Section Styles */
.test-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
}

.test-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(133, 17, 180, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--askfy-purple);
}

.test-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.test-title {
    color: var(--askfy-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

.test-description {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}
