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

:root {
    --background: #020202;
    --card-background: #111111;
    --primary-text: #E0E0E0;
    --secondary-text: #A0A0A0;
    --border-color: #2A2A2A; /* <hr> ou bordure */
    --border-color-60: rgba(42, 42, 42, 0.6);
    --placeholder: #777777;
    --placeholder-60: rgba(119, 119, 119, 0.60);


    --danger: #EF4444;
    --danger-60: rgba(239, 68, 68, 0.6);
    --success: #268A4C;
    --success-60: rgba(38, 138, 76, 0.6);
    --warning: #c59100;
    --warning-60: rgba(197, 145, 0, 0.6);
    --info: #19708d;
    --info-60: rgba(25, 112, 141, 0.6);
    --secondary: #1B1B1B;
    --secondary-60: rgba(27, 27, 27, 0.6);

    --primary: #4F46E5;
    --active: #633ED6;
    --active-disabled: rgba(99, 62, 214, 0.20);
    --active-85: rgba(99, 62, 214, 0.85);
    --active-60: rgba(99, 62, 214, 0.6);
}

html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}


body {
    background: var(--background);
    color: var(--primary-text);
    font-family: "Exo", serif;
    user-select: none;
}

a {
    text-decoration: none !important;
}

.oryence {
    color: var(--primary-text);
}

.app-container {
    display: flex;
    height: 100vh; /* toute la hauteur de la fenêtre */
    overflow: hidden; /* empêche le scroll sur le body */
}

.sidenav {
    top: 0;
    left: 0;
    width: 300px;
    height: 100% !important;
    font-size: 12px;
}

.sidenav .logo {
    width: 64px;
    height: 64px;
}

.sidenav .logo img {
    width: 100%;
    height: 100%;
}

.sidenav .accordion-item {
    background-color: transparent;
    font-size: 17.5px;
    border: none;
    width: 100%;
}

.sidenav .accordion-item .grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 15px;
}

.sidenav .accordion-item .grid .icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: var(--primary-text)
}

.sidenav .accordion-item .nav-link {
    margin-left: 15px;
    padding: 10px 0;
    color: var(--primary-text)
}

.sidenav .accordion-item .accordion-button {
    margin-left: 15px;
    padding: 10px 0;
    color: var(--primary-text);
    box-shadow: none;
}

.sidenav .accordion-item .accordion-header.active {
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(99, 62, 214, 0.5);
}

.sidenav .accordion-item .accordion-header-btn.active {
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--active);
    box-shadow: 0 0 10px rgba(99, 62, 214, 0.5);
}

.accordion-header.active .grid .accordion-button,
.accordion-header.active .grid .nav-link,
.accordion-header.active .grid .icon i {
    color: var(--active) !important;
}

.accordion-button.collapsed {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed) {
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23633ED6FF' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}



.sidenav .flex-column .nav-link {
    color: var(--secondary-text);

}

.sidenav .flex-column .nav-link.active {
    color: var(--active);
}

.sidenav .accordion-body ul.nav {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--placeholder);
    border-radius: 0 3px 3px 0;
}

.sidenav .accordion-body ul.nav li a {
    padding: 6px 0;
    display: block;
    color: var(--placeholder);
    font-size: 0.95rem;
}

.sidenav .accordion-body .nav-link:not(.active):hover {
    color: var(--primary-text);
}

.main-content {
    margin-top: 40px;
    width: calc(100% - 400px);
    overflow-y: auto;
    padding: 20px;
    height: 100vh;
    flex: 1; /* prend tout l'espace restant */
}

hr {
    border: none;
    border-top: 3px solid var(--placeholder);
    margin: 20px 0;
}

.main-content .content {
    padding: 20px;
}

.card {
    background: var(--card-background) !important;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(99, 62, 214, 0.5);
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;

}

.btn-primary {
    background-color: var(--primary);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--active);
}

.btn-secondary {
    background-color: var(--secondary);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-60);
}

.top-btn-grid {
    display: flex;
    flex-direction: row;
    padding-right: 5px;
}

.top-btn-grid a, button {
    margin-left: 5px;
}

.card select {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: #fff;
}

.card select:focus {
    background-color: transparent !important;
    color: #fff;
}

.card select option {
    background-color: var(--card-background) !important;
    color: #fff;
}

.primarytext {
    color: var(--primary-text) !important;
}

.subtext {
    color: var(--secondary-text) !important;
}

.dropdown-menu {
    background-color: var(--card-background) !important;
    color: var(--primary-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem;
}

.dropdown-item {
    color: var(--primary-text) !important;
}

.dropdown-item:hover {
    background-color: var(--active-60) !important;
    color: #fff !important;
}

/***  TABLEAU  ***/
.table thead th {
    color: var(--secondary-text);
    background:transparent;
    border-bottom: 1px solid var(--placeholder);
}

.table tbody tr td {
    background-color: transparent;
    border-bottom: none;
    color: var(--secondary-text);
}

.table tbody tr:hover {
    background-color: var(--active-60);
}

.table tbody tr td input {
    border: none !important;
    font-weight: 800;
}


/***  BOOTSTRAP  ***/
.bg-danger {
    background-color: var(--danger-60) !important;
}
.bg-success {
    background-color: var(--success-60) !important;
}
.bg-warning {
    background-color: var(--warning-60) !important;
}
.bg-info {
    background-color: var(--info-60) !important;
}
.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-danger {
    color: var(--danger) !important;
}
.text-success {
    color: var(--success) !important;
}
.text-success-60 {
    color: var(--success-60) !important;
}
.text-warning {
    color: var(--warning) !important;
}
.text-info {
    color: var(--info) !important;
}
.text-secondary {
    color: var(--secondary-text) !important;
}

.modal .modal-body, .modal-header {
    background-color: var(--card-background) !important;
    color: var(--primary-text) !important;
    border: 1px solid var(--card-background) !important;
}

/***  PAGINATION  ***/
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.page-link {
    color: #fff;
    background-color: var(--active-60);
    border: none;
}

.page-link:hover {
    color: #fff;
    background-color: var(--active-85);
    border: none;
}

.page-link:focus {
    color: #fff;
    background-color: var(--active-60);
    border: none;
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--active-85);
    border: none;
}

.page-item.disabled .page-link {
    color: #fff;
    background-color: var(--active-disabled);
    border: none;
}

.page-item:not(:first-child) .page-link {
    margin-left: 0;
}


/* DEVIS ... */
.memo {
    width: 50%;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.pieces_infos {
    color: var(--secondary-text);
}


/* INPUTS & TEXTAREA */
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
    background-color: transparent !important;
    color: var(--primary-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem;
    padding: 10px;
    width: 100%;
    resize: vertical;
}

textarea::placeholder, input[type="text"]::placeholder, input[type="email"]::placeholder, input[type="password"]::placeholder, input[type="number"]::placeholder {
    color: var(--placeholder) !important;
}


/* TOM SELECT */

.ts-control input {
    display: block;
}

.ts-control:has(.item) input {
    display: block !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ts-control {
    background-color: transparent !important;
    border: none !important;
    color: var(--primary-text) !important;
    margin: 0;
    padding: 0;
    font-weight: 800;
}

.ts-control .item {
    background-color: transparent !important;
    color: var(--primary-text) !important;
    font-weight: 800;
}

.ts-control:hover {
    color: #fff !important;
}

.ts-control:focus,
.ts-control.focus {
    background-color: transparent !important;
}

.ts-control input {
    background-color: transparent !important;
    border: none !important;
    color: var(--secondary-text) !important;
    margin: 0;
    padding: 0;
    font-weight: 800;
}

.ts-dropdown {
    border: none !important;
    box-shadow: none !important; /* pour supprimer l'ombre aussi */
}

.ts-dropdown-content {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    scroll-behavior: smooth !important;
    overflow: hidden !important;
}

.ts-dropdown-content::-webkit-scrollbar {
    display: none !important;
}

.form-control {
    background-color: transparent !important;
    border: none !important;
}

.ts-dropdown .option {
    background-color: var(--border-color) !important;
    color: var(--primary-text) !important;
    border: none !important;
}

.ts-control.disabled,
.ts-control[disabled] {
    background-color: transparent !important;
    color: transparent !important;
}


/* TRACKING DES COLIS */
.modal-body {
    text-transform: initial !important;
}

.tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 60px 0;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 auto;
    line-height: 60px;
    font-size: 20px;
    color: #999;
    border: 2px solid #e0e0e0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

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

.circle.completed {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.circle.active {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

.step::before {
    content: '';
    position: absolute;
    top: 27px;
    left: -50%;
    width: 100%;
    height: 6px;
    z-index: 0;
}

.step:first-child::before {
    content: none;
}

.step .bi {
    vertical-align: middle;
}

.step p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #555;
}


.notif {
    padding: 10px;
    font-size: 14px;
}

.dropdown-menu-header {
    width: 400px;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu-footer {
    width: 400px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.dropdown-menu-notification {
    display:flex;
    flex-direction: row;
    margin: 10px;
}

.dropdown-menu-notification:hover {
    background-color: var(--border-color-60);
    color: #fff;
}

.dropdown-menu-notification-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown-menu-notification-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-left: 30px;
}

.dropdown-menu-notification-dismiss {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--danger);
    margin-right: 5px;
}

/* scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--active-60);
}
::-webkit-scrollbar-thumb:active {
    background-color: var(--active-85);
}


textarea.form-control {
    border: 1px solid var(--border-color) !important;
}

#sidebarToggle {
    display: none !important;
}

.text-active {
    color: var(--active) !important;
}

.text-primary {
    color: var(--primary-text) !important;
}
.fa-2x {
    font-size: 2em;
}
