/* Mobile App View Styles */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    /* Mobile Navigation */
    .navbar {
        height: 56px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Bottom Navigation (Mobile App Style) */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #dee2e6;
    }
    
    .mobile-bottom-nav .nav-item {
        text-align: center;
        flex: 1;
    }
    
    .mobile-bottom-nav .nav-link {
        color: #6c757d;
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .mobile-bottom-nav .nav-link.active {
        color: var(--primary-color);
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 2px;
    }
    
    /* Mobile Dashboard */
    .mobile-dashboard {
        padding-bottom: 70px;
    }
    
    /* Mobile Cards */
    .mobile-card {
        border-radius: 10px;
        border: 1px solid #dee2e6;
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .mobile-card-header {
        background: #f8f9fa;
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }
    
    .mobile-card-body {
        padding: 15px;
    }
    
    /* Mobile Forms */
    .mobile-form {
        padding: 20px 15px;
    }
    
    .mobile-form .form-control {
        border-radius: 10px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .mobile-form .btn {
        border-radius: 10px;
        padding: 12px;
        font-weight: 600;
    }
    
    /* Mobile List Items */
    .mobile-list-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
        text-decoration: none;
        color: inherit;
    }
    
    .mobile-list-item:hover {
        background: #f8f9fa;
    }
    
    .mobile-list-icon {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }
    
    .mobile-list-content {
        flex: 1;
    }
    
    .mobile-list-title {
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    .mobile-list-subtitle {
        font-size: 0.9rem;
        color: #6c757d;
    }
    
    /* Mobile Notifications */
    .mobile-notification-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--warning-color);
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Sidebar */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        background: white;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .mobile-sidebar.show {
        left: 0;
    }
    
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .mobile-sidebar-overlay.show {
        display: block;
    }
    
    /* Mobile Loading */
    .mobile-loading {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    
    .mobile-loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Mobile Swipe Actions */
    .mobile-swipe-item {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-swipe-actions {
        position: absolute;
        top: 0;
        right: -200px;
        bottom: 0;
        display: flex;
        transition: right 0.3s ease;
    }
    
    .mobile-swipe-item.swiping .mobile-swipe-actions {
        right: 0;
    }
    
    .mobile-swipe-action {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        color: white;
    }
    
    .mobile-swipe-action.edit {
        background: var(--primary-color);
    }
    
    .mobile-swipe-action.delete {
        background: var(--warning-color);
    }
    
    /* Mobile Image Gallery */
    .mobile-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .mobile-gallery-item {
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 5px;
    }
    
    .mobile-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Mobile Animation Classes */
.mobile-slide-up {
    animation: slideUp 0.3s ease;
}

.mobile-slide-down {
    animation: slideDown 0.3s ease;
}

.mobile-fade-in {
    animation: fadeIn 0.3s ease;
}

.mobile-fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile Touch Feedback */
.touch-feedback:active {
    background-color: rgba(0,0,0,0.05);
    transition: background-color 0.1s ease;
}

/* Mobile Pull to Refresh */
.mobile-pull-refresh {
    position: relative;
}

.mobile-pull-refresh-indicator {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 1100;
    transition: bottom 0.3s ease;
}

.mobile-bottom-sheet.show {
    bottom: 0;
}

.mobile-bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background: #dee2e6;
    border-radius: 3px;
    margin: 0 auto 20px;
}