body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #FFF5EE;
    overflow: hidden;
}

input#pdf-upload {
    width: 1px;
}

#logout-button {
    display: none; /* Sera affiché par le JavaScript pour les utilisateurs connectés */
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 14px;
    background: linear-gradient(to right, #FFA500, #FF1493);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#logout-button:hover {
    background: linear-gradient(to right, #FF8C00, #FF69B4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}



#main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

#map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.country {
    fill: url(#country-gradient);
    stroke: #FFFFFF;
    stroke-width: 0.5;
    transition: all 0.3s;
}

.country:hover {
    fill: url(#country-hover-gradient);
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(255, 165, 0, 0.3));
}

.country-label {
    font-size: 8px;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, font-size 0.3s;
}

#info-box {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.2);
    z-index: 1000;
    font-size: 14px;
    max-height: 30%;
    overflow-y: auto;
    width: auto;
}

#controls {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

button {
    padding: 8px 12px;
    font-size: 14px;
    background: linear-gradient(to right, #FFA500, #FF1493);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: linear-gradient(to right, #FF8C00, #FF69B4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

#pdf-viewer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF0F5;
    transition: transform 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

#pdf-viewer.closed {
    transform: translateY(100%);
}

#pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#pdf-title {
    font-size: 18px;
    color: #FF1493;
    font-weight: bold;
}

#pdf-close {
    font-size: 24px;
    cursor: pointer;
    color: #FFA500;
}

#pdf-frame {
    flex-grow: 1;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

#pdf-controls {
    margin-top: 10px;
}

#pdf-upload {
    display: none;
}

#pdf-upload-label {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(to right, #FFA500, #FF1493);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#pdf-status {
    margin-top: 5px;
    font-size: 12px;
    color: #FF8C00;
}

#country-tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    color: #FF1493;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
}

#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #FFF5EE;
}

#login-container input {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login-container button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #FF1493;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#login-container button:hover {
    background-color: #FF69B4;
}

#create-user-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
}

#create-user-form {
    background-color: #FFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#create-user-form input {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#create-user-form button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #FF1493;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#create-user-form button:hover {
    background-color: #FF69B4;
}
