html {
    scroll-behavior: smooth;
}

body {
    padding-bottom: 120px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.is-fixed{
    position: fixed;
    bottom: 0px;
    width: 100%;
}

p{
    word-break: break-word
}

img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    width: auto;
}

@media (min-width: 768px) {
    img {
        width: 50%;
    }
}

#loading {
    text-align: center;
    padding: 2rem;
}

.progress {
    margin: 1rem 0;
}

.button {
    min-height: 44px;
    transition: all 0.3s ease;
}

.button:focus {
    outline: 2px solid #3273dc;
    outline-offset: 2px;
}

.card, .title, .subtitle {
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .title {
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .subtitle {
    color: #b0b0b0;
}

body.dark-mode .button.is-outlined {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .button.is-outlined:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode .hero.is-success {
    background-color: #2d4a2d;
}

body.dark-mode .progress.is-success::-webkit-progress-value {
    background-color: #4a7c59;
}

body.dark-mode .progress.is-success::-moz-progress-bar {
    background-color: #4a7c59;
}

/* Skeleton loading styles */
.skeleton-loader {
    margin-bottom: 1rem;
}

.skeleton-card {
    background: #f6f7f8;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-title {
    height: 24px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-subtitle {
    height: 16px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 50%;
}

.skeleton-content {
    height: 14px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 90%;
}

.skeleton-content:last-child {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

body.dark-mode .skeleton-card {
    background: #2d2d2d;
}

body.dark-mode .skeleton-title,
body.dark-mode .skeleton-subtitle,
body.dark-mode .skeleton-content {
    background: #404040;
}

/* Back to top button */
#backToTop {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}