﻿/** Declaration of color palette (Sent by Stephane) */
:root {
    /* Primary Color */
    --bs-primary: #1D33F5;
    --bs-primary-rgb: 29,51,245;
    /* Secondary Color */
    --bs-secondary: #000471;
    --bs-secondary-rgb: 0,4,113;
    /* Error Color */
    --error-color: #CD0000;
    /* Text Colors */
    --error-text: var(--error-color);
    /* Background Colors */
    --background-color: #F5F5F5;
    --header-background: var(--bs-primary);
    --footer-background: var(--bs-secondary);
    /* Success Colors */
    --bs-success-rgb: 0,218,145;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    color: white;
}

#page-content {
    flex: 1 0 auto;
}

/**** Page Connexion */
.text-big {
    font-size: 22px;
    line-height: 20px;
    text-align: right;
    font-weight: 700;
}

.text-sub {
    font-size: 21px;
    line-height: 21px;
    text-align: right;
    font-weight: 500;
}

.container-principal {
    padding: 0.75rem;
}

.modal-body {
    padding-top: 0px;
}

.modal-content {
    border-radius: 15px;
    padding: 20px;
}

.modal-header .btn-close {
    margin: -1rem -1rem -1rem auto;
    padding: 0.25rem;
    font-size: 0.75rem;
}

.modal-body h5 {
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--bs-gray);
}

.form-control {
    border-radius: 5px;
    border: 1px solid var(--bs-gray-400);
    font-size: 0.875rem;
}

.form-label {
    font-weight: bold;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.btn-success {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 10px;
}

.fa-3xl {
    font-size: 2em;
}

.btn-primary {
    color: white;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 5px;
}

    .btn-primary:hover {
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
    }

    /* Button with loading spinner */
    .btn-primary .loading-spinner {
        border: 5px solid #f3f3f3;
        border-top: 5px solid var(--bs-primary);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        animation: spin 0.8s linear infinite;
        display: inline-block;
    }

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-gradient: none;
}

.btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-secondary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-secondary);
    --bs-gradient: none;
}

.is-invalid {
    border-color: var(--error-color);
    background-color: #ffe6e6;
}

    .is-invalid:focus {
        box-shadow: 0 0 5px 1px var(--error-color);
    }

.text-danger {
    color: var(--error-color);
}

.fa-4xl {
    font-size: 4em;
}

.bg-light {
    background-color: #F8F8F8;
}

.logo {
    height: 234px;
    background: linear-gradient(110deg, #232323 0%, #535353 51%, black 100%);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.60);
    border-radius: 14px;
}

.cursor {
    cursor: pointer;
}

/* MODAAAAAAAAAAAAAL */
.container-drop {
    width: 100% !important;
    padding: 0px !important;
    box-shadow: none !important;
}

.mat-mdc-dialog-container {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.style-Modal .mat-mdc-dialog-container {
    position: relative;
    max-width: 70vw !important;
    border-radius: 5px !important;
}

.style-Modal .mat-dialog-content {
    display: flex;
    flex-direction: column;
}

.cdk-overlay-pane {
    max-width: 100vw !important;
}

.close-btn {
    border: 0;
    background: none;
    color: #2d2d2d;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 2em;
}

@media screen and (min-width: 768px) {
    .style-Modal .mat-mdc-dialog-container {
        position: relative;
        max-width: 40vw !important;
        border-radius: 5px !important;
    }
}

.header-logo-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 3rem;
}

.mentions-legales-block {
    padding: 10px;
}

/* Medium devices (landscape tablets, min 768px max 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .style-Modal .mat-mdc-dialog-container {
        position: relative;
        max-width: 30vw !important;
        border-radius: 5px !important;
    }
}

/* Large devices (laptops/desktops, min 992px and max 1199px) */
@media only screen and (min-width: 992px) and (max-width:1199px) {
    .style-Modal .mat-mdc-dialog-container {
        position: relative;
        max-width: 40vw !important;
        border-radius: 5px !important;
    }
}

@media screen and (max-width: 767px) {
    .style-Modal .mat-mdc-dialog-container {
        position: relative;
        max-width: 80vw !important;
        border-radius: 5px !important;
    }

    .header-logo-container small {
        display: none;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .mentions-legales-block {
        width: 60%;
        padding: 20px;
        margin: 0 auto;
        text-align: left;
        margin-top: 1%;
    }

    .style-Modal .mat-mdc-dialog-container {
        position: relative;
        max-width: 100% !important;
        border-radius: 5px !important;
    }
}

@media (max-width: 391px) {
    .quittance-item {
        padding: 6px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-bottom: 13px !important;
    }

    .quittance-amount {
        font-size: 15px !important;
    }

    .quittance-price {
        gap: 0.5rem !important;
    }

    .quittance-info {
        gap: 0.5rem !important;
    }

    .warning-icon {
        width: 1.5rem !important;
    }
}

.quittance-container {
    width: 100%;
}

@media (max-width: 768px) {
    .total-bar {
        padding: 10px;
        font-size: 14px;
    }

        .total-bar .btn {
            padding: 10px 20px;
            font-size: 14px;
        }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.warning-icon {
    animation: bounce 1s infinite;
}

/* Preloader styles */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    animation: zoom 2s ease-in-out infinite;
    width: 150px;
    height: 150px;
}

@keyframes zoom {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3); /* Adjust scale factor for zoom effect */
    }
}

/* Optional: hide the preloader when the page is fully loaded */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide the button text when loading */
.btn.loading .button-text {
    display: none;
}

/* Show the loading spinner */
.btn.loading .loading-spinner {
    display: inline-block !important;
}

/* Spinner hidden by default */
.d-none {
    display: none;
}

.form-control-connexion {
    color: var(--bs-primary);
    font-weight: bold;
    font-size: 1.25rem; /* Adjust font size as needed */
}

    .form-control-connexion:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 5px rgba(118, 183, 45, 0.5); /* Optional shadow effect */
        outline: none; /* Remove default outline */
    }

    .form-control-connexion::placeholder {
        color: var(--bs-primary);
        opacity: 1; /* Fully opaque placeholder */
    }

/* Custom checkbox label styling */
.payment-success-checkbox-label {
    display: inline-block;
    width: 100px; /* Increased size */
    height: 100px; /* Increased size */
    background-color: #ffffff;
    border: 5px solid var(--bs-primary); /* Increased border size */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: scale(0); /* Initial state for animation */
    animation: scale-up 1.5s ease forwards; /* Animation for checkbox */
}

    /* Custom tick mark styling */
    .payment-success-checkbox-label:after {
        content: '';
        position: absolute;
        top: 12px;
        left: 30px;
        width: 34px;
        height: 50px;
        border: solid var(--bs-primary);
        border-width: 0 9px 8px 0;
        transform: rotate(45deg);
        display: none;
    }

/* Show the tick when the checkbox is checked */
.payment-success-checkbox:checked + .payment-success-checkbox-label:after {
    display: block;
}

/* Disabled state styling */
.payment-success-checkbox:disabled + .payment-success-checkbox-label {
    cursor: default;
    background-color: var(--bs-gray-200);
    border-color: var(--bs-gray-200);
}

/* Title of the confirmation message */
.confirmation-title {
    font-size: 24px;
    color: #333;
}

/* Subtext of the confirmation message */
.confirmation-subtext {
    font-size: 16px;
    color: #777;
    margin: 20px 0;
}

/* Container for the back button */
.confirmation-button-container {
    margin-top: 30px;
}

/* Keyframe animation for scaling up the checkbox */
@keyframes scale-up {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.ssl-box {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

    .ssl-box small {
        display: flex;
        justify-content: flex-end;
    }

/* Main container for the payment confirmation */
.confirmation-container {
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    text-align: center;
    padding: 20px;
}

/* Container for the custom payment success checkbox */
.payment-success-checkmark-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Hide the default checkbox */
.payment-success-checkbox {
    display: none;
}

    /* Show the tick when the checkbox is checked */
    .payment-success-checkbox:checked + .payment-success-checkbox-label:after {
        display: block;
    }

    /* Disabled state styling */
    .payment-success-checkbox:disabled + .payment-success-checkbox-label {
        cursor: default;
        background-color: var(--bs-gray-200);
        border-color: var(--bs-gray-200);
    }

/* Custom styling for the back button */
.back-button {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.card-deconnectBar {
    background-color: black;
}

    .card-deconnectBar img {
        background-color: black;
        width: 28px;
    }

.cardLogged-clientName {
    background-color: gray;
    color: white;
    padding: 5px 10px;
}

.list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 5px;
}

.quittance-echeance {
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 5px;
    position: relative;
}

.custom-checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bs-secondary); /* Border color (matches the red from the screenshot) */
    border-radius: 4px;
    outline: none;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .custom-checkbox-input:checked {
        background-color: var(--bs-secondary); /* Fill color when checked */
        border-color: var(--bs-secondary); /* Match border color to fill color when checked */
    }

.custom-checkbox-checkall:checked {
    background-color: var(--bs-primary); /* Fill color when checked */
    border-color: var(--bs-primary); /* Match border color to fill color when checked */
}

.precontentieux {
    color: var(--error-color) !important;
    border: 2px solid var(--error-color) !important;
}

.list-group {
    gap: 10px;
}

.quittance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .quittance-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
    }

.quittance-details {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.quittance-price {
    display: flex;
    gap: 1rem;
}

.quittance-checkbox {
    display: flex;
    align-items: center;
}

.quittance-amount {
    margin-top: 2px;
}

.quittance-info {
    display: flex;
    gap: 1.25rem;
}

.quittance-number {
    font-size: 14px;
    line-height: 14.52px;
}

.quittance-item.active {
    border: 2px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

    .quittance-item.active .quittance-number,
    .quittance-item.active .quittance-echeance,
    .quittance-item.active .quittance-amount {
        color: var(--bs-primary) !important;
    }

    .quittance-item.active .custom-checkbox-input {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
    }

.disabled-div {
    color: #AEAEAE !important;
    cursor: not-allowed;
}

.total-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bs-secondary);
    color: white;
    padding: 15px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

    .total-bar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .total-bar .quittances-count {
        font-weight: bold;
    }

.tooltip-container {
    display: inline-block; /* Ensures the div wraps tightly around the input */
    padding: 0; /* Removes any padding */
    margin: 0; /* Removes any margin */
    line-height: 0; /* Ensures the height of the line is minimized */
}

#mainBody p {
    color: var(--bs-secondary);
}

#mainBody h1 {
    color: var(--bs-secondary);
    font-weight: 800;
}

#mainBody h5 {
    color: var(--bs-primary);
    font-weight: 700;
}
