﻿/* SolMed Mobile Styles - Enhanced version */

/* ===== HEADER & NAVIGATION ===== */
#kt_app_header {
    border-bottom: 1px solid #eee;
}

    #kt_app_header .app-container {
        height: 60px;
    }

#kt_app_header_wrapper {
    height: 100%;
}

.menu-lg-row {
    height: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    #kt_app_header .app-container {
        padding: 0 15px;
        justify-content: space-between;
    }

    .app-navbar .symbol img {
        width: 30px;
        height: 30px;
    }
}

/* Bottom navigation improvements */
.bottom-nav {
    background-color: #fff;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 1001;
}

.bottom-nav-item {
    position: relative;
    padding: 4px 0;
    opacity: 0.65;
    transition: all 0.2s;
}

    .bottom-nav-item.active {
        color: #009ef7;
        opacity: 1;
    }

        .bottom-nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            border-radius: 3px;
            background-color: #009ef7;
        }

.bottom-nav-icon {
    margin-bottom: 4px;
    transition: transform 0.15s;
}

.bottom-nav-item:active .bottom-nav-icon {
    transform: scale(0.9);
}

/* ===== GENERAL LAYOUT ===== */
@media (max-width: A991.98px) {
    .card {
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
    }

    /* Add extra space to main content for bottom navigation */
    #kt_app_main {
        padding-bottom: 70px;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Add some breathing room on very small screens */
@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    }

    .btn-sm {
        padding: 0.40rem 0.75rem;
    }
}

/* ===== CARDS & PATIENT ITEMS ===== */
.patient-card {
    border-left: 4px solid #009ef7;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

    .patient-card:active {
        transform: scale(0.98);
        box-shadow: 0 0 0 1px rgba(0, 158, 247, 0.3);
    }

/* Helper classes */
.w-49 {
    width: 49%;
}

/* ===== FORMS & INPUTS ===== */
@@media (max-width: 767.98px) {
    .input-group {
        position: relative;
    }

        .input-group .form-control {
            height: 42px;
            padding-left: 40px;
        }

    .input-group-text {
        position: absolute;
        background: transparent;
        border: none;
        z-index: 10;
        padding-left: 15px;
        height: 42px;
    }

    /* Fix for radio buttons and checkboxes */
    .form-check .input-group-text {
        position: relative;
        padding-left: 0;
    }
}

/* ===== TABLES & DATA DISPLAY ===== */
@media (max-width: 991.98px) {
    .table > :not(caption) > * > * {
        padding: 0.75rem 0.5rem;
    }

    /* Make sure table actions don't break */
    .table .btn-sm {
        padding: 0.40rem 0.5rem;
        font-size: 0.775rem;
    }
}

/* ===== ANIMATIONS & VISUAL FEEDBACK ===== */
/* Subtle pulse effect for button clicks */
@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 158, 247, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 158, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 158, 247, 0);
    }
}

.btn-primary:active {
    animation: btn-pulse 0.5s;
}

/* ===== UTILITY HELPERS ===== */
@media (max-width: 767.98px) {
    .mb-sm-0 {
        margin-bottom: 0 !important;
    }

    .mb-sm-2 {
        margin-bottom: 0.5rem !important;
    }

    .pt-sm-0 {
        padding-top: 0 !important;
    }

    .text-truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
