/* Mobile-Specific Styles */

/* Mobile viewport adjustments */
@media (max-width: 991px) {
    /* Mobile dashboard cards */
    .mobile-dashboard-card {
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }
    
    .mobile-dashboard-card:active {
        transform: scale(0.98);
    }
    
    .mobile-dashboard-card .card-body {
        padding: 15px;
    }
    
    /* Quick action buttons for mobile */
    .mobile-quick-actions {
        position: fixed;
        bottom: 16px;
        right: 16px;
        z-index: 1000;
    }
    
    .mobile-action-button {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background-color: var(--bs-primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-action-button:hover, 
    .mobile-action-button:focus {
        transform: scale(1.05);
        background-color: var(--bs-primary-dark, #0056b3);
    }
    
    .mobile-action-menu {
        position: absolute;
        bottom: 65px;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .mobile-action-menu.show {
        display: flex;
    }
    
    .mobile-action-item {
        display: flex;
        align-items: center;
        background-color: var(--bs-dark);
        padding: 8px 16px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease;
    }
    
    .mobile-action-item span {
        margin-right: 10px;
        white-space: nowrap;
    }
    
    .mobile-action-item i {
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bs-primary);
        border-radius: 50%;
    }
    
    /* Bottom mobile navigation */
    .mobile-bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--bs-dark);
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-items {
        display: flex;
        height: 100%;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        padding: 5px 0;
        transition: color 0.2s ease;
    }
    
    .mobile-nav-item.active {
        color: var(--bs-primary);
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 0.7rem;
        line-height: 1;
    }
    
    /* Show mobile bottom nav on smaller screens */
    @media (max-width: 767px) {
        .mobile-bottom-nav {
            display: block;
        }
        
        /* Add padding to main content to prevent overlap with bottom nav */
        .main-content {
            padding-bottom: 70px;
        }
    }
    
    /* Mobile-optimized forms */
    .mobile-form-card {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .mobile-form-card .card-header {
        border-radius: 10px 10px 0 0;
        padding: 12px 15px;
    }
    
    .mobile-form-card .card-body {
        padding: 15px;
    }
    
    .mobile-form-card .form-group {
        margin-bottom: 15px;
    }
    
    .mobile-form-card label {
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    /* Mobile-friendly tables */
    .mobile-table-card {
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
    }
    
    .mobile-table-card .card-header {
        padding: 12px 15px;
    }
    
    .mobile-table-view {
        margin: 0;
    }
    
    .mobile-table-row {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-table-row:last-child {
        border-bottom: none;
    }
    
    .mobile-table-cell {
        padding: 3px 0;
    }
    
    .mobile-table-label {
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.8rem;
    }
    
    .mobile-table-value {
        font-size: 0.95rem;
    }
    
    .mobile-table-actions {
        display: flex;
        gap: 10px;
        margin-top: 8px;
        justify-content: flex-end;
    }
}

/* Extra small device specific styles */
@media (max-width: 575px) {
    /* More compact UI elements */
    .card {
        margin-bottom: 12px;
    }
    
    .card-header {
        padding: 10px 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    /* Smaller headings */
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.2rem;
    }
    
    /* One column forms on very small screens */
    .row.mobile-stack {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row.mobile-stack > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}