﻿/* === Sticky footer layout === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === Fallback för trasiga bilder === */
img:not([src]):not([srcset]),
img[src=""] {
    display: none;
}

/* === Responsiv testimonial-avatar === */
.testimonial-img,
.fallback-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
}

@media (max-width: 575.98px) {
    .testimonial-img,
    .fallback-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* === Dashboard Cards === */
.dashboard-card,
.dashboard-card .card-body {
    overflow: visible !important;
}

.dashboard-card {
    transition: transform .3s ease, box-shadow .3s ease;
    /* cursor: pointer; */ /* <-- borttagen */
}

    .dashboard-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    }

    .dashboard-card .icon {
        position: relative;
        z-index: 2;
        transition: transform .3s ease;
    }

    .dashboard-card:hover .icon {
        transform: translateY(-12px) scale(1.2);
    }

    .dashboard-card .btn {
        cursor: pointer;
    }

/* === Sidebar === */
#sidebar .nav-link.active {
    background-color: rgba(0,0,0,0.05);
    font-weight: 600;
}

.sidebar-user {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .sidebar-user .fw-bold {
        font-size: .95rem;
    }

    .sidebar-user small {
        font-size: .8rem;
        display: block;
        line-height: 1;
    }

    .sidebar-user i.bi-chevron-down {
        cursor: pointer;
    }

/* === Widget Preview Container === */
.preview-container {
    width: 320px;
    height: 200px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    box-sizing: border-box;
    background-color: #eef9ff;
}
.resizable-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
    resize: both;
    overflow: auto;
}