/* Fallback to system fonts until AreaNormal font files are available */
/* @font-face {
    font-family: 'Area Normal';
    src: url('../fonts/AreaNormal.woff2') format('woff2'),
         url('../fonts/AreaNormal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
} */

body {
    background-color: #1a1a1a;
    padding-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0 auto;
}

.custom-card {
    height: 500px;
    width: 280px;
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    border-radius: 20px;
    background-color: white;
    padding: 30px;
}

.btn-card {
    padding: 0;
    border: none;
    background: none;
    width: 100%;
}

.btn-card:hover .custom-card {
    background-color: #024959;
    transform: scale(1.05);
}

.btn-card:hover .custom-card h2 {
    color: white;
}

.icon {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    object-fit: contain;
}

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.login-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: none;
    border: none;
    color: white;
}

#sidebar {
    width: 75px;
    height: 100%;
    background-color: #f8f9fa;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    font-weight: bold;
    color: #0FC2C0;
}

.nav-link:hover .nav-icon {
    color: #0FC2C0;
}

.nav-icon {
    width: 40px;
    height: 40px;
    font-size: 35px;
    object-fit: contain;
    color: #333;
    transition: all 0.3s ease;
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0;
    margin-left: 1.5%;
}

.h4 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #024959;
}

.logo {
    width: 40px;
    height: 40px;
    margin-bottom: 30px;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item {
    margin: 0;
}

.nav-link::after,
.nav-link::before {
    content: none;
}

.container-fluid {
    margin-left: 125px;
}

/* Base sidebar button styles */
.sidebar-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    margin: 0.5rem auto;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.sidebar-button i {
    color: #333;
    font-size: 32px;
    transition: all 0.3s ease;
}

.sidebar-button:hover i {
    color: #0FC2C0;
    transform: scale(1.1);
}

/* Profile circle specific styles */
.profile-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: #0FC2C0 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin: 0.5rem auto !important;
}

.profile-circle:hover {
    background-color: #0DA8A6 !important;
    transform: scale(1.05);
}

/* Make sure these styles don't get overridden */
.sidebar-buttons .profile-circle {
    margin: 0.5rem auto !important;
    padding: 0 !important;
}

.custom-card h2 {
    text-decoration: none !important;
    text-decoration-color: white;
    color: #024959;
}
h2 {
    text-decoration: none !important; /* Remove underline from all h2 elements */
}

.custom-card a {
    text-decoration: none; /* Remove underline from links */
    text-decoration-color: white;
    color: inherit; /* Inherit color from parent */
}

.filter-gray {
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(153deg) brightness(94%) contrast(95%);
}

.treatment-pricing-link {
    position: relative;
}

.treatment-pricing-link .hover-img {
    display: none;
}

.treatment-pricing-link:hover .default-img {
    display: none;
}

.treatment-pricing-link:hover .hover-img {
    display: block;
}

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    border: none;
    background-color: #0FC2C0;
    color: white;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #0DA8A6;
    transform: scale(1.05);
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: #0FC2C0;
    transform: scale(1.1);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Tablet and below (< 992px) */
@media (max-width: 991.98px) {
    .container-fluid {
        margin-left: 0;
        padding: 15px;
    }

    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    .custom-card {
        width: 240px;
        height: 420px;
        padding: 25px;
    }

    .icon {
        width: 120px;
        height: 120px;
    }
}

/* Mobile devices (< 768px) */
@media (max-width: 767.98px) {
    body {
        padding-top: 0;
    }

    .container-fluid {
        margin-left: 0 !important;
        padding: 10px;
        padding-left: 75px !important; /* Space for mobile menu toggle button */
    }

    /* Hide desktop sidebar by default on mobile */
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        width: 250px;
        border-radius: 0;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    /* Adjust card container for mobile */
    .card-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .custom-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 380px;
        margin: 10px auto !important;
    }

    .icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    /* Increase touch target sizes */
    .nav-icon {
        width: 48px;
        height: 48px;
        font-size: 40px;
    }

    .nav-link {
        height: 70px;
    }

    .sidebar-button,
    .profile-circle {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
    }

    .sidebar-button i {
        font-size: 36px;
    }

    /* Adjust buttons for mobile */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Make tables scrollable */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust version display for mobile */
    div[style*="position: fixed"][style*="bottom: 5px"] {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    /* Adjust container positioning */
    .container {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-left: 0;
        padding: 20px 10px;
    }

    /* Card grid responsive */
    .row.card-container {
        margin: 0;
    }

    .row.card-container > div {
        margin: 10px 0 !important;
        padding: 0 10px;
    }
}

/* Small mobile devices (< 576px) */
@media (max-width: 575.98px) {
    .custom-card {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }

    .icon {
        width: 80px;
        height: 80px;
    }

    h1.display-5 {
        font-size: 1.8rem;
    }

    h2.h4 {
        font-size: 1.2rem;
    }

    .btn-create {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .custom-card {
        height: auto;
        min-height: 300px;
    }

    .icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    #sidebar {
        overflow-y: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link,
    .btn,
    .dropdown-item {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .nav-link:hover,
    .custom-card:hover {
        transform: none;
    }

    /* But keep active/tap feedback */
    .nav-link:active,
    .custom-card:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}
