 :root {
            --f1-red: #e10600;
            --f1-black: #15151e;
            --f1-white: #ffffff;
            --f1-gray: #38383f;
            --f1-yellow: #ffd800;
            --f1-silver: #c0c0c0;
            --f1-bronze: #8b4513;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--f1-black);
            color: var(--f1-white);
            min-height: 100vh;
            background-image: 
                linear-gradient(rgba(21, 21, 30, 0.9), rgba(21, 21, 30, 0.9)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23e10600" stroke-width="1" opacity="0.1"/></svg>');
            padding: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            max-width: 1200px;
            width: 100%;
            background-color: rgba(21, 21, 30, 0.95);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
        }
        
        /* Modal de acceso */
        .access-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }
        
        .access-form {
            background: linear-gradient(to bottom, var(--f1-black), var(--f1-gray));
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            border: 3px solid var(--f1-red);
            box-shadow: 0 0 30px rgba(225, 6, 0, 0.7);
        }
        
        .access-form h2 {
            color: var(--f1-yellow);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        
        .access-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .access-btn {
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }
        
        .admin-btn {
            background-color: var(--f1-red);
            color: white;
        }
        
        .guest-btn {
            background-color: var(--f1-gray);
            color: white;
        }
        
        .access-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }
        
        .password-container {
            margin: 20px 0;
        }
        
        .password-input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--f1-gray);
            border-radius: 5px;
            background-color: var(--f1-black);
            color: var(--f1-white);
            font-size: 1rem;
            margin-bottom: 10px;
        }
        
        .password-submit {
            width: 100%;
            padding: 12px;
            background-color: var(--f1-red);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
        }
        
        .user-info {
            position: absolute;
            top: 10px;
            left: 15px;
            font-size: 0.9rem;
            color: var(--f1-silver);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logout-btn {
            background: none;
            border: 1px solid var(--f1-silver);
            color: var(--f1-silver);
            padding: 5px 10px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        
        .logout-btn:hover {
            background-color: var(--f1-red);
            border-color: var(--f1-red);
            color: white;
        }
        
        header {
            text-align: center;
            padding: 20px;
            background: linear-gradient(to right, var(--f1-black), var(--f1-red), var(--f1-black));
            border-bottom: 3px solid var(--f1-yellow);
            position: relative;
        }
        
        .header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }
        
        h1 {
            font-size: 2.5rem;
            color: var(--f1-white);
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        h2 {
            font-size: 1.5rem;
            color: var(--f1-yellow);
            margin-bottom: 15px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }
        
        .app-version {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 0.8rem;
            color: var(--f1-silver);
        }
        
        .content {
            display: flex;
            flex-direction: column;
            padding: 20px;
        }
        
        .main-menu, .event-section {
            background-color: rgba(21, 21, 30, 0.9);
            border: 2px solid var(--f1-red);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .btn {
            background-color: var(--f1-red);
            color: var(--f1-white);
            border: none;
            padding: 12px 20px;
            font-size: 1rem;
            border-radius: 5px;
            cursor: pointer;
            margin: 8px 5px;
            transition: all 0.3s;
            text-transform: uppercase;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .btn:hover {
            background-color: #ff3b30;
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
        }
        
        .btn-secondary {
            background-color: var(--f1-gray);
        }
        
        .btn-secondary:hover {
            background-color: #484850;
        }
        
        .btn-success {
            background-color: #00a650;
        }
        
        .btn-success:hover {
            background-color: #00c560;
        }
        
        .btn-toggle {
            background-color: #5d5dff;
        }
        
        .btn-toggle:hover {
            background-color: #7878ff;
        }
        
        .btn-danger {
            background-color: #cc0000;
        }
        
        .btn-danger:hover {
            background-color: #ff0000;
        }
        
        .events-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .event-card {
            background: linear-gradient(to bottom right, var(--f1-gray), var(--f1-black));
            border: 1px solid var(--f1-red);
            border-radius: 8px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(225, 6, 0, 0.3);
        }
        
        .event-card h3 {
            color: var(--f1-yellow);
            margin-bottom: 10px;
            border-bottom: 1px solid var(--f1-red);
            padding-bottom: 5px;
        }
        
        .event-card p {
            margin: 5px 0;
            font-size: 0.9rem;
        }
        
        .event-date {
            color: var(--f1-silver);
            font-style: italic;
        }
        
        .event-actions {
            margin-top: 15px;
            display: flex;
            justify-content: flex-end;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: var(--f1-yellow);
        }
        
        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--f1-gray);
            border-radius: 5px;
            background-color: var(--f1-black);
            color: var(--f1-white);
            font-size: 1rem;
        }
        
        .time-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
        }
        
        .time-inputs input {
            text-align: center;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            border: 1px solid var(--f1-gray);
        }
        
        th, td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid var(--f1-gray);
            font-size: 0.9rem;
        }
        
        th {
            background-color: var(--f1-red);
            color: var(--f1-white);
            text-transform: uppercase;
            font-weight: bold;
        }
        
        tr:nth-child(even) {
            background-color: rgba(56, 56, 63, 0.3);
        }
        
        tr:hover {
            background-color: rgba(225, 6, 0, 0.1);
        }
        
        .position-1 {
            background-color: rgba(255, 216, 0, 0.15) !important;
        }
        
        .position-2 {
            background-color: rgba(192, 192, 192, 0.15) !important;
        }
        
        .position-3 {
            background-color: rgba(139, 69, 19, 0.15) !important;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--f1-white);
            cursor: pointer;
            margin: 0 5px;
            font-size: 1rem;
            transition: all 0.3s;
        }
        
        .edit-btn {
            color: var(--f1-yellow);
        }
        
        .delete-btn {
            color: var(--f1-red);
        }
        
        .action-btn:hover {
            transform: scale(1.2);
        }
        
        .hidden {
            display: none;
        }
        
        .event-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--f1-red);
        }
        
        .event-title {
            color: var(--f1-yellow);
            font-size: 1.6rem;
        }
        
        .event-info {
            color: var(--f1-silver);
            font-size: 0.9rem;
        }
        
        .checkered-flag {
            height: 35px;
            width: 35px;
            background: repeating-linear-gradient(
                45deg,
                black,
                black 10px,
                white 10px,
                white 20px
            );
            display: inline-block;
            margin-left: 15px;
            vertical-align: middle;
            border: 2px solid var(--f1-yellow);
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .table-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .medal {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 8px;
            text-align: center;
            line-height: 20px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .medal-gold {
            background: radial-gradient(circle at 30% 30%, #ffd700, #daa520);
            color: black;
        }
        
        .medal-silver {
            background: radial-gradient(circle at 30% 30%, #c0c0c0, #a9a9a9);
            color: black;
        }
        
        .medal-bronze {
            background: radial-gradient(circle at 30% 30%, #cd7f32, #8c7853);
            color: white;
        }
        
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            h2 {
                font-size: 1.3rem;
            }
            
            .events-list {
                grid-template-columns: 1fr;
            }
            
            .time-inputs {
                grid-template-columns: 1fr 1fr 1fr;
            }
            
            th, td {
                padding: 8px 5px;
                font-size: 0.8rem;
            }
            
            .event-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .action-buttons {
                margin-top: 10px;
                align-self: stretch;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .btn {
                padding: 10px 15px;
                font-size: 0.9rem;
                margin: 5px;
            }
        }
        
        @media (max-width: 480px) {
            .btn {
                width: 100%;
                margin: 5px 0;
            }
            
            .table-controls {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .toggle-btn {
                margin-top: 10px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .action-buttons .btn {
                width: 100%;
            }
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            background-color: var(--f1-red);
            color: white;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .print-only {
            display: none;
        }
        
        .empty-state {
            text-align: center;
            padding: 30px;
            color: var(--f1-silver);
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--f1-gray);
        }
        
        .phone-column {
            transition: all 0.3s;
        }
        
        .hidden-column {
            display: none;
        }
        
        .guest-mode .admin-only {
            display: none !important;
        }
        
        .guest-mode .phone-column {
            display: none !important;
        }
        
        .hidden {
            display: none;
        }