/* Extracted inline styles from index.html */

/* Text colors */
.accent-text {
    color: var(--accent);
}

.online-tag {
    font-size: 0.5em;
    color: #fff;
}

/* Private race room */
.private-race-box {
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #334155;
}

.private-race-title {
    color: #facc15;
    margin-bottom: 10px;
    display: block;
}

.room-code-container {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.room-code-input {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.join-button {
    flex: 1;
    font-weight: bold;
}

.create-room-button {
    background: #334155;
    font-size: 0.9rem;
    padding: 10px;
}


/* Modal and overlay styles */
#auth-modal, #career-dashboard, #store-modal,
#global-leaderboard, #user-detail-modal, #matchmaking-lobby, #loading-popup,
#controls-modal, #cookie-modal, #afk-warning-popup, #private-room-panel,
#purchase-confirm-popup, #race-error-popup {
    display: none;
}

#auth-modal.store-modal-visible {
    display: flex !important;
}

#global-leaderboard .modal-panel {
    height: 80vh;
    display: flex;
    flex-direction: column;
}

#global-list {
    overflow-y: auto;
    flex: 1;
}

#loading-popup .modal-panel {
    width: 300px;
    text-align: center;
    padding: 40px;
}

/* Z-index stacking */
#user-detail-modal {
    z-index: 1100;
}

#matchmaking-lobby {
    z-index: 2000;
}

#loading-popup {
    z-index: 3000;
}

#controls-modal {
    z-index: 3500;
}

#cookie-modal {
    z-index: 4000;
}

#register-form {
    display: none;
}

/* Message styling */
#auth-msg {
    color: #ef4444;
    margin-top: 10px;
    font-size: 0.8rem;
}

/* Reward display */
#reward-display {
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: bold;
    display: none;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* User details */
#detail-username {
    color: var(--accent);
}

.user-car-preview {
    margin-bottom: 20px;
}

#detail-car {
    width: 200px;
    height: 100px;
}

.detail-stats {
    text-align: left;
    padding: 0 20px;
}

.close-button {
    margin-top: 20px;
}

/* Lobby styling */
#lobby-status {
    margin: 0;
}

.lobby-subtitle {
    color: #64748b;
}

.auto-start-timer {
    color: #fff;
}

#lobby-timer {
    font-size: 2rem;
    color: var(--green);
    font-weight: 900;
}

.race-details {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.private-room-panel {
    background: #0f172a;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px dashed #334155;
    text-align: center;
}

.share-text {
    color: #94a3b8;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lobby-code {
    font-size: 2rem;
    font-weight: 900;
    color: #facc15;
    letter-spacing: 3px;
    background: #1e293b;
    padding: 5px 15px;
    border-radius: 5px;
}

.copy-button {
    height: 40px;
}

.ready-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Modal content */
.searching-title {
    margin-top: 20px;
    color: var(--accent);
}

.matching-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.section-heading {
    margin: 0;
}

.accent-feature {
    color: var(--accent);
    font-weight: bold;
}

.divider {
    border-color: rgba(255,255,255,0.1);
    margin: 10px 0;
}

.footnote {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.cookie-info {
    font-size: 0.9rem;
    color: #cbd5f5;
    text-align: left;
    line-height: 1.4;
}

.cookie-list {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: left;
    padding-left: 18px;
    line-height: 1.5;
}

/* Buttons */
.btn-green {
    background: var(--green);
    color: #fff;
}

/* Purchase confirmation */
#purchase-confirm-popup {
    z-index: 5000;
}

.purchase-panel {
    max-width: 360px;
    text-align: center;
}

.purchase-message {
    color: #cbd5f5;
    margin-bottom: 15px;
}

.item-name {
    color: var(--accent);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.purchase-stat-badge {
    display: inline-flex;
    margin-bottom: 20px;
}

/* Race error popup */
#race-error-popup {
    z-index: 4500;
}

.error-message {
    color: #cbd5f5;
    margin-bottom: 15px;
}

/* Tab content styling */
#tab-perf {
    display: block;
}

/* Lobby styling for dynamic elements */
.lobby-searching-message {
    color: #aaa;
    padding: 20px;
}

.lobby-player-color {
    background: attr(data-color);
}

/* Fallback for browsers that don't support attr for background */
.lobby-slot .lobby-player-color[data-color] {
    background-color: var(--player-color, #f59e0b);
}

.player-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.player-name-text {
    line-height: 1.1;
}

.player-xp-display {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: bold;
    margin-top: 3px;
}

.empty-slot-info {
    opacity: 0.5;
}

.empty-slot-color {
    background: #333;
}

/* Button state styles */
.btn-copy-active {
    border-color: #22c55e;
    color: #22c55e;
}

/* Status text colors */
.status-highlighted {
    color: #facc15;
}

.status-normal {
    color: #fff;
}

.status-green {
    color: #22c55e;
}

/* Lobby grid layout */
.lobby-grid-single {
    grid-template-columns: 1fr;
}

.lobby-grid-double {
    grid-template-columns: 1fr 1fr;
}

/* Button opacity states */
.button-active {
    opacity: 1;
}

.button-inactive {
    opacity: 0.7;
}

/* Player slot styles */
.player-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.player-name-line {
    line-height: 1.1;
}

.player-xp-display {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: bold;
    margin-top: 3px;
}

.empty-slot-info {
    opacity: 0.5;
}

.empty-slot-color {
    background: #333;
}

#tab-visual {
    display: none;
}

/* Element-specific styles */
.garage-col {
    width: 100%;
    text-align: left;
}

#car-color-picker {
    width: 100%;
    height: 40px;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Label styles */
#disp-racers, #disp-laps {
    color: var(--accent);
}

/* Checkboxes */
#inp-pole, #inp-perf-overlay, #inp-decorations, #inp-low-fx {
    accent-color: #facc15;
}

/* Flexbox layouts */
.direction-selection {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Menu title styling */
.menu-title span {
    font-size: 0.5em;
    color: #fff;
}

/* Welcome panel */
#logged-in-welcome {
    display: none;
    color: var(--accent);
    margin-bottom: 15px;
}

.logout-btn {
    margin-left: 10px;
    border-color: #ef4444;
    color: #ef4444;
    padding: 10px;
    font-size: 0.7rem;
}

/* Join button */
#btn-join-next {
    background: var(--green);
    color: #fff;
    margin-bottom: 10px;
    border: none;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

#menu-race-message {
    display: none;
    margin-bottom: 10px;
    color: #f97316;
    font-size: 0.85rem;
}

/* Grid layout */
#menu-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Store button */
#btn-store {
    background: #0f172a;
    border: 1px solid #334155;
    text-shadow: 0px 0px 3px #3b495e;
    color: #687588;
}
