:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-gradient {
    background: var(--primary-gradient) !important;
}

.hero-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/bachground.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 0;
}

.card {
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
    background: var(--primary-gradient) !important;
    border: none;
}

.btn-cota {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cota.disponivel {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-cota.disponivel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-cota.vendida {
    background: var(--danger-gradient);
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.page-link {
    border-radius: 10px;
    margin: 0 2px;
    border: none;
    color: #667eea;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
}

.ranking-card {
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ranking-1 { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); }
.ranking-2 { background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%); }
.ranking-3 { background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%); }
.ranking-4 { background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%); }
.ranking-5 { background: linear-gradient(135deg, #98FB98 0%, #32CD32 100%); }
.ranking-6 { background: linear-gradient(135deg, #DDA0DD 0%, #9370DB 100%); }
.ranking-7 { background: linear-gradient(135deg, #F0E68C 0%, #DAA520 100%); }

.ranking-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-sm {
    border-radius: 20px;
    padding: 5px 15px;
}

.alert {
    border-radius: 15px;
    border: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

/* Estilos para a seção da cota selecionada */
.cota-display {
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border: 2px solid #007bff;
}

.cota-display .display-4 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 123, 255, 0.1);
}

.info-compra {
    padding: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.border-primary {
    border: 2px solid #007bff !important;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

@media (max-width: 768px) {
    .btn-cota {
        height: 50px;
        font-size: 12px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1880e7 0%, #23619b 100%);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
    position: relative;
}

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

.footer-brand h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-legal {
    margin-bottom: 15px;
}

.footer-legal-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-copyright {
    color: #95a5a6;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        padding: 30px 0 15px 0;
    }
    
    .footer-links {
        margin-bottom: 20px;
    }
}