:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --secondary-color: #FF5E62;
    --text-color: #444;
    --bg-color: #f8f9fa;
    /* --sidebar-width: 280px; */ /* Kaldırıldı */
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --round-button-radius: 50%;
    --circle-dimension: 50px;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc; /* Body arkaplanı ile uyumlu */
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s; /* Gizlenme gecikmesi ekledik */
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important;
}

/* ANA İÇERİK GİZLEME/GÖSTERME STILLERİ */
#main-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0.5s !important; /* Yükleme ekranı kaybolduktan sonra görünmesi için gecikme */
}


body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    /* body inline style="overflow: hidden;" ile başlıyor, JS ile kaldırılıyor */
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

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

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
}

/* Header styling */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0 120px;
    margin-bottom: -70px;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.5%) 0 0/60px 60px;
    transform: rotate(30deg);
    animation: headerPatternMove 120s linear infinite;
}

@keyframes headerPatternMove {
    0% {
        transform: rotate(30deg) translateY(0);
    }
    100% {
        transform: rotate(30deg) translateY(500px);
    }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 25px;
    animation: fadeInUp 0.7s ease-out;
    font-weight: 400;
    line-height: 1.7;
}

/* Content styling */
#content {
    width: 100%;
    min-height: 100vh;
    transition: var(--transition);
    margin-left: 0; /* Sidebar kaldırıldığı için sol kenar boşluğunu sıfırla */
    background-color: #f7f9fc;
}

/* #content.active kaldırıldı */

.navbar {
    padding: 15px 20px;
    background: #fff !important;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Sidebar collapse buttonları kaldırıldı */

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.2px;
    text-align: left;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Auth buttons - daha yuvarlak */
.auth-buttons .btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Feature cards için genel card stili */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light); /* Genel kartlar için hafif gölge */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    background: white;
    will-change: transform;
    position: relative;
    margin-bottom: 25px; /* Genel kartlar için marj */
}

.card:hover {
    box-shadow: var(--box-shadow-hover); /* Hover durumunda daha belirgin gölge */
    transform: translateY(-5px); /* Hafif yukarı kayma */
}

/* Card üzerindeki iconlar */
.feature-icon { /* Bu sınıfın kullanıldığı yerlerdeki ikonlar için stil */
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--primary-light);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--round-button-radius);
    margin: 0 auto 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.1);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--round-button-radius);
    background: var(--primary-light);
    z-index: -1;
    opacity: 0.5;
    transform: scale(0);
    transition: transform 0.5s ease;
}

/* Kartın hover durumunda icon değişiklikleri */
.card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(71, 118, 230, 0.3);
}

.card:hover .feature-icon::after {
    transform: scale(1.4);
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card:hover .card-title { /* Kartın hover durumunda başlık rengi */
    color: #333;
}

.card-text {
    color: #777;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.card:hover .card-text { /* Kartın hover durumunda metin rengi */
    color: #555;
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Button styles - tam yuvarlak butonlar için */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: none;
    position: relative;
    overflow: hidden;
}

/* Özellikle yuvarlak butonlar için */
.btn-circle {
    width: var(--circle-dimension);
    height: var(--circle-dimension);
    border-radius: var(--round-button-radius);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8E54E9, #4776E6);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.3);
    border-color: #8E54E9;
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #8E54E9;
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.2);
    transform: translateY(-2px);
}

.btn-outline-primary:hover::before {
    opacity: 1;
}

/* Yuvarlak check işaretleri */
.bg-primary.rounded-circle {
    border-radius: var(--round-button-radius) !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 10px rgba(71, 118, 230, 0.2);
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s both;
}

/* Footer styling */
.footer {
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.7;
}

.footer h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Sosyal medya ikonları - tam yuvarlak */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--round-button-radius);
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.3);
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modal-header {
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.5%) 0 0/40px 40px;
    transform: rotate(30deg);
    z-index: 0;
}

.modal-title {
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 25px;
}

/* Tam yuvarlak list-item ikonları */
.list-group-item i.bi-check-circle-fill {
    background-color: rgba(40, 167, 69, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--round-button-radius);
}

.list-unstyled i.bi-arrow-right-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--round-button-radius);
    background-color: rgba(71, 118, 230, 0.1);
}

/* Media queries */
@media (max-width: 992px) {
    /* Sidebar kaldırıldığı için bu bölüm sadeleştirildi */
    #content {
        margin-left: 0;
        width: 100%;
        transition: all 0.3s;
    }
    
    .page-header {
        padding: 50px 0 90px;
    }
}

@media (max-width: 768px) {
    /* .feature-cards .card kaldırıldı, .card genel stili geçerli */
    .card {
        margin-bottom: 20px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1.1rem;
    }
    .header-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    /* Mobil görünümde daha küçük yuvarlak ikonlar */
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    /* Improved mobile styling */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .auth-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer ul li a:hover {
        transform: translateX(0);
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    /* Center the navbar elements on mobile */
    .navbar .container-fluid {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px;
        align-items: center;
    }
    
    .navbar-brand {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        font-size: 1.25rem;
        flex-grow: 1;
        text-align: center;
        white-space: nowrap;
        max-width: none;
    }
    
    .auth-buttons {
        display: flex !important;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0;
        flex-direction: row !important;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 15px;
        z-index: 99;
    }
    
    .auth-buttons .btn {
        flex: 1;
        font-size: 0.9rem;
        padding: 10px 15px;
        margin: 0;
    }
    
    /* Add padding to the bottom of the page to account for fixed auth buttons */
    body {
        padding-bottom: 70px;
    }
    
    /* Extra small devices styling */
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .header-buttons .btn {
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    
    .header-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .row > [class*="col"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Adjust modal padding */
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    /* Very small device optimizations */
    .page-header {
        padding: 40px 0 70px;
        margin-bottom: -50px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* .feature-cards .card kaldırıldı */
    .card {
        padding: 15px 10px;
    }
    
    .feature-icon {
        margin-bottom: 10px;
    }
    
    /* Full-width buttons for better touch targets */
    .btn {
        min-height: 44px; /* Better touch target */
    }
    
    /* Adjust circular elements */
    .btn-circle {
        width: 40px;
        height: 40px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    /* Reduce text size */
    body {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-weight: 700;
        transform: scale(1);
        transform-origin: right center;
    }
    
    /* Fix container fluid for navbar */
    .navbar .container-fluid {
        padding: 8px 15px;
    }
}

/* Fix for devices that have notches */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Fix for better touch targets */
@media (max-width: 768px) {
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* #sidebar ul li a kaldırıldı */
    
    /* Fix for overflow issues */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve readability on small screens */
    p, li {
        line-height: 1.5;
    }
}

/* Extra animations and effects */
.subscription-info {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: var(--border-radius);
}

.subscription-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-light {
    background-color: #f8f9fc !important;
}

/* Adding animation to CTA section */
.card.bg-primary {
    overflow: hidden;
    position: relative;
}

.card.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Better focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.25);
}

/* Gradient animations */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Sticky mobile header */
@media (max-width: 992px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    body {
        padding-top: 0;
    }
}

/* Fix content visibility on mobile */
@media (max-width: 576px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* Fix for touch events on mobile */
@media (max-width: 768px) {
    .touch-fix {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve scroll performance */
    .smooth-scroll {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Eliminate 300ms tap delay */
    a, button, input, select, textarea {
        touch-action: manipulation;
    }
}

/* Advanced mobile optimizations */
@media (max-width: 768px) {
    /* Optimize animations for better mobile performance */
    .card, .feature-icon, .btn, .social-icons a {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    /* Content prioritization for mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
    
    /* More space between touchable elements */
    .card-body {
        padding: 15px;
    }
    
    .footer ul li {
        margin-bottom: 12px;
    }
    
    /* Reduce animation complexity on mobile */
    @supports (content-visibility: auto) {
        /* .card:not(.feature-cards .card) kaldırıldı */
        .card { /* Tüm kartlara uygulanır */
            content-visibility: auto;
            contain-intrinsic-size: 0 200px;
        }
    }
    
    /* Hardware acceleration for smoother mobile experience */
    .card, .navbar {
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Improved tap highlight color for better UX feedback */
    a:active, button:active {
        background-color: rgba(71, 118, 230, 0.1);
    }
    
    /* Better spacing for touch targets */
    .list-group-item, .nav-link, .footer a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}

/* Orientation-specific styling */
@media (max-width: 767.98px) and (orientation: landscape) {
    .page-header {
        padding: 30px 0 40px;
        margin-bottom: -30px;
    }
    
    /* Two-column layout for certain components in landscape */
    /* .feature-cards .row kaldırıldı, genel .row geçerli */
    .row > .col-md-4 { /* Özellik kartlarının bulunduğu bölümlere özel olarak */
        width: 50%;
    }
}

/* Better mobile loading experience */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
}

.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile-specific content adjustments */
@media (max-width: 576px) {
    /* Simplify feature cards on mobile */
    /* .feature-cards .card kaldırıldı, genel .card geçerli */
    .card { /* Tüm kartlara uygulanır */
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }
    
    .card .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
    
    .card .card-body {
        padding: 0;
        text-align: left;
    }
    
    /* Fix header button layout on mobile */
    .header-buttons {
        width: 100%;
    }
    
    /* Mobile-friendly CTA */
    .card.bg-primary .card-body {
        padding: 20px 15px;
    }
    
    .card.bg-primary .btn {
        min-width: 130px;
    }
    
    .card.bg-primary .d-flex {
        flex-direction: column;
    }
    
    .card.bg-primary .btn:first-child {
        margin-bottom: 10px;
    }
}

/* Loading optimization for mobile */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Add a "pull to refresh" visual indicator */
.pull-to-refresh {
    text-align: center;
    height: 0;
    overflow: hidden;
    color: var(--primary-color);
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
}

.pull-to-refresh.active {
    height: 50px;
}

.pull-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* High contrast mode support for accessibility */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #0056b3;
        --text-color: #000;
        --bg-color: #fff;
    }
    
    .card, .btn, .navbar {
        border: 1px solid #000 !important;
    }
    
    .text-muted {
        color: #505050 !important;
    }
}

/* Add to Home Screen banner */
.add-to-home-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}

.add-to-home-banner {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
    animation: slideUp 0.5s ease-out forwards;
    pointer-events: auto;
    border-top: 3px solid var(--primary-color);
}

.add-to-home-banner p {
    margin: 0;
    flex: 1;
    margin-right: 15px;
    font-weight: 500;
}

.add-to-home-banner .btn {
    margin-left: 5px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Very small mobile adjustments for auth buttons */
@media (max-width: 380px) {
    .auth-buttons .btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Navbar container adjustments for better alignment */
.navbar .container-fluid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}