* {
    box-sizing: border-box;
}

header {
    background-color: var(--background-light);
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-card);
}

main {
    margin-top: 2rem;
}

#app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;

}

#header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    justify-content: space-around;

    .logo {
        width: 100%;
        max-width: 8rem;
        border-radius: .5rem;

    }

    h1 {
        font-size: 1.4rem;
    }
}

#hero {
    position: relative;
    overflow: hidden;
    max-height: 50vh;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    .wrapper_herotext {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        color: white;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
        backdrop-filter: blur(40px);

        h1 {
            margin: 0;
        }
    }
}

#startScreen {
    height: 100%;
    display: flex;
    flex-direction: column;

    .heroimage {
        width: 100%;
        border-radius: var(--border-radius);
    }
}

.topHeader {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#bottomBar {
    position: fixed;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    width: inherit;
    z-index: 400;
    gap: 1rem;
    justify-content: space-around;
    transition: bottom 0.3s ease-in-out;
}

#reportForm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-card);
    z-index: 800;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    &.hidden {
        transform: translateX(100%);
    }

    &:not(.hidden) {
        transform: translateX(0);
        animation: slideInModal 0.3s forwards;
    }

    .report-form-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 1rem;
        padding-bottom: 5rem;
        /* Adjust based on your bottom bar height */
    }
}

#wrapper_past_reports {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }

}

.report-summary-card {
    background: var(--shade200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0 auto;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .report-summary-header {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--shade400);
        padding-bottom: 10px;
        margin-bottom: 10px;

        .report-id,
        .report-date {
            margin: 0;
        }
    }

    .report-summary-body {
        display: flex;
        gap: 20px;
        align-items: flex-start;

        .image-preview {
            width: 6rem;
            height: 6rem;
            background-color: var(--shade200);
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: var(--border-radius);
            overflow: hidden;

            .preview-image {
                max-width: 100%;
                height: auto;
                border-radius: var(--border-radius);
            }
        }

        .report-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;

            p {
                color: var(--text-color-dark);
                margin: 0;
            }
        }
    }
}

#pastReports {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-bottom: 8rem;

    h4 {
        margin-bottom: 0;
    }
}

@keyframes slideInModal {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
    padding-bottom: 5rem;
    /* Adjust based on your bottom bar height */
}

@media (max-height: 600px) {
    #reportForm {
        position: fixed;
    }
}

footer {
    margin-top: 2rem;
    background: var(--shade200);
    padding: 2rem;
    padding-bottom: 8rem;
    display: flex;
    gap:    1rem;
    @media (max-width: 768px) {
        flex-direction: column-reverse;
    }
}