body {
    padding-top: 40px;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.home-link:hover {
    color: #0d6efd;
}

.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 10px;
}

.site-header a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.2s;
}

.site-header a:hover {
    opacity: 0.8;
}

.site-header .header-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.site-header .header-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .site-header .header-title {
        font-size: 1.15rem;
    }
    .site-header .header-logo {
        max-height: 45px;
    }
}

.main-logo {
    display: block;
    margin: 20px auto;
    max-width: 225px;
    height: auto;
}

.page-title {
    text-align: center;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

.container-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-title {
    margin-top: 30px;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: #0d6efd;
    font-weight: 600;
}

.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
    z-index: 100;
}

.home-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn.active {
    background-color: #6c757d;
    color: white;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

.footer-links a {
    color: #0d6efd;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Tool specific: Holter */
.holter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.holter-pane {
    flex: 1;
    min-width: 300px;
}

.category-section {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.category-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2c3e50;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
}

.bg-light-green { background-color: #e8f5e9; border-color: #c8e6c9; }
.bg-light-yellow { background-color: #fffde7; border-color: #fff9c4; }
.bg-light-blue { background-color: #e3f2fd; border-color: #bbdefb; }

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-item input {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 0.95rem;
}

#text-box {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    resize: vertical;
}

/* Tool specific: CL-RF */
.result-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-very-low { background-color: #d1e7dd; color: #0f5132; border: 2px solid #badbcc; }
.result-low { background-color: #98e6cd; color: #0a3622; border: 2px solid #0f5132; }
.result-moderate { background-color: #fff3cd; color: #664d03; border: 2px solid #ffecb5; }

/* Cookie Popup */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: white;
    padding: 25px;
    z-index: 2000;
    display: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
    border-top: 5px solid #0d6efd;
}

.ad-placeholder {
    display: none; /* Hidden by default, change to flex to show */
    background-color: #f1f3f5;
    border: 2px dashed #adb5bd;
    height: 120px;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    color: #6c757d;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .holter-container {
        flex-direction: column;
    }
}
