/* Modern Mobile-specific styles for FindMyMap application */

/* Mobile sidebar and overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* Improved search container for mobile */
@media (max-width: 767.98px) {
    .search-container {
        position: fixed;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 120px);
        z-index: 1002;
        background-color: var(--background-card);
    }
    
    .search-box {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .search-autocomplete {
        max-height: 50vh;
        overflow-y: auto;
        background-color: var(--background-card);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

.mobile-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 10px 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.mobile-toggle:hover {
    background-color: var(--primary-light);
}

.mobile-toggle i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Mobile sidebar behavior */
@media (max-width: 767.98px) {
    #controls-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1010;
        background: var(--background-card);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    #controls-sidebar.active {
        transform: translateX(0);
    }
    
    .search-container {
        top: 70px;
    }
}

/* Bottom Sheet Component */
.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px var(--shadow-color);
    z-index: 1500;
    transition: transform 0.3s ease, height 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
}

.mobile-bottom-sheet.collapsed {
    transform: translateY(100%);
}

.mobile-bottom-sheet.peek {
    transform: translateY(0);
}

.mobile-bottom-sheet.expanded {
    transform: translateY(0);
    height: 80vh !important;
}

.bottom-sheet-handle {
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.handle-indicator {
    width: 40px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 4px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px;
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Business controls container for mobile */
.business-controls-container {
    padding: 0 0 16px 0;
}

.business-controls-container h5 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.business-controls-container h5 i {
    margin-right: 8px;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-indicator i {
    margin-right: 8px;
    color: var(--primary-color);
}

.mobile-bottom-sheet.visible {
    transform: translateY(0);
}

.mobile-bottom-sheet.visible {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 8px;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 1200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 12px;
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-speed) ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Mobile-specific cards and lists */
.mobile-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mobile-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-card);
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item:active {
    background-color: var(--background-light);
}

.mobile-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.mobile-list-content {
    flex: 1;
}

.mobile-list-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mobile-list-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.mobile-list-action {
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-action:hover {
    background-color: var(--primary-light);
}

/* Mobile-specific form elements */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--background-card);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.mobile-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

/* Mobile-specific animations */
@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up-in {
    animation: slideUpIn 0.3s ease forwards;
}

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

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

@media (max-width: 767.98px) {
    html, body {
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        overscroll-behavior-y: contain;
    }
    .map-button, .form-control, .form-select, .add-participant-btn {
        min-height: 48px;
        font-size: 1rem;
        border-radius: 12px;
        padding: 12px 18px;
    }
    .map-button {
        width: 100%;
        margin-bottom: 8px;
    }
    .search-input, .participant-input {
        font-size: 1rem;
        padding: 12px 10px;
    }
    .bottom-sheet-header h5 {
        font-size: 18px;
    }
    .bottom-sheet-close {
        font-size: 20px;
        padding: 8px 12px;
    }
    .mobile-bottom-sheet {
        border-radius: 20px 20px 0 0;
    }
    .business-controls-container {
        padding: 0 8px 16px 8px;
    }
    .form-label, .form-check-label {
        font-size: 1rem;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .participant-location {
        margin-bottom: 10px;
    }
    .add-participant-btn {
        width: 100%;
    }
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 8px;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 1200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 12px;
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-speed) ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Mobile-specific cards and lists */
.mobile-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mobile-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-card);
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item:active {
    background-color: var(--background-light);
}

.mobile-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.mobile-list-content {
    flex: 1;
}

.mobile-list-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mobile-list-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.mobile-list-action {
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-action:hover {
    background-color: var(--primary-light);
}

/* Mobile-specific form elements */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--background-card);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.mobile-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

/* Mobile-specific animations */
@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up-in {
    animation: slideUpIn 0.3s ease forwards;
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 8px;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 1200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 12px;
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-speed) ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Mobile-specific cards and lists */
.mobile-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mobile-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-card);
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item:active {
    background-color: var(--background-light);
}

.mobile-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.mobile-list-content {
    flex: 1;
}

.mobile-list-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mobile-list-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.mobile-list-action {
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.mobile-list-action:hover {
    background-color: var(--primary-light);
}

/* Mobile-specific form elements */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--background-card);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.mobile-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

/* Mobile-specific animations */
@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up-in {
    animation: slideUpIn 0.3s ease forwards;
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s ease;
}

.pull-to-refresh-indicator i {
    color: var(--primary-color);
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
}
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

.bottom-sheet-content {
    padding: 0 20px 20px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bottom-sheet-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.bottom-sheet-close:hover {
    background-color: var(--background-light);
}

.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding-bottom: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: var(--text-tertiary);
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

.mobile-bottom-sheet.dragging {
    transition: none;
}

/* Quick Action Buttons */
.quick-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1400;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn i {
    font-size: 22px;
}

.quick-action-btn span {
    position: absolute;
    background-color: var(--background-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    right: 64px;
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.quick-action-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.quick-action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

.autocomplete-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.autocomplete-secondary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;