/* Ticket Listing Mobile Responsive Styles */

@media (max-width: 767.98px) {
    /* Mobile Ticket Card Styles */
    .mobile-ticket-card {
        border-left: 4px solid #6c757d;
        transition: transform 0.2s ease;
    }
    
    .mobile-ticket-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
    }
    
    /* Status color indicators */
    .mobile-ticket-card.status-open {
        border-left-color: #28a745;
    }
    
    .mobile-ticket-card.status-closed {
        border-left-color: #6c757d;
    }
    
    /* Priority indicators */
    .mobile-ticket-card.priority-low {
        border-right: 4px solid #17a2b8;
    }
    
    .mobile-ticket-card.priority-medium {
        border-right: 4px solid #ffc107;
    }
    
    .mobile-ticket-card.priority-high {
        border-right: 4px solid #dc3545;
    }
    
    /* Filter section improvements */
    .filter-toggle-btn {
        width: 100%;
        text-align: left;
        position: relative;
        padding: 0.75rem 1rem;
        font-weight: 500;
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .filter-toggle-btn::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 1rem;
        transition: transform 0.2s ease;
    }
    
    .filter-toggle-btn[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Search improvements */
    .mobile-search-container {
        position: relative;
        margin-bottom: 1rem;
    }
    
    .mobile-search-input {
        padding-right: 3rem;
        height: 46px;
        border-radius: 23px;
        padding-left: 1rem;
    }
    
    .mobile-search-btn {
        position: absolute;
        right: 0.25rem;
        top: 0.25rem;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Pagination improvements */
    .pagination-mobile {
        justify-content: space-between;
    }
    
    .pagination-mobile .page-link {
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile action buttons */
    .mobile-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 0.75rem 1rem;
        box-shadow: 0 -0.125rem 0.25rem rgba(0,0,0,.075);
        z-index: 1000;
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-action-btn {
        flex: 1;
        margin: 0 0.25rem;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Add spacing at bottom to account for fixed action bar */
    body.has-mobile-action-bar {
        padding-bottom: 5rem;
    }
    
    /* Mobile ticket detail improvements */
    .mobile-ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-ticket-header .btn-group {
        margin-top: 0.75rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .mobile-ticket-header .btn {
        flex: 1;
        margin: 0 0.25rem;
    }
    
    /* Mobile comment improvements */
    .mobile-comment-card {
        margin-left: 2.5rem;
        padding: 0.75rem;
    }
    
    .mobile-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-comment-header .comment-meta {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    /* Mobile attachment improvements */
    .mobile-attachment-list {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-attachment-item {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    /* Mobile form improvements */
    .mobile-form-group {
        margin-bottom: 1.25rem;
    }
    
    .mobile-form-label {
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
    
    .mobile-form-control {
        height: 46px;
    }
    
    .mobile-form-textarea {
        min-height: 100px;
    }
    
    .mobile-form-actions {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-form-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile tag improvements */
    .mobile-tag-list {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
    }
    
    .mobile-tag {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.375rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.875rem;
    }
}