@font-face {
	font-family: 'Roboto';
	src: url("fonts/Roboto-Bold.woff2") format("fonts/woff2"), url("fonts/Roboto-Bold.woff") format("fonts/woff"), url("fonts/Roboto-Regular.ttf") format("fonts/truetype");
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Roboto';
	src: url("fonts/roboto-regular.woff2") format("fonts/woff2"), url("fonts/roboto-regular.woff") format("fonts/woff"), url("fonts/Roboto-Regular.ttf") format("fonts/truetype");
	font-weight: normal;
	font-style: normal;
}

@-webkit-keyframes fadeLoop {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes fadeLoop {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

* {
	position: relative;
	margin: 0;
	padding: 0;
	outline: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: 'Roboto', sans-serif;
	font-weight: normal;
	overflow: hidden;
	background-color: transparent;
}

.background,
.outer {
	-webkit-transform: rotate(-180deg);
	-ms-transform: rotate(-180deg);
	transform: rotate(-180deg);
	-webkit-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

.progress {
	-webkit-transition: 0.35s stroke-dashoffset;
	-o-transition: 0.35s stroke-dashoffset;
	transition: 0.35s stroke-dashoffset;
	-webkit-transform: rotate(140deg);
	-ms-transform: rotate(140deg);
	transform: rotate(140deg);
	-webkit-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

.huds {
	position: absolute;
	left: 50%;
	height: 100%;
	width: 800px;
	transform: translate(-50%, 0);
}

.huds .hud.dashboard {
	position: absolute;
	height: 40px;
	bottom: 60px;
	left: 50%;
	transform: translate(-50%, 0);
}

.huds .hud.dashboard div {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px;
}

.huds .hud.dashboard div svg {
	opacity: .5;
}

.huds .hud.dashboard .active svg {
	opacity: .9;
}

.clignotant {
	left: 50px;
}
.clignotant-gauche {
	left: 70px;
}
.clignotant-pis {
	right: 40px;
}
.feu-route {
	right: 56px;
}

.huds .hud.dashboard .clignotant.active svg {
	animation: fadeLoop 1s step-start infinite !important;
}

.huds .hud.dashboard .clignotant.active svg path {
	stroke: #f39c12 !important;
}

.huds .hud.dashboard .feu-position.active svg {
	opacity: 1;
}

.huds .hud.dashboard .feu-position.active svg path {
	fill: #2ecc71;
}

.huds .hud.dashboard .feu-route.active svg {
	opacity: 1;
}

.huds .hud.dashboard .feu-route.active svg path {
	fill: #0984e3;
}

.huds .hud.dashboard .speedometer {
	width: 120px;
	height: 100px;
	text-align: center;
	-webkit-clip-path: polygon(100% 45%, 80% 45%, 60% 100%, 0% 100%, 0% 0%, 100% 0%);
	clip-path: polygon(100% 45%, 80% 45%, 60% 100%, 0% 100%, 0% 0%, 100% 0%);
}

.huds .hud.dashboard .speedometer svg {
	opacity: 1;
	left: 50%;
	bottom: 40px;
	position: absolute;
	transform: scale(1) translate(-50%, 0) rotate(-40deg);
}

.huds .hud.dashboard .speedometer .outer {
	opacity: .3;
	transform: rotate(180deg) scale(1.2); 
}

.huds .hud.dashboard .speedometer .text {
	position: absolute;
	top: 35%;
	left: 50%;
	margin: 0;
	width: 100%;
	transform: translate(-50%, -50%);
}

.huds .hud.dashboard .speedometer .text .speed {
	color: white;
	font-size: 12px;
	display: block;
}

.huds .hud.dashboard .speedometer .text .kmh {
	color: rgba(255, 255, 255, 0.5);
	font-size: 5px;
	display: block;
	text-transform: uppercase;
}

.huds .hud.fuel {
	-webkit-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.5);
	position: absolute;
	bottom: -35px;
	right: 100px;
	position: absolute;
	text-align: center;
	margin: 15px 0;
}

.huds .hud.fuel span {
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	display: block;
	margin-top: 0px;
}

.huds .hud.fuel svg {
	opacity: 1 !important;
}

.hud.fuel span {
	opacity: 0;
	margin-top: -4px;
}

.hud.fuel span:after {
	position: absolute;
	content: '%';
	top: 1px;
	right: 4px;
	font-size: 7px;
}

.hud.fuel g {
	-webkit-transform: translate(16px, 13px);
	-ms-transform: translate(16px, 13px);
	transform: translate(16px, 13px);
}

.orangeStroke {
	stroke: #ffaf02;
}

.redStroke {
	stroke: #FF0245;
}

.hud-person {
    position: absolute;
    left: 50%;
    width: 300px;
    bottom: 10px;
    height: 40px;
    display: inline-flex;
    transform: translate(-50%, 0);
}

.hud-person section {
    position: relative;
    width: 50%;
    opacity: .8;
    height: 100%;
    color: #ffffff;
}

.hud-person section img {
    position: relative;
    top: 1px;
    max-width: 13px;
    max-height: 13px;
}

.hud-person .right label {
    float: right;
}

.hud-person .right .hud-bar {
    transform: scaleX(-1);
}

.hud-person section .hud-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(218, 218, 218, 0.308);
}

.hud-person section .hud-bar .hud-fill {
    height: 100%;
}

.hud-person .hud-mic {
	position: absolute;
	bottom: 60px;
	left: 230px;
	color: #fff;
	font-size: 12px;
	padding: 5px 10px;
	display: inline-flex;
	border-radius: 30px;
	text-transform: lowercase;
	background-color: rgba(0, 0, 0, 0.308);
}


.hud-person .hud-mic img {
	position: relative;
	top: 1px;
	max-width: 12px;
	margin-right: 5px;
	max-height: 12px;
}

.hud-person .hud-cinto {
	position: absolute;
	bottom: 60px;
	left: 200px;
	color: #fff;
	padding: 5px;
	font-size: 12px;
	border-radius: 50%;
	display: inline-flex;
	text-transform: lowercase;
	background-color: rgba(0, 0, 0, 0.308);
}


.hud-person .hud-cinto img {
	position: relative;
	max-width: 15px;
	max-height: 15px;
}

.hud-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0 10px;
}

.discord-url {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: -35px; 
    text-align: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    font-weight: bold; 
    font-size: 16px; 
    z-index: 1000;
    padding: 5px 15px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3); 
}

.discord-url:hover {
    transform: translateX(-50%) scale(1.05);
    text-shadow: 0 0 15px var(--primary-color);
}

@keyframes glowText {
    0% { text-shadow: 0 0 10px rgba(147, 51, 234, 0); }
    50% { text-shadow: 0 0 20px rgba(147, 51, 234, 0.5), 0 0 30px rgba(147, 51, 234, 0.3); }
    100% { text-shadow: 0 0 10px rgba(147, 51, 234, 0); }
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.status-bar {
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 6px;
    background: black;
    border: none;
    box-shadow: none;
}

.mic-icon {
    width: 30px;
    height: 25px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.mic-icon i,
.mic-icon svg path {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.mic-icon svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.mic-icon svg path {
    fill: white;
    transition: all 0.2s ease;
}

.mic-icon.talking {
    background: linear-gradient(45deg, #9333EA, #7C3AED);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
    border-color: rgba(147, 51, 234, 0.8);
}

.mic-icon.talking svg {
    animation: pulseIcon 1.2s ease-in-out infinite;
}

.mic-icon.talking svg path {
    fill: white;
}

@keyframes pulseIcon {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.health-bar, .armor-bar {
    flex: 1;
    height: 25px;
    background: rgba(20, 20, 25, 0.8);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 51, 234, 0.3);
    min-width: 100px;
    max-width: 120px;
}

.health-bar .fill {
    background: linear-gradient(90deg, #9333EA, #7C3AED);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.armor-bar .fill {
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
    letter-spacing: 1px;
}

.player-id {
    width: 30px;
    height: 25px;
    background: rgba(20, 20, 25, 0.8);
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(147, 51, 234, 0.3);
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes damage {
    0% { transform: scale(1); border-color: rgba(147, 51, 234, 0.3); }
    25% { transform: scale(1.03); border-color: rgba(147, 51, 234, 0.8); }
    50% { transform: scale(1); border-color: rgba(147, 51, 234, 0.3); }
    75% { transform: scale(1.02); border-color: rgba(147, 51, 234, 0.6); }
    100% { transform: scale(1); border-color: rgba(147, 51, 234, 0.3); }
}

.damage {
    animation: damage 0.4s cubic-bezier(0.4, 0, 0.2, 1), glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% { border-color: rgba(147, 51, 234, 0.3); }
    50% { border-color: rgba(147, 51, 234, 0.6); }
    100% { border-color: rgba(147, 51, 234, 0.3); }
}

.mic-icon:hover,
.health-bar:hover,
.armor-bar:hover,
.player-id:hover {
    border-color: rgba(147, 51, 234, 0.6);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

#settings-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(16, 16, 24, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    z-index: 1000;
    overflow: hidden;
}

.settings-container {
    padding: 20px;
}

.settings-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.1);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title i {
    color: var(--primary-color, #9333EA);
    font-size: 24px;
}

.header-title h2 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.settings-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header i {
    color: var(--primary-color, #9333EA);
    font-size: 18px;
}

.section-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.color-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.color-option.purple .color-preview { background: linear-gradient(135deg, #9333EA, #7C3AED); }
.color-option.blue .color-preview { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.color-option.red .color-preview { background: linear-gradient(135deg, #EF4444, #DC2626); }
.color-option.green .color-preview { background: linear-gradient(135deg, #10B981, #059669); }

.color-option span {
    color: white;
    font-size: 14px;
}

.color-option.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.opacity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

#opacity-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

#opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color, #9333EA);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.opacity-value {
    color: white;
    font-size: 14px;
    min-width: 48px;
    text-align: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.toggle-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-info i {
    color: var(--primary-color, #9333EA);
    font-size: 16px;
}

.toggle-info span {
    color: white;
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .4s;
}

.switch::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .switch {
    background: var(--primary-color, #9333EA);
}

input:checked + .switch::before {
    transform: translateX(20px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#settings-menu {
    animation: slideIn 0.3s ease;
}

.discord-url,
.speed,
.kmh,
.speedometer .circle,
.progress-speed,
.fuel .circle,
.progress-fuel,
.clignotant svg path,
.feu-position svg path,
.feu-route svg path {
    transition: all 0.3s ease;
}

:root {
    --primary-color: #9333EA;
    --secondary-color: #7C3AED;
}

.health-bar .fill,
.armor-bar .fill,
.progress-speed,
.progress-fuel,
.speed,
.kmh,
.discord-url,
.mic-icon svg path,
.clignotant svg path,
.feu-position svg path,
.feu-route svg path {
    transition: all 0.3s ease;
}

.fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.progress-speed,
.progress-fuel {
    stroke: var(--primary-color);
}

.status-bar,
.mic-icon,
.health-bar,
.armor-bar,
.huds .hud,
.speedometer,
.fuel,
.circle.outer,
.circle.background {
    transition: all 0.3s ease;
    border-color: var(--primary-color);
}

.status-bar,
.mic-icon,
.health-bar,
.armor-bar,
.huds .hud,
.speedometer,
.fuel {
    border: 1px solid var(--primary-color);
}
