* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body:not(.no-sidebar) {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #2d3748;
    border-right: 1px solid #1a202c;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 4px rgba(0,0,0,0.2);
}

.sidebar-header {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #1a202c;
    background-color: #1a202c;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.logo-icon {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-slogan {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e0;
    text-align: center;
    letter-spacing: 0.5px;
}

.logo-text-large {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

/* Sidebar çıkış butonu için özel stil */
.sidebar > div:last-child {
    border-top: 1px solid #4a5568;
}

.sidebar > div:last-child .nav-item {
    color: #ff6b6b;
}

.sidebar > div:last-child .nav-item:hover {
    background-color: #4a5568;
    color: #ff8787;
}

/* Sidebar badge stili */
.sidebar .badge {
    background-color: var(--danger-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin: 0 0.4rem 0.2rem 0.4rem;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.nav-item:hover {
    background-color: #4a5568;
    color: #ffffff;
}

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

.nav-item.active:hover {
    background-color: #0056b3;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 999;
    display: flex;
    align-items: center;
}

.top-header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.page-title-section {
    flex: 1;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.datetime-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.datetime-display i {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
}

.user-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-badge.admin {
    background: #ffd700;
    color: #333;
}

/* Main Content Wrapper */
.main-content-wrapper {
    margin-left: 200px;
    margin-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    width: calc(100% - 200px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sayfa içindeki h1'leri gizle, üst header'da gösteriyoruz */
.container .page-header h1 {
    display: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Buton icon stilleri */
.btn-icon {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.btn-icon.btn-success {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.btn-icon.btn-success:hover {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.btn-icon.btn-danger {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.btn-icon.btn-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.btn-view { color: var(--info-color); }
.btn-edit { color: var(--primary-color); }
.btn-print { color: var(--secondary-color); }
.btn-download { color: var(--info-color); }
.btn-share { color: var(--primary-color); }
.btn-send { color: #25D366; }
.btn-delete { color: var(--danger-color); }

.btn-icon:hover {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-actions {
    color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.dropdown-item-danger {
    color: var(--danger-color);
}

.dropdown-item-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.dropdown-item-danger i {
    color: var(--danger-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Share Menu */
.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-menu.show {
    opacity: 1;
}

.share-menu-content {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-menu.show .share-menu-content {
    transform: scale(1);
}

.share-menu-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #333;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.share-option:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.share-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.share-option:has(.fa-whatsapp) i {
    color: #25D366;
}

.share-option:has(.fa-envelope) i {
    color: #0078D4;
}

.share-close {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.share-close:hover {
    background: #5a6268;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-small {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
}

.btn-small i {
    font-size: 0.75rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-page {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-page:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-page.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.pagination-per-page select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination-per-page select:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination-info,
    .pagination-per-page {
        text-align: center;
        justify-content: center;
    }
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-filter:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-filter i {
    font-size: 0.75rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--light-color);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger-color);
}

/* Form Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Tabs for Mobile */
.tabs-container {
    position: relative;
    margin-bottom: 2rem;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
    z-index: 1;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

/* Signature Canvas */
.signature-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.signature-canvas {
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px;
    background: #fafafa;
    touch-action: none;
}

.signature-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Signature display for view mode */
.signature-display {
    margin: 1rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.signature-display img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
}

.signature-date {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Signature display görünürlük */
.signature-display {
    display: none;
}

.signature-display.show {
    display: block !important;
}

/* Full Screen Signature */
.fullscreen-signature {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.fullscreen-signature canvas {
    flex: 1;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fafafa;
}

.fullscreen-signature .actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
}

/* Material Table */
.material-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.material-table th,
.material-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.material-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.material-table input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.btn-add-row {
    margin-top: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .top-header {
        left: 0;
    }
    
    .top-header-content {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .top-header-right {
        gap: 1rem;
    }
    
    .datetime-display {
        font-size: 0.8rem;
    }
    
    .user-info {
        padding: 0.4rem 0.75rem;
    }
    
    .user-name {
        display: none;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        margin-top: 60px;
        width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
    }
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Scroll Snap for Tabs */
.tabs-scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: calc(100vh - 200px);
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal */
}

.tab-section {
    scroll-snap-align: start;
    min-height: 100%;
    padding: 2rem 0;
    scroll-snap-stop: always; /* Her tab'da dur */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

/* Mobil için swipe göstergesi */
@media (max-width: 768px) {
    .tabs-scroll-container {
        height: calc(100vh - 100px);
        position: relative;
        overflow-x: hidden; /* Yatay kaydırmayı engelle */
    }
    
    .tab-section {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out;
        will-change: transform, opacity;
    }
    
    .swipe-indicator {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.95), rgba(0, 86, 179, 0.95));
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        font-size: 0.8rem;
        z-index: 1000;
        animation: fadeInOut 5s ease-in-out;
        pointer-events: none;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .swipe-indicator i {
        animation: pulse 1.5s ease-in-out infinite;
    }
    
    .swipe-hint {
        position: fixed;
        top: 50%;
        transform: translateY(-50%) scale(0.8);
        width: 60px;
        height: 60px;
        background: rgba(0, 123, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        z-index: 999;
        opacity: 0;
        transition: opacity 0.2s, transform 0.2s;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
    }
    
    .swipe-hint i {
        animation: bounce 0.6s ease-in-out infinite;
    }
    
    @keyframes fadeInOut {
        0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.9); }
        20% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
        80% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
        100% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.9); }
    }
    
    @keyframes fadeOut {
        to { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.9); }
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.2); }
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

