:root {
    --main-dark: #422564;
    --main-mint: #7e45fa;
    --bg-header: #f1f8f9;
    --text-muted: #64748b;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    background-color: #fbfcfc;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--main-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--main-mint);
}

.custom-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid #e2e8f0;
}

.custom-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}
.custom-header .we-text {
    color: var(--main-dark);
    font-weight: 700;
    font-size: 24px;
}
.custom-header .aligner-text {
    color: var(--main-dark);
    font-weight: 400;
    font-size: 24px;
}

.nav-link-custom {
    font-size: 15px;
    font-weight: 500;
    color: var(--main-dark);
    padding: 24px 18px !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-link-custom:hover {
    color: var(--main-mint);
}

.nav-link-custom.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-dark);
}

.user-profile-icon {
    font-size: 24px;
    color: var(--main-dark);
    transition: color 0.3s ease;
}
.user-profile-icon:hover {
    color: var(--main-mint);
}

.custom-footer {
    background-color: #fff;
    border-top: 1px solid #edf2f7;
    padding: 20px 0;
    margin-top: auto;
}

.copyright-text {
    color: #4a5568;
    font-size: 14px;
}

.footer-links {
    display: flex;
}

.footer-link {
    color: #1a202c;
    text-decoration: none;
    font-size: 14px;
    margin-left: 35px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--main-mint);
}

.btn-primary-align {
    background-color: var(--main-mint);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: 0.3s;
}
.btn-primary-align:hover {
    background-color: var(--main-dark);
    color: white;
}

@media (max-width: 991px) {
    .nav-link-custom {
        padding: 12px 0 !important;
    }
    .nav-link-custom.active::after {
        width: 30px;
    }
    .footer-link {
        margin-left: 15px;
    }
}

.custom-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid rgba(14, 100, 118, 0.1);
}
.main-logo {
    width: 180px;
    transition: width 0.3s ease;
}
.custom-burger {
    border: none !important;
    padding: 5px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent !important;
    box-shadow: none !important;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--main-dark);
    border-radius: 5px;
    transition: 0.3s;
}

.nav-link-custom {
    color: var(--main-dark);
    font-weight: 500;
    text-decoration: none;
    padding: 24px 15px !important;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}
.nav-link-custom:hover {
    color: var(--main-mint);
}
.nav-link-custom.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-dark);
}

.mobile-sidebar {
    width: 280px !important;
    border: none;
}
.mobile-nav-link {
    color: var(--main-dark);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    border-radius: 8px;
    transition: 0.3s;
}
.mobile-nav-link.active,
.mobile-nav-link:hover {
    background-color: rgba(0, 211, 148, 0.1);
    color: var(--main-mint);
}

.custom-footer {
    background-color: white;
    border-top: 1px solid #edf2f7;
    padding: 25px 0;
}
.footer-links {
    display: flex;
    gap: 30px;
}
.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.footer-link:hover {
    color: var(--main-mint);
}

@media (max-width: 991px) {
    .main-logo {
        width: 140px;
    }
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    .footer-link {
        margin: 0 !important;
    }
}
.card {
    border-radius: 12px !important;
    border: none;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-light-mint {
    background-color: rgba(0, 211, 148, 0.1);
}
.text-mint {
    color: #7e45fa;
}

.last-border-none:last-child {
    border-bottom: none !important;
}

.badge {
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-success {
    background-color: #7e45fa !important;
}
.bg-info {
    background-color: #12bad3 !important;
}

.milestones {
    position: relative;
    padding-left: 10px;
}

.milestone-item {
    position: relative;
}

.border-left-indicator::before {
    content: "";
    position: absolute;
    left: -19px;
    top: -20px;
    bottom: 25px;
    width: 2px;
    background-color: #e2e8f0;
}

.m-icon {
    z-index: 2;
    background: white;
}

.chart-container {
    position: relative;
    margin: auto;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center-text h4 {
    margin: 0;
    font-weight: 800;
    color: #422564;
}
.chart-center-text span {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}
.object-fit-cover {
    object-fit: cover;
}
.hover-mint:hover {
    background-color: #7e45fa !important;
    color: white !important;
}
.hover-mint:hover i {
    color: white !important;
}
.transition {
    transition: all 0.3s ease;
}
/* الألوان واللمسات النهائية */
.btn-mint-action {
    background-color: #7e45fa;
    color: white;
    border-radius: 10px;
    font-size: 14px;
}

.badge-default {
    background-color: rgba(0, 211, 148, 0.2);
    color: #7e45fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
}

.active-border {
    border: 2px solid #7e45fa !important;
}

.clinic-card {
    border-radius: 12px;
}

.add-placeholder-card {
    border-style: dashed !important;
    background-color: rgba(230, 237, 239, 0.5) !important;
    min-height: 250px;
    border-color: #cbd5e0 !important;
}

.icon-holder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-mint-light {
    background-color: rgba(0, 211, 148, 0.1);
}
.bg-teal-light {
    background-color: rgba(14, 100, 118, 0.1);
}
.text-primary-custom {
    color: #3182ce;
    font-weight: 500;
}

.transition:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.banner-image {
    min-height: 350px;
}
.pagination {
    margin-bottom: 0;
    gap: 5px;
}

.page-item .page-link {
    border: none;
    border-radius: 8px !important;
    color: #64748b;
    font-weight: 600;
    padding: 8px 16px;
    transition: 0.3s;
}

.page-item.active .page-link {
    background-color: #422564 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(14, 100, 118, 0.2);
}

.page-item .page-link:hover {
    background-color: #f1f8f9;
    color: #7e45fa;
}

.pagination-wrapper small {
    color: #94a3b8;
    font-size: 12px;
}
.tooth-chart g.tooth-wrapper {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tooth-chart g.tooth-wrapper:hover path {
    fill: #7e45fa !important;
    opacity: 0.6;
}

.tooth-chart g.tooth-wrapper.selected path {
    fill: #422564 !important;
}

.tooth-chart g.tooth-wrapper path {
    stroke: #d1d5db;
    fill: #f9fafb;
}

.step-item.active {
    background-color: #7e45fa !important;
    color: white !important;
}
.step-item {
    background-color: #e5e7eb;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}
.product-card {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.product-icon-bg {
    background-color: #f1f8f9;
    border-radius: 15px;
    transition: 0.3s;
}

.btn-check:checked + .product-card {
    border-color: var(--main-mint) !important;
    background-color: rgba(0, 211, 148, 0.05);
}

.btn-check:checked + .product-card .product-icon-bg {
    background-color: var(--main-mint);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-card h6 {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-check:checked + .product-card::after {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 6px;
    color: var(--main-mint);
    font-size: 20px;
}
.patient-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--main-dark);
}

.step-point {
    position: relative;
    width: 10%;
    flex: 1;
}
.step-point::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
}
.step-point.active::before {
    background-color: var(--main-mint);
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 211, 148, 0.5);
}
.step-point small {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
}
.step-point.active small {
    color: var(--main-dark);
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px;
}

.x-small {
    font-size: 10px;
}

.btn-mint-action {
    background-color: #7e45fa;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
}
.btn-mint-action:hover {
    background-color: #00b37e;
    color: white;
}

.footer-social-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(66,37,100,0.06);
    display: inline-flex; align-items: center; justify-content: center;
    color: #422564;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.footer-social-icon:hover {
    background: #422564;
    color: #fff;
    transform: translateY(-2px);
}
