/* Main styling for Funeraria San Antonio */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Login page styling */
.login-page {
    background-color: #f8f9fa;
}

/* Dashboard cards */
.dashboard-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Icon circle for dashboard */
.icon-circle {
    height: 3rem;
    width: 3rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Avatar circle for user initials */
.avatar-circle {
    height: 2rem;
    width: 2rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Enhanced tables */
.table thead th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05rem;
}

/* Client list table enhancements */
.client-table tbody tr {
    transition: all 0.2s;
}

.client-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: scale(1.005);
}

/* Page title styling */
.page-title {
    font-weight: 700;
    color: #343a40;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
}

/* Action buttons */
.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 0.25rem;
    transition: all 0.2s;
}

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

/* Client cards for grid view */
.client-card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Client profile */
.client-photo {
    max-width: 150px;
    border-radius: 5px;
}

/* Responsive tables */
@media (max-width: 767.98px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Form styling */
.required-field::after {
    content: " *";
    color: red;
}

/* Coffin catalog display */
.coffin-card {
    height: 100%;
    transition: transform 0.2s;
}

.coffin-card:hover {
    transform: scale(1.02);
}

.coffin-img-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffin-img-container img {
    max-height: 100%;
    object-fit: contain;
}

/* Chart styles */
.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

/* Card border style overrides */
.card.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.card.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.card.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.card.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Text color classes */
.text-gray-800 {
    color: #5a5c69 !important;
}

/* Mobile iOS-like UI Styling */
@media (max-width: 767.98px) {
    /* Body styling */
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        background-color: #f2f2f7;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding-bottom: 85px;
        padding-top: 65px;
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* Fixed elements for mobile - improved for iPhone */
    .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        transition: transform 0.3s ease;
        will-change: transform;
        display: block;
        transform: translateX(100%);
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    /* Mobile Menu Backdrop - improved for iPhone */
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        will-change: opacity;
    }
    
    .mobile-menu-backdrop.show {
        display: block;
        opacity: 1;
    }

    /* Enhanced iOS-style navbar - fixed for mobile menu */
    .navbar {
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 1px 8px rgba(0,0,0,0.08);
        height: 60px;
        padding: 0 16px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        transition: transform 0.3s ease;
    }
    
    /* Fix for navbar on small screens */
    @media (max-width: 991.98px) {
        #navbarNav {
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            background-color: #fff;
        }
    }
    
    .navbar.navbar-hidden {
        transform: translateY(-100%);
    }

    .navbar-dark {
        background-color: rgba(58, 58, 60, 0.95) !important;
    }

    .navbar-dark .navbar-brand, 
    .navbar-dark .navbar-nav .nav-link {
        color: #007aff !important;
    }
    
    .navbar-brand {
        padding: 0;
        margin-right: 0.5rem;
    }
    
    .navbar-brand img {
        height: 28px;
    }

    .navbar-toggler {
        border: none;
        color: #007aff !important;
        padding: 0.5rem;
        outline: none !important;
        box-shadow: none !important;
        transition: transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        touch-action: manipulation;
        /* Increase touch target size for better iOS interaction */
        min-width: 44px;
        min-height: 44px;
        margin-right: -8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus, 
    .navbar-toggler:active,
    .navbar-toggler.touch-active {
        outline: none !important;
        box-shadow: none !important;
        transform: scale(0.95);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 122, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 1.2em;
        height: 1.2em;
        will-change: transform;
    }
    
    /* Mobile Sliding Menu */
    .navbar-nav {
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-grow: 1;
        margin-bottom: 0 !important;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 8px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        border-radius: 10px;
        font-weight: 500;
        font-size: 16px;
        color: #000000 !important;
        background-color: rgba(0, 0, 0, 0.03);
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 10px;
        font-size: 18px;
        color: #007aff;
        width: 24px;
        text-align: center;
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Dropdown menu styling - fixed for iPhone */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 0 34px !important;
        margin: 0 0 8px 0 !important;
        box-shadow: none !important;
        display: none; /* Hide by default, we'll control this with JS */
        transform: none !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
        vertical-align: middle;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 16px;
        color: #000000;
        border-radius: 8px;
        margin-bottom: 4px;
        font-size: 15px;
        display: block;
    }
    
    .navbar-nav .dropdown-item i {
        margin-right: 8px;
        color: #8e8e93;
    }
    
    .navbar-nav .dropdown-item:active,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(0, 122, 255, 0.1);
        color: #007aff;
    }
    
    /* User navigation at bottom of menu */
    .navbar-nav + .navbar-nav {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        flex-grow: 0;
        padding-top: 16px;
    }
    
    /* Container styling */
    .container-fluid {
        padding: 16px;
        margin-top: 0 !important;
        max-width: 100%;
        transition: transform 0.3s ease;
    }
    
    /* Card styling with refined iOS card look */
    .card {
        border-radius: 13px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.06);
        border: none;
        margin-bottom: 20px;
        overflow: hidden;
        background-color: #ffffff;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    }

    .card-header {
        background-color: #ffffff;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-weight: 600;
        font-size: 17px;
        padding: 16px;
        border-top-left-radius: 13px !important;
        border-top-right-radius: 13px !important;
    }

    .card-body {
        padding: 16px;
    }

    /* Button styling for iOS feel */
    .btn {
        border-radius: 10px;
        padding: 10px 16px;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.4;
        touch-action: manipulation;
    }
    
    .btn i {
        margin-right: 8px;
    }

    .btn:active {
        transform: scale(0.96);
        box-shadow: none !important;
    }

    .btn-primary {
        background-color: #007aff;
        border-color: #007aff;
    }

    .btn-primary:hover, .btn-primary:focus {
        background-color: #0062cc;
        border-color: #0062cc;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .btn-secondary {
        background-color: #e0e0e6;
        border-color: #e0e0e6;
        color: #000000;
    }

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: #d0d0d6;
        border-color: #d0d0d6;
    }
    
    /* Form controls with iOS style */
    .form-control {
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.1);
        padding: 12px 16px;
        font-size: 16px;
        background-color: #f5f5f5;
        appearance: none;
        -webkit-appearance: none;
        transition: all 0.2s ease;
    }

    .form-control:focus {
        border-color: #007aff;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    }
    
    .form-group label {
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
    }

    /* Table styling */
    .table {
        background-color: #ffffff;
        border-radius: 13px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 20px;
    }

    .table thead th {
        background-color: #f8f9fa;
        border-top: none;
        padding: 16px;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        color: #8e8e93;
    }

    .table td {
        padding: 16px;
        vertical-align: middle;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .table-responsive {
        border-radius: 13px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* List group for iOS-like menus */
    .list-group {
        border-radius: 13px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .list-group-item {
        padding: 16px;
        border-color: rgba(0,0,0,0.05);
        background-color: #ffffff;
        display: flex;
        align-items: center;
        transition: background-color 0.2s ease;
    }
    
    .list-group-item:active {
        background-color: rgba(0,0,0,0.05);
    }

    .list-group-item:first-child {
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
    }

    .list-group-item:last-child {
        border-bottom-left-radius: 13px;
        border-bottom-right-radius: 13px;
    }

    .list-group-item i {
        color: #8e8e93;
        margin-right: 16px;
        width: 24px;
        text-align: center;
        font-size: 18px;
    }
    
    .list-group-item-action {
        position: relative;
    }
    
    .list-group-item-action::after {
        content: "\f054"; /* FontAwesome chevron-right */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        color: #c7c7cc;
        position: absolute;
        right: 16px;
        font-size: 12px;
    }

    /* Dashboard cards and headers */
    .dashboard-card {
        border-radius: 13px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.06);
        border: none;
        margin-bottom: 20px;
        background-color: #ffffff;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        height: auto;
    }

    .dashboard-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    }
    
    /* Mobile dashboard specific styles */
    .mobile-dashboard-header {
        padding: 15px 0 5px;
    }
    
    .mobile-dashboard-header h1 {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .mobile-dashboard-header p {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .mobile-dashboard-header .welcome-avatar {
        max-width: 50px;
        margin-right: 10px !important;
    }
    
    .mobile-dashboard-header .welcome-avatar img,
    .mobile-dashboard-header .welcome-avatar .avatar-circle {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
        line-height: 45px !important;
    }
    
    .mobile-language-selector {
        position: absolute;
        top: 18px;
        right: 10px;
        z-index: 2;
    }
    
    .mobile-language-selector .btn {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .mobile-report-icons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0;
        margin: 0 -10px;
    }
    
    .mobile-report-icons::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-report-icons .report-icon {
        flex: 0 0 auto;
        margin: 0 5px;
        text-align: center;
        width: 60px;
    }
    
    .mobile-report-icons .report-icon-circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .mobile-report-icons .report-icon-circle i {
        font-size: 20px;
    }
    
    .mobile-report-icons .report-icon span {
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
        display: block;
    }
    
    /* Card content styling */
    .card-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    .card-text {
        font-size: 15px;
        color: #666;
        margin-bottom: 16px;
    }

    /* Footer styling */
    .footer {
        background-color: #f2f2f7 !important;
        border-top: none;
        padding: 16px;
        font-size: 13px;
        color: #8e8e93;
        margin-bottom: 80px;
    }

    /* Enhanced Mobile navigation menu (bottom bar) */
    .mobile-nav-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        padding: 10px 0 20px;
        box-shadow: 0 -1px 10px rgba(0,0,0,0.08);
        z-index: 1020;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-container.nav-hidden {
        transform: translateY(100%);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #8e8e93;
        text-decoration: none;
        font-size: 10px;
        padding: 8px 0;
        width: 20%;
        transition: color 0.2s ease, transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .mobile-nav-item:active {
        color: #007aff;
        transform: scale(0.95);
    }

    .mobile-nav-item.active {
        color: #007aff;
    }
    
    .mobile-nav-item.active-touch {
        color: #007aff;
        transform: scale(0.95);
    }

    .mobile-nav-item i {
        font-size: 24px;
        margin-bottom: 5px;
        position: relative;
    }
    
    .mobile-nav-item span {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Special styling for the "more" button - improved for iPhone */
    .mobile-nav-item.more-menu {
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item.more-menu i {
        background-color: #f2f2f7;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-top: -15px;
        margin-bottom: 2px;
        transition: background-color 0.2s ease, transform 0.2s ease;
        will-change: transform;
    }
    
    .mobile-nav-item.more-menu:active i,
    .mobile-nav-item.more-menu.active-touch i {
        background-color: #e5e5ea;
        transform: scale(0.95);
    }

    /* Page title styling */
    .page-title {
        font-size: 28px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 20px;
        border-left: none;
        padding-left: 0;
        line-height: 1.1;
    }
    
    /* Responsive utilities */
    .mobile-hidden {
        display: none !important;
    }
    
    /* Mobile client cards styling */
    .mobile-clients-search {
        position: sticky;
        top: 60px;
        z-index: 10;
        background-color: #f2f2f7;
        padding: 10px 0;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .mobile-clients-search .input-group {
        padding: 0 10px;
    }
    
    .mobile-clients-search .form-control {
        height: 40px;
        font-size: 15px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        padding-left: 15px;
        background-color: white;
    }
    
    .mobile-clients-search .input-group-append .btn {
        height: 40px;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        padding-right: 15px;
        background-color: white;
        border-color: rgba(0,0,0,0.1);
        color: #8e8e93;
    }
    
    .mobile-clients-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    .mobile-client-card {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative;
        height: 100%;
    }
    
    .mobile-client-card:active {
        transform: scale(0.97);
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    }
    
    .mobile-client-card .card-img-container {
        height: 100px;
        overflow: hidden;
        position: relative;
    }
    
    .mobile-client-card .card-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-client-card .avatar-circle {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        font-weight: bold;
    }
    
    .mobile-client-card .card-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .mobile-client-card .client-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-client-card .client-details {
        font-size: 12px;
        color: #8e8e93;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-client-card .client-action {
        position: absolute;
        bottom: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        color: #007aff;
        font-size: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .clients-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    /* Improved form elements */
    .custom-select {
        background-color: #f5f5f5;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.1);
        height: auto;
        padding: 12px 16px;
        font-size: 16px;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%238e8e93' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
        background-size: 10px 10px;
    }
    
    .custom-select:focus {
        border-color: #007aff;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    }
    
    /* iOS-style dividers */
    .section-divider {
        display: flex;
        align-items: center;
        margin: 20px 0;
        color: #8e8e93;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
    }
    
    .section-divider::before,
    .section-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background-color: rgba(0,0,0,0.1);
        margin: 0 10px;
    }
    
    /* iOS-style badges */
    .badge {
        padding: 5px 8px;
        font-weight: 500;
        font-size: 12px;
        border-radius: 6px;
    }
    
    /* Alerts styling */
    .alert {
        border-radius: 10px;
        border: none;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 20px;
    }
    
    /* Collapsible sections */
    .mobile-collapsible {
        margin-bottom: 12px;
    }
    
    .mobile-collapsible-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 8px;
        transition: all 0.2s ease;
    }
    
    .mobile-collapsible-header:active {
        background-color: #f9f9f9;
    }
    
    .mobile-collapsible-header h5 {
        margin-bottom: 0;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
    }
    
    .mobile-collapsible-header h5 i {
        margin-right: 10px;
        color: #007aff;
        font-size: 18px;
    }
    
    .mobile-collapsible-header .toggle-icon {
        color: #8e8e93;
        transition: transform 0.3s ease;
        font-size: 14px;
    }
    
    .mobile-collapsible-header[aria-expanded="true"] .toggle-icon {
        transform: rotate(180deg);
    }
    
    .mobile-collapsible-body {
        background-color: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Mobile Action Sheet */
    .mobile-action-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        z-index: 1050;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-action-sheet.show {
        transform: translateY(0);
    }
    
    .mobile-action-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .mobile-action-sheet-header h5 {
        margin-bottom: 0;
        font-size: 17px;
        font-weight: 600;
    }
    
    .mobile-action-sheet-body {
        padding: 16px;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-action-sheet-footer {
        padding: 16px;
        border-top: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: flex-end;
    }
    
    .mobile-action-sheet-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 1049;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-action-sheet-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Mobile Pagination */
    .mobile-pagination {
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }
    
    .mobile-pagination .page-item {
        margin: 0 3px;
    }
    
    .mobile-pagination .page-link {
        border-radius: 8px;
        padding: 8px 12px;
        border: none;
        background-color: #f2f2f7;
        color: #007aff;
        font-size: 14px;
        font-weight: 500;
    }
    
    .mobile-pagination .page-item.active .page-link {
        background-color: #007aff;
        color: #ffffff;
    }
    
    /* Mobile Tabs */
    .mobile-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 20px;
        padding-bottom: 5px;
    }
    
    .mobile-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-tab-item {
        flex: 0 0 auto;
        padding: 8px 16px;
        margin-right: 8px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        color: #8e8e93;
        background-color: rgba(0,0,0,0.05);
        transition: all 0.2s ease;
    }
    
    .mobile-tab-item.active {
        background-color: #007aff;
        color: #ffffff;
    }
    
    /* Mobile Cards */
    .mobile-card {
        background-color: #ffffff;
        border-radius: 13px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .mobile-card-header {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-card-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0;
    }
    
    .mobile-card-body {
        padding: 16px;
    }
    
    .mobile-card-footer {
        padding: 14px 16px;
        border-top: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Mobile List */
    .mobile-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .mobile-list-item {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
    }
    
    .mobile-list-item:last-child {
        border-bottom: none;
    }
    
    .mobile-list-item-icon {
        margin-right: 16px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background-color: rgba(0,0,0,0.05);
        color: #007aff;
    }
    
    .mobile-list-item-content {
        flex: 1;
    }
    
    .mobile-list-item-title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 3px;
    }
    
    .mobile-list-item-subtitle {
        font-size: 13px;
        color: #8e8e93;
    }
    
    .mobile-list-item-action {
        margin-left: 16px;
        color: #8e8e93;
    }
    
    /* Mobile Table Cards */
    .mobile-table-card {
        background-color: #ffffff;
        border-radius: 13px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .mobile-table-card-row {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .mobile-table-card-row:last-child {
        border-bottom: none;
    }
    
    .mobile-table-card-cell {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    
    .mobile-table-card-cell:last-child {
        margin-bottom: 0;
    }
    
    .mobile-table-card-label {
        font-size: 14px;
        color: #8e8e93;
    }
    
    .mobile-table-card-value {
        font-size: 14px;
        font-weight: 500;
        text-align: right;
    }
    
    /* Mobile form improvements */
    .mobile-form-group {
        margin-bottom: 20px;
    }
    
    .mobile-form-group label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
    }
    
    .mobile-form-control {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.1);
        background-color: #f5f5f5;
        appearance: none;
        -webkit-appearance: none;
    }
    
    .mobile-form-control:focus {
        outline: none;
        border-color: #007aff;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    }
    
    /* Mobile swipe actions */
    .mobile-swipe-container {
        position: relative;
        overflow: hidden;
        touch-action: pan-y;
    }
    
    .mobile-swipe-content {
        transition: transform 0.3s ease;
    }
    
    .mobile-swipe-actions {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-swipe-action {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        color: #ffffff;
        font-size: 16px;
    }
    
    .mobile-swipe-action.edit {
        background-color: #007aff;
    }
    
    .mobile-swipe-action.delete {
        background-color: #ff3b30;
    }
    
    /* Mobile floating action button */
    .mobile-fab {
        position: fixed;
        right: 20px;
        bottom: 90px;
        width: 56px;
        height: 56px;
        border-radius: 28px;
        background-color: #007aff;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
        transition: all 0.3s ease;
        z-index: 1010;
    }
    
    .mobile-fab i {
        font-size: 24px;
    }
    
    .mobile-fab:active {
        transform: scale(0.95);
        box-shadow: 0 2px 5px rgba(0, 122, 255, 0.3);
    }
    
    /* Mobile notification badge */
    .mobile-notification-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        border-radius: 10px;
        background-color: #ff3b30;
        color: #ffffff;
        font-size: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    /* Mobile search bar */
    .mobile-search {
        position: relative;
        margin-bottom: 15px;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 12px 16px 12px 40px;
        font-size: 16px;
        border-radius: 10px;
        border: none;
        background-color: rgba(142, 142, 147, 0.12);
        appearance: none;
        -webkit-appearance: none;
    }
    
    .mobile-search-input:focus {
        outline: none;
        background-color: rgba(142, 142, 147, 0.20);
    }
    
    .mobile-search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8e8e93;
        font-size: 16px;
    }
    
    .mobile-search-clear {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8e8e93;
        font-size: 16px;
        display: none;
    }
    
    .mobile-search-input:valid ~ .mobile-search-clear {
        display: block;
    }

    /* Accordion styling for mobile */
    .accordion-mobile .card {
        border: none;
        margin-bottom: 10px;
        border-radius: 13px;
    }
    
    .accordion-mobile .card-header {
        padding: 0;
        border-bottom: none;
        background-color: transparent;
    }
    
    .accordion-mobile .card-header button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px;
        text-align: left;
        color: #000;
        font-weight: 600;
        background-color: #fff;
        border: none;
        border-radius: 13px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .accordion-mobile .card-header button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    }
    
    .accordion-mobile .card-header button i.chevron {
        transition: transform 0.35s ease;
        font-size: 14px;
        color: #8e8e93;
    }
    
    .accordion-mobile .card-header button[aria-expanded="true"] i.chevron {
        transform: rotate(180deg);
    }
    
    .accordion-mobile .card-body {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .table.mobile-ready {
        display: block;
        width: 100%;
    }
    
    .table.mobile-ready thead {
        display: none;
    }
    
    .table.mobile-ready tbody, 
    .table.mobile-ready tr {
        display: block;
        width: 100%;
    }
    
    .table.mobile-ready tr {
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.08);
        overflow: hidden;
        background-color: #fff;
    }
    
    .table.mobile-ready td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-top: none !important;
        padding: 12px 16px;
        text-align: right;
    }
    
    .table.mobile-ready td:last-child {
        border-bottom: none;
    }
    
    .table.mobile-ready td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        text-align: left;
        color: #666;
        flex: 1;
    }
}