:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #1a1a2e;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --hover-shadow: 0 15px 40px rgba(102,126,234,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-right: 15px;
    transition: all 0.3s;
}

.hero-cta .btn-primary {
    background: white;
    color: #667eea;
    border: none;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.hero-cta .btn-outline-light:hover {
    background: white;
    color: #667eea;
}

/* Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Níveis de Carreira */
.career-levels {
    background: #f8f9fa;
    padding: 80px 0;
}

.level-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.level-card.popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary-gradient);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.level-value {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin: 20px 0;
}

.level-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.level-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.level-features li:last-child {
    border-bottom: none;
}

.level-features i {
    color: #667eea;
    margin-right: 10px;
}

/* Tabela de Remuneração */
.remuneracao-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.remuneracao-table table {
    margin-bottom: 0;
}

.remuneracao-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    padding: 15px;
}

.remuneracao-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.remuneracao-table tr:last-child td {
    border-bottom: none;
}

.remuneracao-table tr:hover {
    background: #f8f9fa;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #667eea;
    border: 4px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Formulários */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: none;
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Score Card */
.score-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
}

.score-label {
    color: #666;
    margin-bottom: 30px;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin: 5px 0 0;
}

/* Portal Creator */
.creator-sidebar {
    background: white;
    min-height: calc(100vh - 76px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.creator-profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.creator-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.creator-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.creator-level {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.creator-menu {
    padding: 20px 0;
}

.creator-menu-item {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.creator-menu-item i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.creator-menu-item:hover,
.creator-menu-item.active {
    background: #f8f9fa;
    color: #667eea;
    border-left: 3px solid #667eea;
}

/* Conteúdo Cards */
.conteudo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    margin-bottom: 20px;
}

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

.conteudo-header {
    padding: 15px;
    background: var(--primary-gradient);
    color: white;
}

.conteudo-body {
    padding: 20px;
}

.conteudo-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.conteudo-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Notificações */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e8f4fd;
}

.notification-item.unread:hover {
    background: #d1e9fa;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark-bg);
    color: white;
    min-height: calc(100vh - 76px);
}

.admin-menu-item {
    padding: 15px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-menu-item i {
    margin-right: 10px;
    width: 20px;
}

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

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

/* Alertas */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Botões */
.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-gradient:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.3);
}

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

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}