@import "default.css";

.error {
    color: var(--red);
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding-top: 20px;
}

svg.menuicon {
    position: absolute;
    right: 20px;
    top: 15px;
    height: 30px;
    width: 30px;
    display: none;
}

.sidebar {
    display: flex;
    gap: 20px;
    position: fixed;
    background: var(--c3);
    width: fit-content;
    padding: 20px;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    z-index: 2;

    .pages {
        ul {
            display: grid;
            gap: 10px;

            li {
                text-wrap: nowrap;
                list-style: none;
                padding: 10px 20px;
                background-color: var(--c1);
                border-radius: 30px;
                &:hover {
                    background-color: var(--c2);
                    & a {
                        color: var(--white);
                    }
                }
            }
        }
    }

    .logo img {
        height: 100px;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    height: 60px;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--grey);
    align-items: center;
    position: fixed;
    z-index: 9;
    top: 0px;
    width: 100%;
    background-color: #ffffffde;

    & .logo {
        height: 100%;

        & img {
            height: 100%;
        }
    }

    & .pages {
        display: flex;
        gap: 20px;
        justify-content: space-evenly;
        padding-right: 20px;
    }

    & div {
        margin: 10px;
    }
}

.gap {
    height: 80px;
}

.indexpage {
    width: -webkit-fill-available;
    gap: 20px;
    display: grid;
    padding: 50px 5px;
    place-content: center;
    margin-left: 200px;

    & h2 {
        text-align: center;
        font-size: 20px;
    }

    & .feilds {
        display: flex;
        gap: 20px;
        align-items: baseline;
        justify-content: center;
        width: -webkit-fill-available;
        margin-bottom: 20px;

        & .side {
            display: grid;
            gap: 10px;
            align-items: baseline;
            width: -webkit-fill-available;
            max-width: 800px;
            padding: 15px;
            border: var(--border);
            background-color: var(--c1);
            box-shadow: 0px 0px 10px -2px #00000080 inset;
            filter: drop-shadow(0px 0px);

            & .fieldbox {
                display: grid;
                gap: 10px;
                grid-template-columns: 48% 48%;
                justify-content: space-between;

                & input {
                    padding: 5px;
                    border: var(--border);
                }
            }
        }
    }

    & h1 {
        color: var(--c2);
        text-align: center;
    }

    & .formtypes {
        display: flex;
        background-color: var(--c3);
        padding: 70px;
        justify-content: center;
        gap: 10px;

        justify-self: center;

        & .type {
            display: grid;
            padding: 10px;
            gap: 10px;
            justify-content: center;
            text-align: center;
            background-color: white;

            & svg {
                height: 100px;
                fill: var(--c3);
                aspect-ratio: 1/1;
                background-color: var(--c1);
                padding: 10px;
            }
        }

        & .type:hover {
            background-color: var(--c2);
            scale: 1.5;
            z-index: 9;

            & p {
                color: var(--white);
            }
        }
    }
}

.container,
.indexpage {
    display: flex;
    flex-direction: column;
    place-items: center;
    place-self: center;

    & h1 {
        margin-top: 20px;
    }

    & p {
        margin-bottom: 20px;
    }

    & form {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-evenly;
        ;

        & .step {
            max-width: 800px;
            display: none;
            padding: 15px;
            border: 1px solid var(--c3);
            gap: 15px;
            background-color: var(--c1);
            box-shadow: 0px 0px 10px -2px #00000080 inset;
            filter: drop-shadow(0px 0px);

            & .btns {
                display: flex;
                gap: 15px;
                justify-content: space-between;

                & .btn {
                    padding: 10px;
                    font-weight: 600;
                    border: 1px solid transparent;
                    cursor: default;
                    text-align: center;
                    width: 100%;
                    color: var(--white);
                    background-color: var(--c2);

                }

                & .btn:hover {
                    background-color: var(--c3);
                    cursor: pointer;
                }
            }

            & .heading {
                align-self: center;
            }

            & .addi {
                display: flex;
                gap: 10px;

                & .side {
                    display: grid;
                    gap: 10px;
                }
            }

            & .inpset {
                display: grid;
                gap: 15px;
                border: 1px solid var(--c3);
                padding: 15px;
                background-color: var(--white);

                & .inpbox {
                    display: grid;
                    align-items: center;
                    position: relative;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 10px;

                    & .inps {
                        display: flex;
                        justify-content: space-between;
                        border: 1px dashed var(--c3);
                        padding: 8px;
                        color: var(--black);

                        & #user_img {
                            border: none;
                            opacity: 0;
                            width: 155px;
                        }

                        & label {
                            flex: 1;
                            text-align: center;
                        }
                    }

                    & input,
                    select {
                        padding: 6px;
                        border: 1px dashed var(--c3);
                    }

                    & .imgbtn {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: 0;

                        & .icon {
                            gap: 6px;
                            position: absolute;
                            display: flex;
                            align-items: center;

                            & svg {
                                width: 18px;
                                height: 18px;
                            }
                        }

                    }
                }
            }
        }

        & .step:hover {
            filter: drop-shadow(10px 10px var(--c3));
        }

        & .laststep {
            & .inpset>.optional {
                display: none;
            }

            & .inpset2 {
                display: grid;
                gap: 20px;

                & * {
                    font-family: monospace !important;
                }

                & .inpbox {
                    display: flex;
                    gap: 10px;

                    & a {
                        color: var(--c2);
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .indexpage {
        margin-left: 0;
    }

    .sidebar {
        display: none;
    }

    .feilds {
        flex-direction: column;

    }

    svg.menuicon {
        display: block;
    }

    .container {
        margin-left: 0;

        & form {
            width: -webkit-fill-available;

            & .step {
                width: 100%;

                & .addi {
                    flex-direction: column;
                }

                & .inpbox {
                    gap: 2px;
                    grid-template-columns: repeat(1, 1fr) !important;
                }
            }
        }
    }

    .type {
        & svg {
            height: 50px !important;
        }
    }
}