/* Genel stiller */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.header {
    background-color: #1e3932;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.panel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

/* Puan kutusu stilleri */
.puan-kutusu {
    background: #1e3932;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.puan-kutusu h3 {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.puan-kutusu .puan {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

/* QR kod kutusu stilleri */
.qr-kod-kutusu {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#qrcode {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Alt menü stilleri */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.menu-item {
    color: #6b7177;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
    flex: 1;
    padding: 5px;
}

.menu-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.menu-item.active {
    color: #00754a;
}

/* Tablo stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #6b7177;
}

/* Profil sayfası stilleri */
.profil-avatar {
    text-align: center;
    padding: 30px 0;
}

.profil-avatar i {
    font-size: 80px;
    color: #1e3932;
    margin-bottom: 15px;
}

.profil-avatar h3 {
    margin: 10px 0 5px;
    color: #333;
}

.member-since {
    color: #6b7177;
    font-size: 0.9rem;
    margin: 0;
}

.profil-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    color: #6b7177;
    margin-top: 5px;
    font-size: 0.8rem;
}

.btn-primary {
    background: #00754a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #005c3b;
}

.profil-stats {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

.stat-item i {
    font-size: 24px;
    color: #00754a;
    margin-right: 15px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7177;
}

/* Alert stilleri */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Diğer stiller */
.kazanim {
    color: #00754a;
    font-weight: 500;
}

.harcama {
    color: #dc3545;
    font-weight: 500;
}

.no-data {
    text-align: center;
    color: #6b7177;
    padding: 20px;
}

.btn-link {
    display: block;
    text-align: center;
    color: #00754a;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-danger {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}
/* Ödül kartları stilleri */
.oduller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.odul-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.odul-card.aktif:hover {
    transform: translateY(-5px);
}

.odul-card.pasif {
    opacity: 0.7;
}

.odul-icon {
    font-size: 40px;
    color: #1e3932;
    margin-bottom: 15px;
}

.odul-card h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.odul-puan {
    color: #00754a;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 10px 0;
}

.odul-aciklama {
    color: #6b7177;
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.yetersiz-puan {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
}

.pasif-mesaj {
    color: #6b7177;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Ödül detay sayfası stilleri */
.odul-detay {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.odul-kod {
    margin-top: 20px;
    text-align: center;
}

.odul-kod h3 {
    color: #155724;
    margin-bottom: 10px;
}

.odul-kod .kod {
    background: #155724;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 10px 0;
}

.odul-kod p {
    color: #155724;
    font-size: 0.9rem;
    margin-top: 10px;
}
.odul-qr {
    margin-top: 20px;
    text-align: center;
}

.odul-qr h3 {
    color: #155724;
    margin-bottom: 10px;
}

.odul-qr #qrcode {
    margin: 20px auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
}

.odul-qr p {
    color: #155724;
    font-size: 0.9rem;
    margin-top: 10px;
}

.odul-qr .small {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}
.odul-detay-page {
    background-color: #f5f5f5;
}

.odul-detay-page .header {
    background: #1e3932;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-button {
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    text-decoration: none;
}

.odul-hero {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.odul-icon-large {
    font-size: 4rem;
    color: #1e3932;
    margin-bottom: 1rem;
}

.puan-badge {
    display: inline-flex;
    align-items: center;
    background: #1e3932;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.puan-badge i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.puan-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.current-points, .points-after {
    text-align: center;
}

.current-points span, .points-after span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.current-points strong, .points-after strong {
    font-size: 1.5rem;
    color: #1e3932;
}

.odul-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.odul-description h3 {
    color: #1e3932;
    margin-bottom: 1rem;
}

.odul-description p {
    color: #666;
    line-height: 1.6;
}

.odul-rules {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.odul-rules h4 {
    color: #1e3932;
    margin-bottom: 1rem;
}

.odul-rules ul {
    list-style: none;
    padding: 0;
}

.odul-rules li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #666;
}

.odul-rules li i {
    color: #1e3932;
    margin-right: 0.8rem;
}

.btn-claim {
    width: 100%;
    background: #1e3932;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    margin-top: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.btn-claim:hover {
    background: #152922;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.qr-container {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.qr-info {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.qr-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#qrcode {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* Yeni eklenen stiller */
.qr-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qr-fullscreen {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.qr-zoom-hint {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.qr-zoom-hint i {
    margin-right: 0.5rem;
}

#qrcode {
    cursor: pointer;
    transition: transform 0.2s;
}

#qrcode:hover {
    transform: scale(1.02);
}
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 300px;
}

#qrcode {
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#qrcode img {
    display: block;
    margin: 0 auto;
}

.qr-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.qr-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-zoom-hint {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Tam ekran QR kod stilleri */
.qr-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qr-fullscreen {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode:hover {
    transform: scale(1.02);
}
.puan-kutusu {
    background: linear-gradient(135deg, #1e3932 0%, #2d5a4e 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.puan-kutusu::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(45deg);
}

.puan-kutusu h3 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
    opacity: 0.9;
}

.puan-kutusu .puan {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.puan-kutusu .puan i {
    font-size: 2rem;
    color: #ffd700;
}

.puan-kutusu p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.puan-animasyon {
    animation: puanDegisim 0.5s ease-out;
}

@keyframes puanDegisim {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.odul-detay-page .header {
    background: #1e3932;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    justify-content: center;
    text-align: center;
}

.odul-detay-page .header .back-button {
    position: absolute;
    left: 1rem;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.odul-detay-page .header h2 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    padding: 0 2rem;
}


.urunler-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.urun-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.urun-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.urun-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.urun-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.urun-detay {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.urun-baslik-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.urun-baslik {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.urun-etiketler {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.urun-etiket {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.yeni { background: #e3f2fd; color: #1976d2; }
.populer { background: #fff3e0; color: #f57c00; }
.ozel { background: #f3e5f5; color: #7b1fa2; }

.urun-aciklama {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.urun-alt {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allerjen-ikonlar {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.allerjen-ikonlar img {
    width: 24px;
    height: 24px;
}

.urun-fiyat {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
}

.stok-yok {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .urun-card {
        flex-direction: row;
    }
    
    .urun-image-container {
        width: 100px;
        height: 100px;
    }
    
    .urun-detay {
        padding: 0.75rem;
    }
    
    .urun-baslik {
        font-size: 1rem;
    }
    
    .urun-aciklama {
        font-size: 0.85rem;
    }
    
    .urun-fiyat {
        font-size: 1.1rem;
    }
    
    .allerjen-ikonlar img {
        width: 20px;
        height: 20px;
    }
}