﻿/* =========================================================
   OveWeb – Final Compact Dashboard Layout (Bootstrap 5)
   ========================================================= */


/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #16213e 0%, #1f2c4e 100%);
    color: #f8f9fa;
    text-align: center;
    padding: 4rem 1rem 3rem;
    overflow: hidden;
    z-index: 0;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('/images/hero-bg.jpg') center/cover no-repeat;
        opacity: 0.25;
        z-index: -1;
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
        max-width: 1100px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p.lead {
        font-size: 1.2rem;
        color: #d6d8da;
        margin-bottom: 1.25rem;
    }

    .hero-section .btn {
        border-radius: 50px;
        padding: 0.6rem 1.8rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

        .hero-section .btn:hover {
            transform: translateY(-2px);
        }

/* ---------- DOUBLE CAROUSEL ---------- */
#photoCarousel1, #photoCarousel2 {
    max-width: 420px;
    margin: 0 auto;
}

    #photoCarousel1 .carousel-inner img,
    #photoCarousel2 .carousel-inner img {
        border-radius: 12px;
        object-fit: cover;
        height: 240px;
        width: 100%;
        border: 3px solid rgba(255,255,255,0.15);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

.carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    bottom: 10px;
}

    .carousel-caption h6 {
        color: #fff;
        font-weight: 500;
        font-size: 0.9rem;
        margin: 0;
    }

/* ---------- SENSOR CARDS ---------- */
.sensor-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

    .sensor-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .sensor-card .card-title {
        color: #e0e0e0;
    }

    .sensor-card .display-6 {
        color: #fff;
        font-weight: 700;
    }

/* ---------- LINKS SECTION ---------- */
.links-section {
    background: transparent;
    padding: 2.5rem 0;
}

    .links-section h2 {
        color: #ffffff;
        font-weight: 600;
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.8rem;
    height: 100%;
    transition: all 0.25s ease;
}

    .link-card h6 {
        font-weight: 500;
        margin: 0;
        font-size: 0.95rem;
    }

.link-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

/* Accentfärger per kort */
.link-sensor:hover {
    background: rgba(0, 123, 255, 0.25);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.link-github:hover {
    background: rgba(32, 32, 32, 0.35);
    box-shadow: 0 6px 15px rgba(32, 32, 32, 0.3);
}

.link-portfolio:hover {
    background: rgba(0, 200, 150, 0.25);
    box-shadow: 0 6px 15px rgba(0, 200, 150, 0.3);
}

.link-contact:hover {
    background: rgba(255, 140, 0, 0.25);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.3);
}

/* ---------- DOUBLE SCROLLING NEWS CARDS ---------- */
.svt-scroll-card,
.krisinfo-card {
    height: 100%;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.4rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* SVT färgtema */
.svt-scroll-card {
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.25);
}

    .svt-scroll-card:hover {
        transform: translateY(-4px);
        background: rgba(0, 123, 255, 0.25);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25);
    }

/* Krisinformation färgtema */
.krisinfo-card {
    background: rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

    .krisinfo-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 140, 0, 0.25);
        box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25);
    }

/* Scrollområde */
.scroll-box {
    overflow-y: auto;
    max-height: 260px;
    padding-right: 0.5rem;
}

    /* scrollbar-stil */
    .scroll-box::-webkit-scrollbar {
        width: 6px;
    }

    .scroll-box::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

        .scroll-box::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

/* Rubriker och länkar */
.latest-item a {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

    .latest-item a:hover {
        text-decoration: underline;
    }

.news-card h5 {
    color: #fff;
}

.news-card p {
    text-align: left;
}

/* ---------- FOOTER ---------- */
footer {
    position: relative;
    z-index: 1;
    background: #0d1117;
    color: #f8f9fa;
    text-align: center;
    padding: 1.5rem 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    #photoCarousel1 .carousel-inner img,
    #photoCarousel2 .carousel-inner img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem 2rem;
    }

    .link-card {
        padding: 0.6rem;
    }

    .link-icon {
        font-size: 1.5rem;
    }

    .links-section h2 {
        font-size: 1.4rem;
    }

    .svt-scroll-card,
    .krisinfo-card {
        max-height: none;
    }
}

@media (max-width: 576px) {
    #pwTable .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    #pwTable th, #pwTable td {
        font-size: 0.85rem;
    }
}


