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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* Autenticación */
.auth-container {
    max-width: 400px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ff1e00;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
select:focus {
    outline: none;
    border-color: #ff1e00;
}

/* Botones */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 2rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
}

.alert-error {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
}

/* Predicciones */
.predictions-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.prediction-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 30, 0, 0.3);
}

.prediction-section h2 {
    color: #ff1e00;
    margin-bottom: 1rem;
}

.subtitle {
    color: #aaa;
    margin-bottom: 1rem;
}

/* Top 10 */
.top10-container {
    display: grid;
    gap: 0.5rem;
}

.top10-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: move;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.top10-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff1e00;
}

.top10-item.dragging {
    opacity: 0.5;
}

.position-number {
    background: #ff1e00;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.pilot-info {
    flex: 1;
}

.pilot-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.team-name {
    color: #aaa;
    font-size: 0.9rem;
}

.drag-handle {
    font-size: 1.5rem;
    color: #666;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
    color: #999;
}

.footerlogin {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    color: #999;
}

.auth-container p {
    text-align: center;
    margin-top: 1rem;
}

.auth-container a {
    color: #ff1e00;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .predictions-container {
        padding: 1rem;
    }
    
    .prediction-section {
        padding: 1rem;
    }
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stats-badge {
    display: inline-block;
    background: rgba(255, 30, 0, 0.2);
    border: 2px solid #ff1e00;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff1e00;
    margin-right: 0.5rem;
}

.stats-label {
    color: #fff;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #aaa;
    margin-bottom: 2rem;
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.prediction-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.2);
}

.current-user-card {
    border-color: #ff1e00;
    box-shadow: 0 0 20px rgba(255, 30, 0, 0.3);
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1e00, #e10600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.username {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-you {
    background: #ff1e00;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.prediction-date {
    color: #888;
    font-size: 0.85rem;
}

.card-body {
    padding: 1.5rem;
}

.prediction-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prediction-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.prediction-content {
    flex: 1;
}

.prediction-label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.prediction-value {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.prediction-value.champion {
    color: #ffd700;
}

.prediction-value.crashes {
    color: #ff4444;
}

.prediction-value.constructor {
    color: #4dabf7;
}

/* Top 10 Mini List */
.top10-section {
    flex-direction: column;
}

.top10-mini-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.top10-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
}

.mini-position {
    background: #ff1e00;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.mini-pilot {
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Links */
.nav-link {
    background: rgb(39, 39, 39);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0 15px 15px 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #1a1a1a;
}

.username-display {
    margin-left: 1rem;
    font-weight: bold;
    color: #000;
}

@media (max-width: 768px) {
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .top10-mini-list {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link {
        width: 100%;
    }
    
    .dashboard-header h1 {
        font-size: 1.8rem;
    }
}
/* ==========================================
   GRANDES PREMIOS STYLES
   ========================================== */

/* GP List Container */
.gp-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gp-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gp-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.gp-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* GP Grid */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.2);
}

.gp-card.has-prediction {
    border-color: rgba(0, 255, 0, 0.3);
}

.gp-card.has-prediction:hover {
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.gp-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-number {
    background: linear-gradient(135deg, #ff1e00, #e10600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.prediction-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #00ff00;
}

.gp-card-body {
    padding: 1.5rem;
}

.gp-name {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gp-location,
.gp-date {
    color: #aaa;
    font-size: 0.95rem;
    margin: 0.3rem 0;
}

.gp-card-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

.btn-predict,
.btn-view {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-predict {
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
}

.btn-view {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Predict Form */
.predict-container {
    max-width: 800px;
    margin: 0 auto;
}

.predict-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: #ff1e00;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.predict-header h1 {
    color: #ff1e00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.predict-subtitle {
    color: #aaa;
    font-size: 1rem;
}

.predict-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.field-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* GP Dashboard */
.gp-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gp-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gp-dashboard-header h1 {
    color: #ff1e00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gp-dashboard-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.gp-predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gp-prediction-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gp-prediction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.2);
}

.gp-prediction-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gp-prediction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gp-prediction-icon {
    font-size: 1.5rem;
    min-width: 35px;
}

.gp-prediction-content {
    flex: 1;
}

.gp-prediction-label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.gp-prediction-value {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: bold;
}

.gp-prediction-value.pole {
    color: #ffd700;
}

.gp-prediction-value.first {
    color: #ffd700;
}

.gp-prediction-value.second {
    color: #c0c0c0;
}

.gp-prediction-value.third {
    color: #cd7f32;
}

/* Responsive GP */
@media (max-width: 768px) {
    .gp-grid {
        grid-template-columns: 1fr;
    }
    
    .gp-predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .gp-header h1,
    .predict-header h1,
    .gp-dashboard-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gp-card-footer {
        flex-direction: column;
    }
    
    .btn-predict,
    .btn-view {
        width: 100%;
    }
}

/* ==========================================
   CHAMPIONSHIP TABLES STYLES
   ========================================== */

/* Standings Container */
.standings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.standings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.standings-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.standings-subtitle {
    color: #aaa;
    font-size: 1.1rem;
}

/* Standings Table */
.standings-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255, 30, 0, 0.1);
}

.standings-table td {
    padding: 1.2rem 1rem;
}

/* Position Column */
.pos-col {
    width: 80px;
    text-align: center;
}

.position-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    text-align: center;
}

.position-podium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

/* Driver Column */
.driver-col {
    width: 40%;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.driver-number {
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 5px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.driver-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Team Column */
.team-col {
    width: 25%;
}

.team-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 2px solid;
    color: white;
    font-size: 0.9rem;
}

/* Constructor specific */
.team-col-wide {
    width: 60%;
}

.constructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-color-bar {
    width: 5px;
    height: 40px;
    border-radius: 3px;
}

.constructor-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Points Column */
.points-col {
    width: 15%;
    text-align: center;
}

.points-value {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 30, 0, 0.2);
    border: 2px solid #ff1e00;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Races Column */
.races-col {
    width: 10%;
    text-align: center;
    color: #aaa;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 0, 0.1);
    border: 2px solid rgba(255, 255, 0, 0.3);
    border-radius: 10px;
    margin-top: 2rem;
}

.no-results-message a {
    color: #ff1e00;
    font-weight: bold;
}

/* Manage Results */
.manage-container {
    max-width: 1400px;
    margin: 0 auto;
}

.manage-header {
    text-align: center;
    margin-bottom: 2rem;
}

.manage-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.manage-subtitle {
    color: #aaa;
    font-size: 1.1rem;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.manage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.manage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
}

.manage-card.has-results {
    border-color: rgba(0, 255, 0, 0.3);
}

.manage-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #00ff00;
}

.pending-badge {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ffff00;
}

.manage-card-body {
    padding: 1.5rem;
}

.results-count {
    color: #00ff00;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.manage-card-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    flex: 1;
    padding: 0.7rem;
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-delete {
    padding: 0.7rem 1rem;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* Edit Results Form */
.edit-results-container {
    max-width: 900px;
    margin: 0 auto;
}

.edit-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.edit-results-header h1 {
    color: #ff1e00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.edit-results-subtitle {
    color: #aaa;
}

.results-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
}

.results-form-container h2 {
    color: #ff1e00;
    margin-bottom: 1rem;
    text-align: center;
}

.points-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.points-legend span {
    color: #aaa;
    font-size: 0.9rem;
}

.result-position-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
}

.position-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.position-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff1e00;
}

.position-points {
    font-size: 0.85rem;
    color: #aaa;
}

.driver-select {
    flex: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.driver-select:focus {
    border-color: #ff1e00;
    outline: none;
}

/* ==========================================
   DROPDOWN MENU - CON CLICK
   ========================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: rgb(39, 39, 39);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0 15px 15px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(30, 30, 30, 0.98);
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-top: 0.5rem;
    z-index: 1000;
    left: 0;
    border: 2px solid rgba(255, 30, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

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

/* Clase para mostrar el dropdown */
.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 1rem 1.2rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 30, 0, 0.3);
    padding-left: 1.8rem;
    color: #ff1e00;
}

/* Badge Admin */
.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.username-display {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive Dropdown */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        border-radius: 0;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-top: 1px solid rgba(255, 30, 0, 0.3);
        border-bottom: 1px solid rgba(255, 30, 0, 0.3);
    }
    
    .dropdown-content a {
        padding-left: 2rem;
    }
    
    .dropdown-content a:hover {
        padding-left: 2.5rem;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        border-radius: 0;
    }
    
    .username-display {
        margin-left: 0;
        padding: 0.8rem 1rem;
        width: 100%;
    }
    
    .btn-logout {
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
}

/* ==========================================
   PROFILES SYSTEM STYLES
   ========================================== */

/* Profiles List */
.profiles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.profiles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profiles-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.profiles-subtitle {
    color: #aaa;
    font-size: 1.1rem;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.2);
}

.profile-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
}

.profile-avatar-container {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff1e00;
}

.profile-avatar-default {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1e00, #e10600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    border: 4px solid #ff1e00;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-username {
    color: #ff1e00;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

.profile-fullname {
    color: #aaa;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info-icon {
    font-size: 1.2rem;
}

.info-text {
    color: #fff;
    font-size: 0.9rem;
}

.btn-view-profile {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
}

/* Profile View */
.profile-view-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-view-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.profile-view-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 2px solid rgba(255, 30, 0, 0.3);
}

.profile-view-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff1e00;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1e00, #e10600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    border: 4px solid #ff1e00;
}

.profile-view-info {
    flex: 1;
}

.profile-view-username {
    color: #ff1e00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-view-fullname {
    color: #aaa;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.btn-edit-profile {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.profile-view-body {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #ff1e00;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 30, 0, 0.3);
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.detail-label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.favorite-team {
    color: #ff1e00;
}

.biography-text {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    color: #fff;
    line-height: 1.6;
}

.profile-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Edit Profile */
.edit-profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.edit-profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.edit-profile-header h1 {
    color: #ff1e00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.edit-profile-subtitle {
    color: #aaa;
}

.edit-profile-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
}

.profile-image-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.current-image-container {
    margin-bottom: 1.5rem;
}

.current-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff1e00;
}

.current-avatar-default {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1e00, #e10600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    border: 4px solid #ff1e00;
}

.file-input {
    margin-top: 0.5rem;
}

.field-help {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.form-section-title {
    color: #ff1e00;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #ff1e00;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Admin Badge Mini */
.admin-badge-mini {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-view-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ==========================================
   HOME DASHBOARD STYLES
   ========================================== */

.home-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.home-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.2), rgba(255, 30, 0, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 30, 0, 0.3);
}

.home-dashboard-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.dashboard-tagline {
    color: #aaa;
    font-size: 1.2rem;
}

/* Dashboard Cards Grid */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e10600, #ff1e00);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    min-width: 70px;
    text-align: center;
}

.card-content {
    flex: 1;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-arrow {
    font-size: 2rem;
    color: #ff1e00;
    transition: transform 0.3s ease;
}

.dashboard-card:hover .card-arrow {
    transform: translateX(10px);
}

/* Status Badges */
.card-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-complete {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-pending {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
}

.status-empty {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid #666;
}

/* Card Stats */
.card-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff1e00;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* Card Leader Info */
.card-leader {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.leader-label {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.leader-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.leader-points {
    color: #ff1e00;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-action {
    margin-top: 1rem;
}

.action-text {
    color: #ff1e00;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Specific Card Colors */
.predictions-card .card-icon { color: #ffd700; }
.gp-card .card-icon { color: #ff1e00; }
.drivers-card .card-icon { color: #00d2be; }
.constructors-card .card-icon { color: #0090ff; }
.profiles-card .card-icon { color: #ff8700; }
.dashboard-pred-card .card-icon { color: #00ff00; }

/* Quick Access Section */
.quick-access-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.section-title {
    color: #ff1e00;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 30, 0, 0.1);
    border-color: rgba(255, 30, 0, 0.5);
    transform: translateX(5px);
}

.quick-icon {
    font-size: 1.5rem;
}

.quick-text {
    color: #fff;
    font-weight: 600;
}

.admin-link {
    border-color: rgba(255, 215, 0, 0.3);
}

.admin-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

/* password-toggle.css — incluir en style.css o via <link> */
.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 44px !important; /* espacio para el ojo */
}
/* password-toggle.css */
.pw-wrap {
    position: relative;
    display: block;
}
.pw-wrap input {
    padding-right: 44px !important;
    width: 100%;
    box-sizing: border-box;
}
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity .2s;
    line-height: 0;
}
.pw-toggle:hover  { opacity: 1; }
.pw-toggle:focus  { outline: none; opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .home-dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-arrow {
        transform: rotate(90deg);
    }
    
    .dashboard-card:hover .card-arrow {
        transform: rotate(90deg) translateX(10px);
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}