/*--- PROF DASHBOARD ---*/
/*-SCANNER-*/
#vms-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
#vms-scanner-container {
    width: 90%;
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#vms-qr-scanner {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    margin-bottom: 20px;
}
#vms-qr-scanner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#vms-close-scanner {
    background-color: #F48421;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0 0 0;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 500;
}
.pop-user{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px;
}
.pop-available{
    margin-bottom: 18px;
}

#vms-confirmation-popup,
#vms-feedback-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 10001;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    width: 300px;
}
.vms-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vms-popup-content button {
    margin: 10px 5px 0;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    font-weight: 500;
}
#confirmScan {
    background-color: #378954;
    color: white;
    border: 1px solid #378954;
}
#cancelScan {
    background-color: white;
    color: #f44336;
    border: 1px solid #f44336;
}
#continueScan {
    background-color: #0F2940;
    color: white;
}
.vms-popup-content.success {
    color: #378954;
    margin-bottom: 0;
}
.vms-popup-content.error {
    color: #f44336;
}

/*--- USER DASHBOARD ---*/
.vms-user-title{
    color: white;
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: "Roboto Slab", serif;
}
.vms-user-qr-code{
    padding:0.75rem;
    background-color: white;
    border-radius: 12px;
}
.vms-ticket-credits h3{
    color: white;
    text-align: center;
    font-weight: 500;
    font-size: 1.6rem;
    margin-top: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
/* Styling for the credit list container */
.vms-credit-list {
    text-align: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
    margin-bottom: 2rem;
}

/* Styling for each credit item */
.vms-credit-item {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: white;
}

.vms-credit-item:last-child {
    margin-bottom: 0;
}

.vms-credit-item small {
    font-size: 0.8em;
    opacity: 0.8;
    display: inline-block;
    margin-top: 2px;
}

/* Styling for the credit label */
.vms-credit-label {
    margin-right: 10px;
}

.vms-ticket-credits h3:not(:first-of-type) {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styling for the credit value */
.vms-credit-value {
    display: inline-block;
    width: auto;
    height: 30px;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 30px;
    background-color: white;
    color: #0F2940; /* Change this to your preferred shade of blue */
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
}

/* Styling for the "Acheter des crédits" button */
.vms-credit-list + .button, .vms-button {
    display: block;
    margin-top: 20px;
    text-align: center;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 500;
    background-color:#0F2940;
    color:white;
    text-decoration: none;
    padding-top:12px;
    padding-bottom: 12px;
    padding-left:24px;
    padding-right: 24px;
    text-transform: uppercase;
}
.vms-credit-list + .button{
    background-color: #00BAE5 !important ;
}
.vms-credit-list + .button:hover, .vms-button:hover{
    background-color: #F5F5DC !important;
    color:#0F2940;
}

/*--- FRONTEND TABLES ---*/
.vms-user-event-history h2, .vms-prof-event-history h2{
    font-weight: 600;
}
/* Responsive Table Styles */
.vms-attended-events-table,
.vms-managed-events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1em;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden; /* This will clip the table contents to the rounded corners */
}

.vms-attended-events-table th,
.vms-attended-events-table td,
.vms-managed-events-table th,
.vms-managed-events-table td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.vms-attended-events-table th:last-child,
.vms-attended-events-table td:last-child,
.vms-managed-events-table th:last-child,
.vms-managed-events-table td:last-child {
    border-right: none; /* Remove right border from last column */
}

.vms-attended-events-table th,
.vms-managed-events-table th {
    background-color: #0F2940;
    color: #F5F5DC;
    font-weight: bold;
}

.vms-attended-events-table tr:last-child td,
.vms-managed-events-table tr:last-child td {
    border-bottom: none;
}

.vms-managed-events-table td, .vms-attended-events-table td{
    background-color: white;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .vms-attended-events-table,
    .vms-managed-events-table,
    .vms-attended-events-table thead,
    .vms-managed-events-table thead,
    .vms-attended-events-table tbody,
    .vms-managed-events-table tbody,
    .vms-attended-events-table th,
    .vms-managed-events-table th,
    .vms-attended-events-table td,
    .vms-managed-events-table td,
    .vms-attended-events-table tr,
    .vms-managed-events-table tr {
        display: block;
    }
    .vms-attended-events-table tr,
    .vms-managed-events-table tr{
        background-color: white;
    }

    .vms-attended-events-table thead tr,
    .vms-managed-events-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .vms-attended-events-table tr,
    .vms-managed-events-table tr {
        border: 1px solid #ccc;
        margin-bottom: 0.625em;
        border-radius: 12px;
        overflow: hidden;
        padding: 8px;
    }

    .vms-attended-events-table td,
    .vms-managed-events-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        padding:4px;
    }

    .vms-attended-events-table td:last-child,
    .vms-managed-events-table td:last-child {
        border-bottom: none;
    }

    .vms-attended-events-table td:before,
    .vms-managed-events-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }

    /* Specific styles for each column */
    .vms-attended-events-table td:nth-of-type(1):before,
    .vms-managed-events-table td:nth-of-type(1):before { content: "Événement"; }
    .vms-attended-events-table td:nth-of-type(2):before,
    .vms-managed-events-table td:nth-of-type(2):before { content: "Ville"; }
    .vms-attended-events-table td:nth-of-type(3):before { content: "Crédits dépensés"; }
    .vms-managed-events-table td:nth-of-type(3):before { content: "Scans"; }
    .vms-attended-events-table td:nth-of-type(4):before,
    .vms-managed-events-table td:nth-of-type(4):before { content: "Date"; }
}

/* Pagination Styles */
.vms-pagination {
    margin-top: 1em;
    text-align: center;
}

.vms-pagination a {
    display: inline-block;
    padding: 0.5em 0.75em;
    margin: 0 0.25em;
    border: 1px solid #0F2940;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
}

.vms-pagination a.current {
    background-color: #0F2940;
    color: #F5F5DC;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    .vms-pagination a {
        padding: 0.4em 0.6em;
        margin: 0 0.1em;
    }
}

/* Prof dashboard */
.vms-assigned-events {
    list-style-type: none;
    padding-left: 0 !important;
}

ul.vms-assigned-events, ul.vms-today-events{
    margin-left: 0 !important;
    padding:0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px !important;
}

.vms-assigned-events li {
    padding:8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    border: 1px solid rgba(14, 41, 64, 0.14);
    font-weight: 500;
}

@media screen and (max-width: 600px){
    .vms-assigned-events li {
        flex-direction: column;
        gap:12px;
        line-height: 1.2rem;
        padding-top:12px;
        padding-bottom: 12px;
        text-align: center;
    }
    .vms-today-events button, .vms-future-events button{
        width: 100%;
    }
}

.vms-today-events button{
    background-color: #F48421;
    color: #F5F5DC;
    font-weight: 600;
    border-radius: 12px;
    margin-left:0;
    margin-right: 0;
}

.vms-today-events button:hover{
    background-color: #0F2940;
}

.vms-future-events button{
    background-color: #0F2940;
    color: #F5F5DC;
    font-weight: 600;
    border-radius: 12px;
    margin-left:0;
    margin-right: 0;
}

.vms-future-events button:hover{
    background-color: #F48421;
}

.vms-start-scanning {
    margin-left: 10px;
}

.prof-h3{
    color:white !important;
    font-weight: 600;
}
.prof-nothing-found{
    color:white;
    text-align: center;
}

/*-USER ID-*/
.vms-user-id {
    color: white;
    text-align: center;
    font-size: 1.4rem;
    margin-top: -1.4rem;
    margin-bottom: 1rem;
}
.vms-user-favorite-info {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
}

.vms-user-favorite-info h3 {
    margin-top: 0;
    color: #333;
}

.vms-user-favorite-info p {
    margin-bottom: 10px;
}
.vms-user-favorite-info p:last-child{
    margin-bottom: 0;
}

.vms-h3-udc{
    color: #0F2940!important;
    text-align: left !important;
}
.vms-list-udc{
    text-align: left !important;
}
.vms-li-udc{
    color:#0F2940 !important
}
.vms-span-udc{
    background-color: #0F2940 !important;
    color: white !important;
}

@media screen and (max-width: 600px){
    .vms-list-udc{
        text-align: center !important;
    }
    .vms-h3-udc{
        text-align: center!important;
    }
}

/* Attendees Popup Styles */
#vms-attendees-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0F2940;
    padding: 20px;
    border-radius: 12px;
    z-index: 10001;
    max-width: 90%;
    max-height: 90vh;
    width: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vms-popup-content {
    max-width: 100%;
    margin: 0 auto;
}

.vms-attendees-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F5F5DC;
    border: 1px solid #F5F5DC;
}

.vms-attendees-table th,
.vms-attendees-table td {
    padding: 12px;
    text-align: left;
}

.vms-attendees-table th {
    background-color: #F5F5DC;
    color: #0F2940;
    font-weight: bold;
}

.vms-attendees-table td {
    background-color: #0F2940;
    color: white;
}

.vms-attendees-table tr:not(:last-child) td {
    border-bottom: 1px solid #F5F5DC;
}

.vms-attendees-table th:not(:last-child),
.vms-attendees-table td:not(:last-child) {
    border-right: 1px solid #F5F5DC;
}

.vms-attendees-table .vms-grand-total td {
    background-color: #F48421;
    color: white;
    font-weight: bold;
}

#vms-close-popup {
    display: block;
    width: auto;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #F48421;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
}

#vms-close-popup:hover {
    background-color: #F5F5DC;
    color: #0F2940;
}

#vms-attendees-popup h3 {
    margin-top: 0;
    color: #F5F5DC;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

/* Responsive styles for mobile devices */
@media screen and (max-width: 600px) {
    #vms-attendees-popup {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 10px 5px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    #vms-attendees-popup .vms-popup-content {
        flex-grow: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 5px 20px !important;
        margin: 0 !important;
    }

    #vms-attendees-popup .vms-attendees-table {
        background-color: transparent !important;
        border: none !important;
        margin-top: 0 !important;
        width: 100% !important;
        border-radius: 0;
    }

    #vms-attendees-popup .vms-attendees-table,
    #vms-attendees-popup .vms-attendees-table tbody,
    #vms-attendees-popup .vms-attendees-table tr {
        display: block !important;
    }

    #vms-attendees-popup .vms-attendees-table thead {
        display: none !important;
    }

    #vms-attendees-popup .vms-attendees-table tr {
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background-color: #0F2940 !important;
        border: 1px solid #F5F5DC !important;
    }

    #vms-attendees-popup .vms-attendees-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px !important;
        border: none !important;
        background-color: transparent !important;
    }

    #vms-attendees-popup .vms-attendees-table td:first-child {
        border-top-left-radius: 8px !important;
        border-top-right-radius: 8px !important;
    }

    #vms-attendees-popup .vms-attendees-table td:last-child {
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }

    #vms-attendees-popup .vms-attendees-table td:not(:last-child) {
        border-bottom: 1px solid #F5F5DC !important;
    }

    #vms-attendees-popup .vms-attendees-table td:before {
        content: attr(data-label) !important;
        font-weight: bold !important;
        margin-right: 10px !important;
        flex: 1 !important;
        color: #F5F5DC !important;
    }

    #vms-attendees-popup .vms-attendees-table td span {
        flex: 2 !important;
        text-align: right !important;
    }

    #vms-attendees-popup .vms-attendees-table .vms-grand-total td {
        background-color: #F48421 !important;
    }

    #vms-attendees-popup h3 {
        font-size: 20px !important;
        margin: 0 0 15px 0 !important;
        padding-top: 10px !important;
        color: #F5F5DC !important;
    }

    #vms-attendees-popup #vms-close-popup {
        width: calc(100% - 10px) !important;
        padding: 15px 20px !important;
        margin: 10px 5px 5px !important;
        background-color: #F48421 !important;
        color: white !important;
        border: none !important;
        border-radius: 30px !important;
        font-size: 18px !important;
        font-weight: 500 !important;
    }
}

.vms-credit-subitem {
    padding-left: 0px;
    color:white;
    margin-bottom: 12px;
}

.vms-credit-subitem * {
    font-size: 1rem !important;
}

.vms-credit-value-subitem{
    display: inline-block;
    width: auto;
    height: 30px;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 30px;
    background-color: transparent;
    color: white; /* Change this to your preferred shade of blue */
    border-radius: 30px;
    border: 1px solid white;
    text-align: center;
    font-weight: bold;
}

.vms-credit-value-subitem-udc{
    display: inline-block;
    width: auto;
    height: 30px;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 30px;
    background-color: transparent;
    color: #0F2940; /* Change this to your preferred shade of blue */
    border-radius: 30px;
    border: 1px solid #0F2940;
    text-align: center;
    font-weight: bold;
}

.vms-product-details {
    margin: 15px 0;
}

.vms-product-item {
    margin: 8px 0;
}

.vms-product-item label {
    margin-left: 8px;
}

.vms-history-container {
    max-width: 600px;
    margin: 20px auto;
}

.vms-history-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    color: #0E2940;
}

.vms-history-item .vms-credit-item {
    margin-bottom: 10px;
}

.vms-history-item .vms-credit-subitem {
    padding-left: 15px;
    margin: 5px 0;
}

.vms-location-info {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

