/* Plaka Yorum - Untitled UI Inspired Design System */

:root {
    /* Untitled UI Color Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --info-50: #eff6ff;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1d4ed8;

    /* Bootstrap Override Colors */
    --primary-color: var(--primary-600);
    --secondary-color: var(--gray-600);
    --success-color: var(--success-600);
    --danger-color: var(--danger-600);
    --warning-color: var(--warning-600);
    --info-color: var(--info-600);
    --light-color: var(--gray-50);
    --dark-color: var(--gray-900);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography */
body {
    font-family: var(--font-family-base);
    color: var(--gray-900);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    line-height: 1.2;
}

/* Modern Button Styles */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 1px solid var(--primary-600);
    color: var(--primary-600);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-600);
    color: white;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-md) var(--spacing-lg);
}

/* Card header with colored background - text should be white */
.card-header.text-white h1,
.card-header.text-white h2,
.card-header.text-white h3,
.card-header.text-white h4,
.card-header.text-white h5,
.card-header.text-white h6,
.card-header.bg-primary.text-white h1,
.card-header.bg-primary.text-white h2,
.card-header.bg-primary.text-white h3,
.card-header.bg-primary.text-white h4,
.card-header.bg-primary.text-white h5,
.card-header.bg-primary.text-white h6 {
    color: white !important;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info {
    color: white;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-success h1,
.card-header.bg-success h2,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6,
.card-header.bg-danger h1,
.card-header.bg-danger h2,
.card-header.bg-danger h3,
.card-header.bg-danger h4,
.card-header.bg-danger h5,
.card-header.bg-danger h6,
.card-header.bg-warning h1,
.card-header.bg-warning h2,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6,
.card-header.bg-info h1,
.card-header.bg-info h2,
.card-header.bg-info h3,
.card-header.bg-info h4,
.card-header.bg-info h5,
.card-header.bg-info h6 {
    color: white !important;
}

/* Override for all headings in colored card headers */
.card-header[class*="bg-"] h1,
.card-header[class*="bg-"] h2,
.card-header[class*="bg-"] h3,
.card-header[class*="bg-"] h4,
.card-header[class*="bg-"] h5,
.card-header[class*="bg-"] h6 {
    color: white !important;
}

.card-header.text-white * {
    color: white !important;
}

/* Input Styles */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* Badge Styles */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
    background-color: white !important;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-dark {
    background-color: var(--primary-600) !important;
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

/* Alert Styles */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
}

/* Stat Cards */
.stat-card {
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    opacity: 0.8;
}

/* Hero Section - Simple (Untitled UI Style) */
.hero-section-simple {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.max-w-600 {
    max-width: 600px;
}

/* Türk Plakası Görünümü */
.plate-display {
    display: inline-block;
    padding: 0;
    margin: 0 auto;
}

.turkish-plate {
    display: flex;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    height: 120px;
}

.plate-eu-strip {
    background: #003399;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.plate-eu-strip::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #000000;
}

.eu-code {
    color: #ffffff;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
}

.turkish-plate .plate-number {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0 20px;
    font-family: 'Arial Black', 'Arial Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: #000000;
    text-align: center;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .turkish-plate {
        min-width: 280px;
        height: 100px;
    }

    .plate-eu-strip {
        width: 45px;
    }

    .eu-code {
        font-size: 0.8rem;
    }

    .turkish-plate .plate-number {
        font-size: 1.8rem;
        letter-spacing: 3px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .turkish-plate {
        min-width: 240px;
        height: 85px;
    }

    .plate-eu-strip {
        width: 40px;
    }

    .eu-code {
        font-size: 0.7rem;
    }

    .turkish-plate .plate-number {
        font-size: 1.4rem;
        letter-spacing: 2px;
        padding: 0 12px;
    }
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* Plaka Display */
.display-4 {
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Comments */
.comment-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent !important;
}

.comment-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-left-color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Vote Buttons */
.vote-btn {
    transition: all 0.2s;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-btn[data-voted="true"] {
    background-color: var(--primary-color);
    color: white;
}

/* Statistics - Eski tanım kaldırıldı, yukarıdaki stat-card kullanılıyor */

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Plate Number Formatting */
.plate-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Owner Badge */
.owner-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.owner-badge * {
    color: white !important;
}

/* Table Responsive */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

/* Modal */
.modal-content {
    border-radius: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Badge Styles */
.badge-item {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.badge-item.badge-locked {
    cursor: not-allowed;
}

.badge-item.badge-locked:hover {
    background-color: transparent;
    transform: none;
}

/* Modern Input Group (Untitled UI Style) */
.input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
}

.input-group .input-group-text {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-right: none;
    color: var(--gray-600);
}

.input-group .btn {
    border-left: none;
}

/* List Group (Untitled UI Style) */
.list-group {
    padding: var(--spacing-sm);
}

.list-group-item {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--spacing-sm);
    transition: all 0.2s ease;
}

.list-group-item:first-child {
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    margin-bottom: 0;
}

.list-group-item:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300) !important;
}

.list-group-item-action:hover {
    background-color: var(--gray-50);
}

/* List group flush override - add padding */
.list-group-flush {
    padding: var(--spacing-sm);
}

.list-group-flush .list-group-item {
    border-left: 1px solid var(--gray-200) !important;
    border-right: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--spacing-sm);
}

.list-group-flush .list-group-item:first-child {
    border-top: 1px solid var(--gray-200) !important;
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: 1px solid var(--gray-200) !important;
    border-bottom-left-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    margin-bottom: 0;
}

/* Modal (Untitled UI Style) */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

/* Pagination (Untitled UI Style) */
.pagination .page-link {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    margin: 0 var(--spacing-xs);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* Dropdown (Untitled UI Style) */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
}

/* Table (Untitled UI Style) */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    padding: var(--spacing-md);
}

.table tbody td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Progress Bar (Untitled UI Style) */
.progress {
    height: 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--gray-200);
}

.progress-bar {
    border-radius: var(--radius-sm);
}

/* Utilities */
.text-muted {
    color: var(--gray-600) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border {
    border-color: var(--gray-200) !important;
}

/* ============================================
   MOBILE APP-LIKE STYLES (PWA)
   ============================================ */

/* Safe Area Insets (iPhone notch support) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Mobile-First Improvements */
@media (max-width: 768px) {

    /* App-like full screen */
    html,
    body {
        height: 100%;
        height: -webkit-fill-available;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    .btn-sm {
        min-height: 36px;
        min-width: 36px;
        padding: 0.5rem 1rem;
    }

    /* Touch-friendly inputs */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
    }

    /* Larger tap targets */
    a,
    button,
    [role="button"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Navbar improvements */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95) !important;
        border-bottom: 1px solid var(--gray-200);
    }

    .navbar-dark {
        background-color: rgba(2, 132, 199, 0.95) !important;
    }

    .navbar-brand {
        font-size: 1.125rem;
    }

    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Card improvements */
    .card {
        border-radius: var(--radius-lg);
        margin-bottom: var(--spacing-md);
    }

    .card-body {
        padding: var(--spacing-lg);
    }

    /* Bottom Navigation (Mobile App Style) */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        padding: var(--spacing-sm) 0;
        padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1020;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-xs);
        color: var(--gray-600);
        text-decoration: none;
        font-size: 0.75rem;
        min-height: 60px;
        transition: all 0.2s ease;
    }

    .bottom-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

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

    .bottom-nav-item:active {
        background-color: var(--gray-100);
        border-radius: var(--radius-md);
    }

    /* Add padding to body when bottom nav is present */
    body.has-bottom-nav {
        padding-bottom: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Hero section mobile */
    .hero-section-simple {
        margin: var(--spacing-md);
        padding: var(--spacing-xl);
    }

    /* Stat cards mobile */
    .stat-card {
        margin-bottom: var(--spacing-md);
    }

    /* Comment cards mobile */
    .comment-card {
        margin-bottom: var(--spacing-md);
    }

    /* Modal mobile */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-header {
        position: sticky;
        top: 0;
        z-index: 1;
        background: white;
    }

    /* Input groups mobile */
    .input-group-lg .form-control {
        font-size: 16px;
        /* Prevents zoom */
    }

    /* Better spacing */
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    /* Hide scrollbar but keep functionality */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    /* Pull to refresh indicator */
    .pull-to-refresh {
        position: fixed;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-600);
        color: white;
        padding: var(--spacing-sm) var(--spacing-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        z-index: 1040;
        transition: top 0.3s ease;
    }

    .pull-to-refresh.show {
        top: 0;
    }

    /* Swipe gestures hint */
    .swipe-hint {
        position: fixed;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-lg);
        font-size: 0.875rem;
        z-index: 1030;
        animation: fadeInOut 3s ease;
    }

    @keyframes fadeInOut {

        0%,
        100% {
            opacity: 0;
        }

        20%,
        80% {
            opacity: 1;
        }
    }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Prevent text selection on buttons (app-like) */
.btn,
.badge,
.navbar-brand {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Loading skeleton (app-like) */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* App-like transitions */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Disable pull-to-refresh on body (can be enabled per page) */
body {
    overscroll-behavior-y: contain;
}

/* App-like page transitions */
.page-transition {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}