@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "BookBag";
    src: url('./fonts/bookbag-thin.otf');
}

@font-face {
    font-family: "BookBag-regular";
    src: url('./fonts/bookbag-regular.otf');
}

@font-face {
    font-family: "BookBag-bold";
    src: url('./fonts/bookbag-bold.otf');
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(242, 242, 242);
    font-family: "Nunito Sans", sans-serif;
}

header {
    height: 90px;
    background: linear-gradient(90deg,rgba(61, 42, 155, 1) 0%, rgba(237, 83, 183, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
}

header a.link {
    position: absolute;
    top: 55%;
    left: 20px;
    color: white;
    text-decoration: none;
}

h1 {
    margin: 0;
    margin-bottom: 10px;
    color: white;
    font-family: "BookBag";
    letter-spacing: 1px;
}

h2 {
    margin-left: 15px;
    font-size: 18px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
}

h2.category {
    font-size: 14px;
    font-weight: 400;
}

.number {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400 !important;
}

.license_plate {
    margin: 30px 0 30px 0;
}

.license_plate .license_plate_inputs {
    background-color: white;
    border-top: 1px solid rgb(207, 207, 207);
    border-bottom: 1px solid rgb(207, 207, 207);
}

.license_plate .license_plate_inputs > div {
    display: flex;
    flex-direction: row;
}

.license_plate .license_plate_inputs .flag {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.license_plate .license_plate_inputs .numbers.first {
    position: relative;
}

.license_plate .license_plate_inputs .numbers.first::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0; 
    width: 95%;
    border-bottom: 1px solid rgb(207, 207, 207);
  }

.license_plate .license_plate_inputs .input .numbers {
    width: 85%;
    overflow: hidden;
}

.license_plate .license_plate_inputs .input .flag {
    width: 15%;
}

.license_plate .license_plate_inputs .flag img {
    width: 20px;
}

.license_plate .license_plate_inputs .numbers input {
    width: 100%;
    margin: 12px;
    padding-left: 10px;
    border: none;
    border-left: 1px solid rgb(207, 207, 207);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.category_container {
    background-color: white;
    border-top: 1px solid rgb(207, 207, 207);
    border-bottom: 1px solid rgb(207, 207, 207);
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 5px 0 10px 0;
}

.category_container .car_icon {
    width: 15%;
    text-align: center;
    padding-top: 12px;
}

.category_container .label {
    width: 80%;
    padding-left: 5px;
}

.category_container .label span {
    font-size: 12px;
    font-weight: 300;
    color: rgb(89, 89, 89);
}

.category_container .label h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.category_container .arrow_icon {
    width: 5%;
    padding-top: 12px;
}

.span {
    padding: 15px;
    line-height: 12px;
}

.span span {    font-size: 12px;
    color: rgb(89, 89, 89);
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 16px;
}

.button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
}

.button button {
    width: 90%;
    padding: 14px 0 14px 0;
    border-radius: 25px;
    border: none;
    background-color: rgb(245, 28, 93);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.button button:disabled {
    background-color: rgb(207, 207, 207);
    color: rgb(71, 71, 71);
}

#error {
    color: red;
    font-size: 12px;
    margin-left: 22px;
    display: none;
}

.select-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 96.5%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    transition: bottom 0.3s ease;
    z-index: 999;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    background-color: rgb(242, 242, 242);
}
  
.select-modal.active {
    bottom: 0;
}

.select-modal-header {
    background: linear-gradient(90deg,rgba(61, 42, 155, 1) 0%, rgba(237, 83, 183, 1) 100%);
    color: white;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.select-modal button {
    position: absolute;
    left: 20px;
    border: none;
    background-color: transparent;
    color: white;
    font-size: 14px;
}

.select-modal-header h4 {
    letter-spacing: 1px;
    font-family: "bookbag";
    margin: 0;
    font-size: 32px;
}
  
.select-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.select-modal h3 {
    margin-left: 15px;
    font-size: 18px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    margin-bottom: 0;
}
  
.select-modal ul {
    list-style: none;
    padding: 0;
}
  
.select-modal li {
    padding: 12px;
    border-bottom: 1px solid rgb(207, 207, 207);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    background-color: white;
    font-family: "bookbag-regular";
    font-size: 14px;
}

.select-modal li:first-child {
    border-top: 1px solid rgb(207, 207, 207);
  }

.select-modal li img {
    width: 25px;
    margin-right: 15px;
}
  
.select-modal li:hover {
    background-color: #f0f0f0;
}

.save-button {
    display: block;
    width: 90%;
    text-align: center;
    padding: 10px 0;
    border-radius: 25px;
    background-color: rgb(245, 28, 93);
    color: white;
    font-size: 16px;
    font-family: "Nunito Sans", sans-serif;
    text-decoration: none;
}

.center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.knob {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.knob .rotator {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-color: white;
}

.knob .text{
    width: 40px;
    height: 40px;
    margin: 0 15px;
    font-size: 22px;
    font-weight: 600 !important;
    color: rgba(61, 42, 155, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knob .time {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px;
}

.progress-indicator-background {
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: rgba(42, 30, 102, 0.415);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -13px;
    margin-top: -128px;
    transform-origin: 13px 128px;
    z-index: 9;
}

.progress-indicator {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: rgb(245, 28, 93);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -123px;
    transform-origin: 8px 123px;
    z-index: 10;
}

circle {
    fill: none;
}

circle:nth-child(1) {
    stroke: white;
    stroke-width: 15px;
    transform-origin: center;
    z-index: 7;
}

circle:nth-child(2) {
    stroke: rgb(2, 117, 232);
    stroke-width: 15px;
    stroke-dasharray: 723;
    stroke-dashoffset: calc(723 - (543 * 0) / 100);
    transform-origin: center;
    transform: rotate(-90deg);
    z-index: 8;
}

.checkpoints {
    pointer-events: none;
}

.checkpoint line {
    stroke: rgb(153, 153, 153);
    stroke-width: 0.7;
}

.checkpoint text {
    font-family: "Montserrat", sans-serif !important;
    font-size: 11px;
    fill: #666;
    text-anchor: middle;
}

.settings {
    background-color: white;
    border-bottom: 1px solid rgb(207, 207, 207);
    letter-spacing: 0.5px;
}

.settings .container {
    display: flex;
    flex-direction: row;
}

.settings .icon {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings .container:nth-child(2) .info {
    border-bottom: 1px solid rgb(207, 207, 207);
    border-top: 1px solid rgb(207, 207, 207);
}

.settings .info {
    width: 85%;
    padding: 10px 0 20px 0;
    display: flex;
    flex-direction: column;
}

.settings .info span {
    line-height: 16px;
}

.settings .info h2 {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 100;
}

.settings img {
    width: 22px;
}

.parking {
    background-color: white;
    margin: 18px;
    border-radius: 18px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}

.parking .division {
    display: flex;
    flex-direction: row;
}

.parking .division:first-of-type {
    border-bottom: 1px solid rgb(207, 207, 207);
}

.parking .division .subDivision {
    width: 50%;
    padding: 18px;
    display: flex;
    flex-direction: row;
}

.parking .division .subDivision .icon {
    display: flex;
    /* align-items: center;
    justify-content: center; */
    width: 20%;
}

.parking .division .subDivision .data {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.parking .division .subDivision .data span {
    font-size: 12px;
    font-weight: 100;
}

.parking .division .data span:first-of-type {
    font-size: 12px;
    color: #5c5b5b;
    font-family: "bookbag";
}

.parking .division .data span:nth-of-type(2) {
    color: #666;
}

.parking .division .data span:last-of-type {
    /* font-family: "BookBag-bold"; */
    color: inherit;
    font-size: 13px;
    font-weight: 400 !important;
}

.messages .notification {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 10px 0 10px;
}

.messages .notification .icon {
    width: 10%;
    text-align: center;
}
.messages .notification .content {
    width: 80%;
    padding: 12px;
    line-height: 16px;
    font-size: 14px;
}

.messages .legal {
    text-align: center;
    font-size: 14px;
}

.messages .legal a {
    color: blue;
}

.button.display {
    display: flex;
    flex-direction: column;
    background-color: white;
    text-align: center;
    padding: 10px 0 30px 0;
    position: fixed;
    bottom: 0px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.button.display span {
    color: #979494;
    margin: 16px 22px 16px 22px;
    font-size: 14px;
}

.button.display .check-container {
    width: 90%;
    text-align: left;
}

.button.display .check {
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.button.display .check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.button.display .check input[type="checkbox"]:checked {
    background-color: #f51c5d;
    border-color: #f51c5d;
}

.button.display .check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.button.display .check input[type="checkbox"]:hover {
    border-color: #f51c5d;
}

.button.display .check input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 28, 93, 0.2);
}

.button.display .check a {
    color: #f51c5d;
}

.button.display button {
    margin-top: 10px;
}

.warning {
    background-color: white;
    display: flex;
    justify-self: start;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    border-bottom: 2px solid #ccc;
}

.warning .icon {
    width: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.warning .content {
    width: 95%;
    text-align: center;
    font-size: 14px;
    color: #7b7b7b;
}

.form {
    margin-top: 16px;
}

.form .form-elem {
    padding: 6px 10px 6px 10px;
    display: flex;
    flex-direction: column;
}

.form .form-elem label {
    font-size: 16   px;
    color: #304d72;
    font-weight: 500;
    margin-bottom: 2px;
}

.form .form-elem input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 4px;
    height: 28px;
}

.form .form-elem input.code {
    width: 20%;
}

.form .form-elem .code-container {
    display: flex;
    align-items: center;
}

.form .form-elem .code-container svg {
    margin-left: 8px;
}

.expiration-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expiration-inputs .month-input,
.expiration-inputs .year-input {
    width: 80px;
    height: 50px;
    border: 1px solid rgb(207, 207, 207);
    border-radius: 8px;
    /* padding: 0 15px; */
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
}

.expiration-inputs .separator {
    color: rgb(100, 100, 100);
}

/* Styles pour la popup d'information */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

.popup-body {
    padding: 20px;
}

.popup-body p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

.popup-body p:last-of-type {
    margin-bottom: 20px;
}

.popup-body strong {
    color: #333;
    font-weight: 600;
}

.popup-example {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.popup-example img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Amélioration du style de l'icône d'information */
#codeInfoIcon {
    transition: all 0.2s ease;
}

#codeInfoIcon:hover {
    fill: #666;
    transform: scale(1.1);
}

/* Messages d'erreur sous les champs */
.error-message {
    color: #d93025;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.form-elem.invalid input,
.form-elem.invalid .expiration-inputs input {
    border-color: #d93025;
}

.head {
    margin-top: 13vh;
    margin-bottom: 50px;
    text-align: center;
}

.head h1 {
    color: black;
    font-family: "BookBag-bold";
    letter-spacing: 0.5px;
    font-size: 18px;
    margin-bottom: 0;
}

.head span {
    font-size: 12px;
    font-weight: 300;
    color: #666;
    letter-spacing: 0.4px;
}

.mail {
    background-color: white;
    border: 1px solid rgb(207, 207, 207);
    display: flex;
    justify-content: center;
    padding: 12px;
    gap: 20px;
}

.display {
    padding-top: 13vh;
}

.display ul {
    list-style: none;
    padding: 0 10px 0 10px;
}

.display .li-container ul {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.display .li-container ul li {
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif !important;
}


.display .li-container ul li img {
    margin-right: 10px;
    width: 20px;
}

.display .li-container ul li img#profile {
    width: 18px;
}