
:root{
    --sidebar:#111827;
    --sidebar-hover:#1f2937;
    --border:#e5e7eb;
    --bg:#f8fafc;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --primary:#2563eb;
}

body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

.sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    background:var(--sidebar);
    display:flex;
    flex-direction:column;
    z-index:1000;
}

.logo{
    height:70px;
    display:flex;
    align-items:center;
    padding:0 24px;
    color:white;
    font-weight:700;
    font-size:1.1rem;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-nav{
    padding:16px;
    flex:1;
}

.sidebar-nav .nav-link{
    color:#cbd5e1;
    border-radius:10px;
    padding:.75rem 1rem;
    margin-bottom:4px;
    display:flex;
    align-items:center;
    gap:12px;
    transition:.2s;
}

.sidebar-nav .nav-link:hover{
    background:var(--sidebar-hover);
    color:white;
}

.sidebar-nav .nav-link.active{
    background:#2563eb;
    color:white;
}

.main{
    margin-left:260px;
}

.topbar{
    height:70px;
    background:white;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 24px;
}

.search-box{
    width:350px;
}

.page{
    padding:24px;
}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.page-header h3{
    margin:0;
    font-weight:700;
}

.page-header p{
    margin:0;
    color:var(--muted);
}

.card-modern{
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
}

.stat-card{
    padding:20px;
}

.stat-card .label{
    color:var(--muted);
    font-size:.85rem;
}

.stat-card .value{
    font-size:1.8rem;
    font-weight:700;
}

.table-modern{
    margin:0;
}

.table-modern th{
    background:#f8fafc;
    font-weight:600;
    border-bottom:1px solid var(--border);
}

.table-modern td{
    vertical-align:middle;
}

.avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#dbeafe;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    color:#2563eb;
}

.filter-row{
    padding:20px;
}

.badge-stock{
    background:#dcfce7;
    color:#166534;
}

.badge-low{
    background:#fef3c7;
    color:#92400e;
}

.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);
}
@import url("bootstrap-extended.css");
@import url("colors.css");
@import url("components.css");



.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;
    }
}