.site-footer {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin-top: auto;
    border-top: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .site-footer {
    background-color: var(--bs-body-bg);
}
.footer-upper {
    padding: 2.5rem 0 1.5rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-logo:hover {
    color: var(--bs-primary);
}
.footer-logo img {
    filter: brightness(0) invert(1);
}
[data-bs-theme="light"] .footer-logo img {
    filter: none;
}
.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--bs-secondary-color);
    margin: 0;
}
.footer-social {
    display: flex;
    gap: 0.5rem;
}
.footer-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    overflow: visible;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-icon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.footer-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.25s ease;
}
.footer-icon-link:hover img {
    transform: scale(1.15);
}
.footer-quick-links-row {
    border-top: 1px solid var(--bs-border-color);
}
.footer-quick-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
}
.footer-text-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    white-space: nowrap;
}
.footer-text-link:hover {
    color: var(--bs-primary);
}
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    line-height: 1.5;
}
.footer-contact-item i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.875rem;
}
.footer-contact-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact-link:hover {
    color: var(--bs-primary);
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links-list li {
    margin: 0;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--bs-tertiary-bg);
    border-radius: 50%;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--bs-primary);
    color: var(--bs-body-bg);
    transform: translateY(-2px);
}
.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--bs-primary);
}
.footer-qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}
.qr-img {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    border: 1px solid var(--bs-border-color);
    object-fit: contain;
}
.qr-label {
    font-size: 0.6875rem;
    color: var(--bs-secondary-color);
}
.footer-lower {
    padding: 1rem 0;
    border-top: 1px solid var(--bs-border-color);
}
.footer-copyright-text {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    justify-content: flex-end;
    align-items: center;
}
.footer-legal-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-legal-link:hover {
    color: var(--bs-primary);
}
.footer-dot-separator {
    opacity: 0.4;
    margin: 0 0.1rem;
}
.footer-disclaimer {
    border-bottom: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}
.iot-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bs-success);
}
.iot-dot {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: var(--bs-success);
    border-radius: 50%;
    animation: iot-pulse 2s infinite;
}
[data-bs-theme="dark"] .iot-dot {
    box-shadow: 0 0 4px var(--bs-success);
}
@keyframes iot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
    .iot-dot {
        animation: none;
    }
}
@media (max-width: 991.98px) {
    .footer-upper {
        padding: 2rem 0 1rem;
    }
}
@media (max-width: 767.98px) {
    .footer-upper {
        padding: 1.5rem 0 0.75rem;
    }
    .footer-legal-links {
        justify-content: center;
    }
    .footer-qr-grid {
        justify-content: center;
    }
}
@media (max-width: 575.98px) {
    .footer-logo {
        font-size: 1.1rem;
    }
    .qr-img {
        width: 60px;
        height: 60px;
    }
}
