:root{
    --accent-color:#4f46e5;
}
.app-main form{
    border: 2px solid var(--accent-color);
    border-radius: .2rem;
    padding:1.2rem;
    background-color: var(--surface-color);
}
.app-main form h3{
    background: #ddd4;
    padding: .2rem;
    border-radius: .8rem;
}
.app-main{
    /* background: var(--bs-gray);
    color: var(--bs-border-color); */
}
.shadow-on-hover {
    /* Optional: Add a smooth transition for a better visual effect */
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-on-hover:hover {
    /* Apply a larger shadow when hovering */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    /* You can also use a built-in Bootstrap shadow variable if desired (e.g., var(--bs-box-shadow-lg)) */
}
.app-sidebar{
    font-weight: bold;
}
.app-sidebar *,.app-header *,.app-footer *{
    color: var(--bs-white) !important;
}

.app-sidebar .nav-link:not(.nav-logout){
    background: #2b2b2b88 !important;
    color: #fff !important;
}
.app-sidebar .nav-link:not(.nav-logout):hover{
    background: #2b2b2bcc !important;
}
.app-sidebar .nav-link:not(.nav-logout).active{
    background: #fff !important;
}
.card-header,.card-footer{
    position: relative;
    overflow: hidden;
    background: #3335;
}
.modal-header,.table-gray .thead,.app-header,.app-footer{
    color:var(--accent-color);
}
.modal-header,.table-gray .thead tr{
    /* background: #2b2b2b66; */
}
.card-header::before,.card-footer::before{
    content: '';
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top: 0;
    background: url('/assets/images/orange.jpg') !important;
    background: url('/assets/images/concrete.avif') !important;
    background: url('/assets/images/blueyellowlight.jpg') !important;
    background: url('/assets/images/blueyellow.jpg') !important;
    background: url('/assets/images/blue.jpg') !important;
    overflow: hidden;
    color: #fff;
}
.table-gray .thead tr th,.table-gray .thead tr td{
    color: #fff;
}
.table-gray .thead tr th{
    background: unset;
}
.nav-item.menu-open{
    background: #2F80ED99 !important;
}
.nav-item.menu-open .nav-link.active{
    background: #2F80ED99 !important;
}

.bg-primary{
    background-color: var(--accent-color) !important;
}
.pick-image
{
    position: absolute;
    margin: -140px 0px 0px 100px;
    font-size: 20px;
}

.bg-form {
    background: rgba(255, 255, 255, 0.14902) !important;
}

.text-ellipsis
{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.panel {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 5px;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.bg-template-1 {
    /* background-image: linear-gradient(to right, #BC2534 0%, #ED5565 100%);
    background-repeat: repeat-x; */
}

.item-menu {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.item-menu .caption {
    padding: 9px;
    color: #333;
}

.item-menu a img {
    float: right;
    height: 80px;
    width: 80px;
    border-radius: 40px;
    margin-top: -53px;
    margin-bottom: 15px;
    margin-right: 5px;
    box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.08), 0 18px 10px -5px rgba(0, 0, 0, 0.6);
}

.item-menu > img, .item-menu a > img {
    margin-right: auto;
    margin-left: auto;
}

/* =========================
   RESPONSIVE SIDEBAR
========================= */

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #111827;
}

/* MOBILE */
@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        transition: .3s ease;
        position: fixed;
        z-index: 2000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0 !important;
    }

    .topbar {
        padding-left: 16px;
    }

    .search-box {
        width: 100%;
    }

}

/* optional overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1500;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}
@media (max-width: 992px) {
    body{
        font-size:.6rem;
    }
    .btn-modern {
        border-radius: 14px;
        padding: .4rem .8rem;
        font-weight: 600;
        font-size:.9rem;
    }
    .modern-table thead th {
        border: none !important;
        background: transparent !important;
        color: #6b7280;
        font-size: .58rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        font-weight: 700;
        padding-bottom: 1rem;
    }
    .modern-input{
        padding: .45rem;
    }
    .form-select,.modern-input{
        font-size:.75rem;
    }
    .sidebar {
        width: 220px;
    }

    .main {
        margin-left: 220px;
    }
}


.btn-primary {
  background-color: var(--accent-color) !important;
  color: #fff !important;
}

.modern-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.modern-card .card-body {
    padding: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg,#4f46e5,#3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: .6rem;
    color: #111827;
}

.modern-input {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: .85rem 1rem;
    background: #f9fafb;
    transition: .2s ease;
    min-height: 52px;
}

.modern-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 22px;
    padding: 2rem;
    background: #fafafa;
    cursor: pointer;
    transition: .25s;
    text-align: center;
}

.upload-box:hover {
    border-color: #3b82f6;
    background: #f8fbff;
}

.upload-preview {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.preview-item {
    border: 2px dashed #d1d5db;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    transition: .2s;
    height: 320px;
}

.preview-item:hover {
    border-color: #3b82f6;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-card {
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 1rem;
    height: 100%;
}

.color-input {
    width: 60px;
    height: 60px;
    border: none;
    background: transparent;
    padding: 0;
}

trix-editor {
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    min-height: 180px;
    background: white;
    padding: 1rem;
}

.btn-modern {
    border-radius: 14px;
    padding: .8rem 1.5rem;
    font-weight: 600;
}

.divider {
    border-top: 1px solid rgba(0,0,0,.06);
    margin: 2rem 0;
}

.app-content {
    background: #f4f7fb;
    min-height: 100vh;
}

/* CARD */

.modern-card {
    background: white;
    border-radius: 28px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    overflow: hidden;
}

.modern-card .card-body {
    padding: 2rem;
}

/* BADGE */

.modern-badge {
    background: rgba(59,130,246,.12);
    color: #2563eb;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

/* FILTER */

.filter-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg,#3b82f6,#6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* INPUTS */

.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: .6rem;
    color: #111827;
}

.modern-input {
    border-radius: 16px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    min-height: 54px;
    padding: .85rem 1rem;
    transition: .2s ease;
}

.modern-input:focus {
    background: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12) !important;
}

/* BUTTONS */

.btn-modern {
    border-radius: 14px;
    padding: .8rem 1.4rem;
    font-weight: 600;
}

/* TABLE */

.modern-table {
    border-collapse: separate;
    border-spacing: 0 14px;
}

.modern-table thead th {
    border: none !important;
    background: transparent !important;
    color: #6b7280;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    padding-bottom: 1rem;
}

.modern-table tbody tr {
    background: white;
    transition: .2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.modern-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.modern-table td {
    border: none !important;
    vertical-align: middle;
    padding: 1rem;
}

.modern-table td:first-child {
    border-radius: 18px 0 0 18px;
}

.modern-table td:last-child {
    border-radius: 0 18px 18px 0;
}

/* THUMB */

.service-thumb {
    width: 120px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    margin: auto;
    background: #f3f4f6;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BADGES */

.service-badge {
    background: rgba(59,130,246,.12);
    color: #2563eb;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

/* DESCRIPTION */

.description-preview {
    max-width: 340px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    color: #4b5563;
}

/* PRICE */

.price-tag {
    font-weight: 700;
    color: #111827;
}

/* ACTION BUTTON */

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #f3f4f6;
}

.action-btn:hover {
    background: #e5e7eb;
}

/* DROPDOWN */

.modern-dropdown {
    border: none;
    border-radius: 18px;
    padding: .6rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.modern-dropdown .dropdown-item {
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.modern-dropdown .dropdown-item:hover {
    background: #f9fafb;
}

/* PAGINATION */

.modern-pagination .page-link {
    border: none;
    border-radius: 12px;
    margin: 0 4px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.modern-pagination .page-item.active .page-link {
    background: #2563eb;
    color: white;
}

.modern-pagination .page-link:hover {
    background: #eff6ff;
}

/* SELECT */

.modern-select {
    border-radius: 14px;
    min-height: 46px;
    border: 1px solid #e5e7eb;
}

/* MODAL */

.modern-modal {
    border: none;
    border-radius: 30px;
    overflow: hidden;
}

.modern-modal .modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.5rem 2rem;
}

.modern-modal .modal-body {
    padding: 2rem;
}

.modern-modal .modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1.5rem 2rem;
}

/* UPLOAD */

.upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 24px;
    background: #fafafa;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: .25s;
}

.upload-box:hover {
    border-color: #3b82f6;
    background: #f8fbff;
}

.preview-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

/* TRIX */

trix-editor {
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    min-height: 180px;
    background: white;
    padding: 1rem;
}
/* MESSAGE PAGE */

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg,#3b82f6,#6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.message-date {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #f9fafb;
    color: #4b5563;
    font-size: .85rem;
    font-weight: 500;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #f9fafb;
    color: #374151;
    font-size: .85rem;
    font-weight: 500;
}

.subject-badge {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: rgba(59,130,246,.12);
    color: #2563eb;
    font-size: .82rem;
    font-weight: 700;
}

.message-preview {
    max-width: 450px;
    color: #4b5563;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}
/* TEMOIGNAGES */

.modern-upload-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.modern-image-upload {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #eef2ff;
}

.modern-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.45);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    opacity: 0;
    transition: .3s ease;
    font-weight: 600;
}

.upload-overlay i {
    font-size: 2rem;
}

.modern-image-upload:hover .upload-overlay {
    opacity: 1;
}

.modern-editor {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: white;
}

.modern-editor trix-editor {
    min-height: 340px;
    border: none !important;
    padding: 1.2rem;
}

.stars-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stars-preview,
.stars-display {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.stars-preview i,
.stars-display i {
    font-size: 1.1rem;
    color: #d1d5db;
}

.active-star {
    color: #fbbf24 !important;
}

.table-image-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    margin: auto;
    border: 3px solid #f3f4f6;
}

.table-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s ease;
}

.table-image-preview:hover .table-image-overlay {
    opacity: 1;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: rgba(99,102,241,.12);
    color: #4f46e5;
    font-size: .82rem;
    font-weight: 700;
}

.modern-description {
    max-height: 140px;
    overflow-y: auto;
    line-height: 1.7;
    color: #4b5563;
    padding-right: .5rem;
}

.modern-description::-webkit-scrollbar {
    width: 5px;
}

.modern-description::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f8fafc;
}

.modern-dropdown {
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15,23,42,.12);
    padding: .6rem;
}

.modern-dropdown .dropdown-item {
    border-radius: 12px;
    padding: .8rem 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 500;
}

.modern-dropdown .dropdown-item:hover {
    background: #f8fafc;
}

.modern-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15,23,42,.18);
}
/* FACTS / CHIFFRES */

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 1.5rem;
}

.fact-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid #eef2f7;
    transition: .25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.fact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.fact-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.fact-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin: auto;
    margin-bottom: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg,#3b82f6,#6366f1);

    color: white;
    font-size: 2rem;

    box-shadow: 0 12px 25px rgba(59,130,246,.25);
}

.fact-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: .8rem;
}

.fact-title {
    color: #6b7280;
    font-weight: 600;
    line-height: 1.6;
}

.fact-icon-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.selected-fact-icon {
    width: 90px;
    height: 90px;
    flex-shrink: 0;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg,#3b82f6,#6366f1);

    color: white;
    font-size: 2rem;

    box-shadow: 0 12px 25px rgba(59,130,246,.25);
}

.modern-card > .card-body.table-responsive{
    min-height:50vh;
}

.modern-card:has(.dropdown-toggle.show) tbody tr:not(:has(.dropdown-toggle.show))
{
    position: relative;
    z-index:1 !important;
    filter:blur(3px) sepia(75%);
}
.modern-card tbody tr:has(.dropdown-toggle.show)
{
    position: relative;
    z-index:9999999 !important;
}
.app-content .modern-card .table-responsive{
    min-height: 50vh;
}

.app-wrapper,.app-content {
    background-color: #0d1117;
    color:#fff;
    background-image: url('/bg-immo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}