/* Mobile-First CSS Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Safari specific fixes */
html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Mobile Header - Fixed Short Height */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    height: 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    height: 50px;
}

.header-left .app-title {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.header-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: calc(env(safe-area-inset-top) + 60px) 20px 20px 20px;
}

.mobile-menu {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 200px;
    animation: slideInDown 0.3s ease-out;
}

.menu-item {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 16px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.menu-item:active {
    background: #f8fafc;
}

.menu-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    margin-top: 50px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 99;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    flex-shrink: 0;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Search and Filters */
.search-filters-container {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    position: sticky;
    top: 94px;
    z-index: 98;
}

.search-container {
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 16px;
    z-index: 1;
}

.mobile-search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Filter Chips */
.filter-chips-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-chip-search {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.filter-chip-tag {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.filter-chip-group {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #10b981;
}

.filter-chip-domain {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #8b5cf6;
}

.chip-count {
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.chip-remove {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
}

.clear-all-mobile {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-row::-webkit-scrollbar {
    display: none;
}

.filter-dropdown-mobile {
    position: relative;
    flex-shrink: 0;
}

.filter-btn-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
    justify-content: center;
}

.filter-btn-mobile.active {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.filter-btn-mobile i.rotate {
    transform: rotate(180deg);
}

.filter-dropdown-menu-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 200;
    margin-top: 4px;
    min-width: 200px;
}

.filter-search-mobile {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-search-input-mobile {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.filter-search-input-mobile:focus {
    border-color: #3b82f6;
}

.filter-options-mobile {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-option-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.filter-option-mobile:last-child {
    border-bottom: none;
}

.filter-option-mobile:active {
    background: #f1f5f9;
}

.filter-option-mobile.selected {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.filter-no-results {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-size: 13px;
}

.option-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sort-select-mobile {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    outline: none;
    min-width: 100px;
}

/* Links Container */
.links-container {
    flex: 1;
    padding: 20px;
    padding-bottom: 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.empty-state-mobile {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state-mobile h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.empty-state-mobile p {
    font-size: 16px;
    line-height: 1.5;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.links-grid.list-view {
    gap: 12px;
}

/* Link Cards */
.link-card-mobile {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.link-card-mobile:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e7ff;
}

.link-card-mobile.visited {
    opacity: 0.7;
}

.link-card-mobile.visually-greyed {
    opacity: 0.5;
    background: #f8fafc;
}

.link-header-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.link-favicon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #f1f5f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-domain {
    flex: 1;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.link-actions-mobile {
    display: flex;
    gap: 4px;
}

.action-btn-mobile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn-mobile:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.action-btn-mobile.delete {
    color: #dc2626;
}

.action-btn-mobile.delete:active {
    background: #fef2f2;
}

.link-content-mobile {
    cursor: pointer;
}

.link-title-mobile {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-description-mobile {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-meta-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-tags-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-mobile {
    display: inline-block;
    padding: 4px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.tag-mobile.visited-tag {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.link-info-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.link-visits {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Floating Action Button */
.fab-mobile {
    position: fixed;
    bottom: 24px;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab-mobile:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Modals */
.modal-overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 0;
}

.modal-mobile {
    width: 100%;
    max-height: 90vh;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUpModal 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-mobile.large-modal {
    max-height: 95vh;
}

.modal-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #f1f5f9;
    background: #f8fafc;
}

.modal-header-mobile h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.modal-close-mobile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.modal-close-mobile:active {
    background: #cbd5e1;
    transform: scale(0.95);
}

/* Form Styles */
.modal-form-mobile {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.form-group-mobile {
    margin-bottom: 20px;
}

.form-label-mobile {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-input-mobile,
.form-select-mobile {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input-mobile:focus,
.form-select-mobile:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input-mobile.valid {
    border-color: #10b981;
}

.form-input-mobile.invalid {
    border-color: #ef4444;
}

.form-textarea-mobile {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

.form-textarea-mobile:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.error-text-mobile {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* Tags Input */
.tags-input-mobile {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: white;
    transition: all 0.3s ease;
}

.tags-input-mobile:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.selected-tags-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.selected-tag-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
}

.remove-tag-mobile {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    font-size: 10px;
}

.tag-input-mobile {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 4px 0;
    background: transparent;
}

/* Form Options Styling */
.existing-options-mobile {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.options-label-mobile {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.options-chips-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-chip-mobile {
    padding: 6px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip-mobile:active {
    transform: scale(0.95);
}

.option-chip-mobile.selected {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}

/* Form Actions */
.form-actions-mobile {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    margin-top: 20px;
}

.btn-cancel-mobile {
    flex: 1;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-mobile:active {
    background: #f8fafc;
    transform: scale(0.98);
}

.btn-save-mobile {
    flex: 2;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-mobile:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-save-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Settings */
.settings-content-mobile {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(90vh - 120px);
}

.modal-mobile.large-modal .settings-content-mobile {
    max-height: calc(95vh - 120px);
}

.settings-section-mobile {
    margin-bottom: 32px;
}

.settings-section-mobile h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.settings-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-btn-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.settings-btn-mobile:active {
    background: #f8fafc;
    transform: scale(0.98);
}

/* GitHub Config */
.github-config-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.github-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.github-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

.github-btn-mobile.export {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.github-btn-mobile.import {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.github-btn-mobile.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.github-btn-mobile:active:not(.disabled) {
    transform: scale(0.98);
}

.github-help-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    font-size: 12px;
    margin-top: 12px;
}

.help-text-mobile {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.help-text-mobile a {
    color: #3b82f6;
    text-decoration: none;
}

/* Deleted Links */
.deleted-links-mobile {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 60vh;
}

.deleted-link-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 12px;
}

.deleted-link-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deleted-link-info p {
    font-size: 12px;
    color: #64748b;
}

.deleted-link-actions {
    display: flex;
    gap: 8px;
}

.restore-btn-mobile,
.delete-forever-btn-mobile {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.restore-btn-mobile {
    background: #ecfdf5;
    color: #10b981;
}

.delete-forever-btn-mobile {
    background: #fef2f2;
    color: #dc2626;
}

.restore-btn-mobile:active,
.delete-forever-btn-mobile:active {
    transform: scale(0.95);
}

.no-deleted-mobile {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-deleted-mobile i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Toast Notifications */
.toast-container-mobile {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 20px);
    left: 20px;
    right: 20px;
    z-index: 4000;
    pointer-events: none;
}

.toast {
    background: white;
    border-left: 4px solid;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.3s ease-out;
    pointer-events: auto;
}

.toast-success {
    border-left-color: #10b981;
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
}

.toast-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
}

.toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
}

/* Loading Overlay */
.loading-overlay-mobile {
    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: 5000;
}

.loading-spinner-mobile {
    text-align: center;
    color: #3b82f6;
}

.loading-spinner-mobile i {
    font-size: 32px;
    margin-bottom: 12px;
}

.loading-spinner-mobile p {
    font-size: 16px;
    font-weight: 500;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Transitions */
[x-transition] {
    transition: all 0.3s ease-in-out;
}

/* Utility Classes */
.rotate {
    transform: rotate(180deg);
}

/* iOS Safari specific fixes */
@supports (padding: max(0px)) {
    .mobile-header {
        padding-top: max(env(safe-area-inset-top), 0px);
    }
    
    .fab-mobile {
        bottom: max(env(safe-area-inset-bottom), 24px);
    }
}

/* Prevent zoom on input focus */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="url"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Handle landscape orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .modal-mobile {
        max-height: 85vh;
    }
    
    .profile-tabs {
        padding: 8px 20px;
    }
    
    .profile-tab {
        padding: 12px 16px;
    }
    
    .search-filters-container {
        padding: 12px 20px;
    }
}
