/* ============================================
   YZ125 Tracker - Complete Racing Theme CSS
   Yamaha YZ125 Colors: Blue #003087, Red #E30613, Yellow #FFD700
   ============================================ */

/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #003087 0%, #001a4d 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0044b3 0%, #003087 100%);
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== HEADER ==================== */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: linear-gradient(180deg, #0f0f1a 0%, #0a0a0f 100%);
    border-bottom: 2px solid #003087;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 20%, #ffd700 80%, transparent 100%);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #003087 0%, #0044b3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.logo-icon i {
    font-size: 22px;
    color: #ffd700;
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.logo-text h1 span {
    color: #003087;
}

.logo-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #888;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #888;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(0, 48, 135, 0.2);
}

.main-nav a:hover i {
    color: #ffd700;
    transform: scale(1.1);
}

.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #003087 0%, #0044b3 100%);
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.4);
}

.main-nav a.active i {
    color: #ffd700;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 48, 135, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(0, 48, 135, 0.3);
}

.bike-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.bike-switcher i {
    font-size: 16px;
    color: #ffd700;
}

.bike-switcher select {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    max-width: 140px;
}

.bike-switcher select option {
    background: #1a1a2e;
    color: #fff;
}

.user-info i {
    font-size: 18px;
    color: #003087;
}

.user-info span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 10px;
    color: #e30613;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e30613;
    color: #fff;
    transform: scale(1.05);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== FOOTER ==================== */
.main-footer {
    padding: 20px 25px;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.footer-content p i {
    color: #003087;
    margin-right: 5px;
}

.footer-content .version {
    font-size: 11px;
    color: #555;
    font-style: italic;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    border-radius: 10px;
    border: 1px solid;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-color: rgba(0, 200, 83, 0.5);
    background: linear-gradient(135deg, #0a1a0f 0%, #0f0f1a 100%);
}

.notification.success i {
    color: #00c853;
}

.notification.error {
    border-color: rgba(227, 6, 19, 0.5);
    background: linear-gradient(135deg, #1a0a0f 0%, #0f0f1a 100%);
}

.notification.error i {
    color: #e30613;
}

/* ==================== BUTTONS ==================== */
button, .btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #003087 0%, #0044b3 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.5);
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #aaa;
    font-size: 14px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==================== FORMS ==================== */
input, textarea, select {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-yellow { color: #ffd700; }
.text-blue { color: #003087; }
.text-red { color: #e30613; }
.text-green { color: #00c853; }
.text-gray { color: #888; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .main-nav {
        gap: 3px;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .main-nav a span {
        display: none;
    }
    
    .main-nav a i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .user-info span {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    
    .logo-icon i {
        font-size: 18px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ==================== LOADING STATES ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 48, 135, 0.3);
    border-top-color: #003087;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== PAGE HEADERS ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #003087 0%, #003087 33%, #ffffff 33%, #ffffff 66%, #e30613 66%, #e30613 100%);
    border-radius: 2px;
}

.page-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: #ffd700;
}

/* ==================== CARDS ==================== */
.dashboard-card, .admin-card {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover, .admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-warning {
    background: rgba(255, 102, 0, 0.2);
    color: #ff6600;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.badge-danger {
    background: rgba(227, 6, 19, 0.2);
    color: #e30613;
    border: 1px solid rgba(227, 6, 19, 0.3);
}

.badge-success {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-info {
    background: rgba(0, 48, 135, 0.2);
    color: #4da6ff;
    border: 1px solid rgba(0, 48, 135, 0.3);
}

/* ==================== TABLES ==================== */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    padding: 12px 15px;
    background: rgba(0, 48, 135, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: #ccc;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
    background: rgba(0, 48, 135, 0.1);
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    border: 1px solid rgba(0, 48, 135, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

/* ==================== YAMAHA YZ125 SPECIFIC ==================== */
.yz-stripe {
    height: 3px;
    background: linear-gradient(90deg, 
        #003087 0%, 
        #003087 33%, 
        #ffffff 33%, 
        #ffffff 66%, 
        #e30613 66%, 
        #e30613 100%
    );
}

.yz-blue { color: #003087; }
.yz-red { color: #e30613; }
.yz-yellow { color: #ffd700; }

.yz-border {
    border: 2px solid #003087;
}

.yz-glow {
    box-shadow: 0 0 20px rgba(0, 48, 135, 0.5);
}