:root {
    --primary: #ff9900;
    --secondary: #fe67ff;
    --dark: #120012;
    --medium: #240024;
    --light: #600060;
    --white: #ffffff;
    --black: #000000;
    --text-light: #ffffff;
    --text-dark: #120012;
    --table-bg-odd: #400040;
    --table-bg-even: #240024;
    --table-text: #ffcc00;
    --table-text-alt: #ffffff;
    --table-hover: rgba(254, 103, 255, 0.3);
    --table-header-text: #ffcc00;
}

body {
    padding-top: 60px;
    padding-bottom: 40px;
    background-color: var(--dark);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23120012"/><path d="M0,50 Q25,30 50,50 T100,50 L100,100 L0,100 Z" fill="%23240024" opacity="0.5"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar {
    background: linear-gradient(135deg, var(--medium) 0%, var(--light) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary) !important;
    text-shadow: 0 0 5px rgba(254, 103, 255, 0.7);
}

.navbar-brand .omec-logo {
    font-size: 1.2em;
}

.navbar-brand .omec-full {
    font-size: 0.7em;
    display: block;
    margin-top: -5px;
    color: var(--white);
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 8px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--secondary);
}

.nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

.jumbotron {
    background: linear-gradient(135deg, var(--medium) 0%, var(--light) 70%);
    color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--secondary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 103, 255, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.table-responsive {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--light);
}

.table {
    background-color: var(--table-bg-even);
    margin-bottom: 2rem;
    border-radius: 8px;
    font-family: 'Chakra Petch', sans-serif;
}

.table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    border-bottom: 2px solid var(--secondary);
    background: linear-gradient(90deg, var(--medium) 0%, var(--light) 100%);
    color: var(--table-header-text);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.table td {
    font-weight: 600;
    padding: 10px 12px;
    vertical-align: middle;
}

.table-dark {
    background: linear-gradient(90deg, var(--medium) 0%, var(--light) 100%);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--table-bg-odd);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    color: var(--table-text);
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: var(--table-bg-even);
}

.table-striped > tbody > tr:nth-of-type(even) > td {
    color: var(--table-text-alt);
}

.table-striped > tbody > tr > td {
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.table-hover tbody tr:hover {
    background-color: var(--table-hover);
    transform: scale(1.01);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(254, 103, 255, 0.5);
}

.table-hover tbody tr:hover td {
    color: var(--white);
}

.race-title, .division-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--black);
    padding: 12px 15px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--black);
    position: relative;
    overflow: hidden;
}

.race-title:after, .division-title:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.5) 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 10px);
}

.race-title h3, .division-title h3 {
    margin: 0;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

footer {
    color: var(--text-light);
    background-color: var(--medium);
    border-top: 2px solid var(--primary);
    padding: 20px 0;
    border-radius: 8px 8px 0 0;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

footer:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
}

.filter-container {
    background-color: rgba(96, 0, 96, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid var(--light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-select {
    background-color: var(--medium);
    color: var(--text-light);
    border: 1px solid var(--light);
    transition: all 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
}

.filter-select:focus {
    background-color: var(--medium);
    color: var(--text-light);
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(254, 103, 255, 0.25);
}

.alert {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Card styles */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--medium);
    border: 1px solid var(--light);
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(254, 103, 255, 0.3);
}

.form-label {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

/* Team standings specific styles */
.table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Team name column - allow full width */
.table td:nth-child(2) {
    max-width: none;
    min-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

/* Driver name columns - constrained width */
.table td:nth-child(3), .table td:nth-child(4) {
    min-width: 120px;
    max-width: 150px;
    white-space: nowrap;
}

/* Numeric columns - compact width */
.table td:nth-child(1), .table td:nth-child(5), .table td:nth-child(6), .table td:nth-child(7), .table td:nth-child(8), .table td:nth-child(9), .table td:nth-child(10) {
    max-width: 80px;
    white-space: nowrap;
}