.color-red {
    color: red;
}

.color-blue {
    color: blue;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

body {
    background-color: var(--app-background-color, #f8f9fa) !important;
}

.page-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.page-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.bg-body-tertiary {
    --bs-tertiary-bg-rgb: 248, 249, 250;
    background-color: var(--app-background-color, #f8f9fa) !important;
}

.app-logo {
    height: 70px;
    width: 100%;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.page-shell main {
    margin-top: 40px !important;
}

.app-navbar .navbar-nav {
    gap: 0.35rem;
}

.app-navbar .nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    background: color-mix(in srgb, var(--app-primary-color, #4f46e5) 15%, transparent);
    color: #1f2937;
}

.app-navbar .nav-link.active {
    background: linear-gradient(135deg, var(--app-primary-color, #4f46e5), #22c55e);
    color: #fff;
    box-shadow: 0 6px 12px color-mix(in srgb, var(--app-primary-color, #4f46e5) 30%, transparent);
}

.app-navbar .user-menu-toggle::after {
    display: none;
}

.app-navbar .user-menu-toggle:hover,
.app-navbar .user-menu-toggle:focus {
    background-color: transparent;
    box-shadow: none;
}

.app-navbar .user-menu-button {
    background-color: var(--app-primary-color, #4f46e5);
    border-color: color-mix(in srgb, var(--app-primary-color, #4f46e5) 70%, #000);
    color: #fff;
}

.app-navbar .user-menu-button .fa-chevron-down {
    color: #fff;
    opacity: 0.85;
}

.app-navbar .user-avatar {
    width: 36px;
    height: 36px;
    background-color: color-mix(in srgb, var(--app-primary-color, #4f46e5) 80%, #000);
}

.btn-primary {
    --bs-btn-bg: var(--app-primary-color, #4f46e5);
    --bs-btn-border-color: var(--app-primary-color, #4f46e5);
    --bs-btn-hover-bg: color-mix(in srgb, var(--app-primary-color, #4f46e5) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--app-primary-color, #4f46e5) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--app-primary-color, #4f46e5) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--app-primary-color, #4f46e5) 75%, #000);
    --bs-btn-focus-shadow-rgb: 79, 70, 229;
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card-title {
    font-weight: 600;
    color: #0f172a;
}

.table thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #64748b;
    background-color: #f1f5f9;
}

.tooth-map-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    display: flex;
    justify-content: center;
}

.tooth-map-image {
    max-width: min(100%, 960px);
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    padding-top: 1rem;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #212529;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

.sidebar-heading {
    font-size: 0.75rem;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

.page-shell {
    padding-bottom: 1.5rem;
}

#activities-table .notes-col {
    width: 35%;
    min-width: 240px;
}

#activities-table textarea {
    min-height: 150px;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: calc(1.5em + .75rem + 2px) !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    display: block !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    right: 0.75rem !important;
    height: 100% !important;
    width: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.select2-dropdown {
    border-color: #ced4da !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0.5rem;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
}

.dropdown-toggle::after {
     right: 10px !important;
}

.logo-text {
    color: #0355CE!important;
}

.password-label {
    position: relative;
    cursor: pointer;
}

.tooltip {
    visibility: hidden;
    width: 200px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.password-label:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip li {
    margin-bottom: 5px;
}
