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

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ff9800;
    --danger: #f44336;
    --bg: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --nav-height: 60px;
    --header-height: 56px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-tap-highlight-color: transparent;
}

/* Screens */
.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* Auth Screen */
#authScreen {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.auth-logo i {
    font-size: 48px;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.auth-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger {
    width: 100%;
    padding: 14px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    color: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Message */
.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error-message.active {
    display: block;
}

/* App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

/* Pages */
.page {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--nav-height);
    overflow-y: auto;
    background: var(--bg);
}

.page.active {
    display: block;
}

/* Map Page */
#mapPage {
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
}

#locationStatus {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    gap: 4px;
    transition: color 0.3s;
}

.nav-btn i {
    font-size: 20px;
}

.nav-btn.active {
    color: var(--primary);
}

/* Profile Page */
.profile-header {
    background: var(--primary);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.profile-avatar i {
    font-size: 64px;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    margin-top: -20px;
}

.stat-card {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.badges-section,
.xp-exchange {
    background: var(--white);
    margin: 20px;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.badge-item {
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
}

.badge-item .badge-icon {
    font-size: 32px;
}

.badge-item .badge-name {
    font-size: 10px;
    margin-top: 5px;
}

.exchange-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.exchange-controls input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
}

/* Shop Page */
#shopPage {
    padding: 20px;
}

.shop-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.shop-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.shop-item h4 {
    margin-bottom: 5px;
}

.shop-item .buy-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: 20px;
}

.close-modal {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cache Modal Specific */
.cache-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cache-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cache-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--white);
}

.btn-google-maps {
    background: #4285f4;
}

.btn-waze {
    background: #33ccff;
    color: var(--white);
}

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

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

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

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* QR Scanner */
#qr-reader {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.qr-result {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 400px) {
    .auth-container {
        padding: 20px 15px;
    }
}

/* Found cache styles */
.cache-found-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cache-completed {
    background: #e8f5e9 !important;
    border: 2px solid #4caf50 !important;
}

.btn-completed {
    width: 100%;
    padding: 14px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-completed:active {
    background: #388e3c;
}

/* Marker styles for found caches */
.cache-marker-found {
    filter: grayscale(30%) brightness(1.1);
}

/* Reward display */
.reward-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.reward-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.reward-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.reward-value {
    font-size: 24px;
    font-weight: 700;
}

.reward-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Hint cost display */
.hint-cost {
    margin-top: 15px;
}

/* Task container */
.task-container {
    padding: 20px;
    background: #fff3e0;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    margin: 20px 0;
}

.task-container h4 {
    color: #e65100;
    margin: 0 0 10px 0;
}

.task-container p {
    color: #333;
    line-height: 1.6;
}

/* Locked content */
.locked-content {
    padding: 20px;
    background: #fce4ec;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.locked-content .lock-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Custom Leaflet popup */
.cache-popup .leaflet-popup-content {
    margin: 8px 12px;
    font-size: 14px;
    min-width: 150px;
}

.cache-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Cache marker animations */
.cache-marker {
    transition: transform 0.2s;
}

.cache-marker:hover {
    transform: scale(1.2);
}

.cache-marker-found {
    opacity: 0.9;
}

.settings-modal .modal-content {
    max-width: 500px;
    margin: 0 auto;
}

.settings-body {
    padding: 0;
}

.settings-section {
    padding: 20px;
}

.settings-section-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.settings-section hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}

/* Avatar Upload */
.avatar-upload {
    text-align: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f5f5f5;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    position: relative;
}

.avatar-preview i {
    font-size: 60px;
    color: #ccc;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-controls .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
}

/* Message Box */
.message-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}

.message-box.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.message-box.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Notification Settings */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.notification-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.notification-info i {
    font-size: 24px;
    color: #666;
    width: 30px;
    text-align: center;
}

.notification-info div {
    display: flex;
    flex-direction: column;
}

.notification-info strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-info small {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #4caf50;
}

input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Settings specific button styles */
.settings-section .btn-primary {
    margin-top: 10px;
}

.settings-section .btn-danger {
    margin-top: 0;
}

/* Avatar upload loading state */
.avatar-preview.loading {
    opacity: 0.5;
}

.avatar-preview.loading::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ccc;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Badge item styles */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.badge-item {
    text-align: center;
    padding: 12px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

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

.badge-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon img,
.badge-icon svg {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.badge-icon .emoji-icon {
    font-size: 36px;
    line-height: 1;
}

.badge-name {
    font-size: 11px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Badge with earned date */
.badge-earned-date {
    font-size: 9px;
    color: #999;
    margin-top: 3px;
}

/* Badge rarity glow */
.badge-item.rare {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
}

.badge-item.legendary {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border: 2px solid #e91e63;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.6);
    }
}

/* Next badge preview */
.next-badge {
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.next-badge-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.next-badge-icon img,
.next-badge-icon svg {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.next-badge-info {
    flex: 1;
}

.next-badge-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.next-badge-xp {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* XP progress bar for next badge */
.xp-progress {
    margin-top: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.xp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.btn-hint.purchased {
    background: #4caf50 !important;
    border: 2px solid #2e7d32;
}

.btn-hint.purchased::before {
    content: '✅ ';
}

/* Hint poga - jāpērk */
.btn-hint:not(.purchased) {
    background: #ff9800;
}

/* Veikala stili */
.shop-container {
    padding: 20px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-credits-shop {
    background: #fff3e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.shop-info-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #1565c0;
}

.shop-info-box i {
    font-size: 24px;
    flex-shrink: 0;
}

.shop-grid {
    display: grid;
    gap: 15px;
}

.shop-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.shop-item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.credit-icon {
    font-size: 32px;
}

.shop-item-info {
    flex: 1;
}

.shop-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.shop-item-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

.shop-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-amount {
    font-weight: 700;
    color: #2e7d32;
    font-size: 16px;
}

.price-tag {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.buy-btn {
    padding: 12px 20px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s;
}

.buy-btn:active {
    background: #1b5e20;
}

/* Veikala sadalītājs */
.shop-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.shop-divider::before,
.shop-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.shop-divider::before {
    left: 0;
}

.shop-divider::after {
    right: 0;
}

.shop-divider span {
    background: #f5f5f5;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

/* XP apmaiņa veikalā */
.xp-exchange-shop {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xp-exchange-shop h4 {
    margin: 0 0 10px 0;
}

.exchange-rate {
    font-size: 18px;
    font-weight: 700;
    color: #ff9800;
    margin: 10px 0;
}

.xp-exchange-warning {
    background: #fff3e0;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e65100;
}

/* Pirkuma veiksmes paziņojums */
.purchase-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s;
}

.purchase-success-modal {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    animation: slideUp 0.4s;
}

.success-animation {
    margin-bottom: 20px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s;
}

.checkmark {
    width: 20px;
    height: 40px;
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    transform: rotate(45deg);
    margin-top: -5px;
}

.credits-earned {
    margin: 15px 0;
}

.credit-icon-large {
    font-size: 48px;
}

.credit-amount-large {
    font-size: 36px;
    font-weight: 700;
    color: #2e7d32;
    margin-left: 10px;
}

.new-balance {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.price-paid {
    color: #999;
    font-size: 13px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Atbildes ievades lauks */
.answer-input-group {
    margin: 15px 0;
}

.answer-input-group input {
    transition: border-color 0.3s ease;
}

.answer-input-group input:focus {
    outline: none;
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Pareizas/nepareizas atbildes animācija */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.answer-wrong {
    animation: shake 0.5s ease;
    border-color: #f44336 !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.answer-correct {
    animation: pulse 0.5s ease;
    border-color: #4caf50 !important;
    background: #e8f5e9 !important;
}