@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: white;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #141414; /* Fond sombre de sécurité */
}

/* Fond imitant le flou en jeu (pp/blurscreen) */
.background {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    /* Image classique de Garry's Mod très floutée */
    background-image: url('https://media.steampowered.com/apps/4000/images/header.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.4); /* Très flou et sombre, comme le HUD */
    z-index: -1;
}

/* Le panel central identique au HUD (Color(20,20,20,220)) */
.glass-panel {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px; /* Coins légèrement arrondis comme en jeu */
    padding: 40px;
    width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #64c8ff; /* Correspond à Color(100, 200, 255) du HUD */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 18px;
    color: #cccccc;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Section de progression */
.progress-section {
    margin-bottom: 40px;
}

#status-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%; 
    background: #64c8ff; /* Bleu clair uni */
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

#files-text {
    font-size: 14px;
    margin-top: 10px;
    color: #aaaaaa;
}

/* Footer (Infos joueur) */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

#player-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.steamid {
    font-size: 14px;
    color: #aaaaaa;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
}
