@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Poppins;
    scrollbar-width: none;
}

.admin {
    width: 100%;
    height: 100vh;
    padding: 30px;
    background: #070819;
    display: flex;
    justify-content: space-around;
    align-items: center;

    .img-block {
        width: 40%;
    }

    .form {
        width: 40%;
        height: 100%;
        padding: 20px;
        background: #0E1729;
        font-weight: bold;

        form {
            width: 100%;
            height: 100%;
            padding: 10px 20px;
            background: #D9D9D9;
            border-radius: 30px;
            display: flex;
            align-items: center;
            flex-direction: column;
            gap: 20px;

            nav {
                width: 100%;
                display: flex;
                justify-content: start;
                gap: 20px;

                a {
                    padding: 10px;
                    color: black;
                    border-radius: 5px;
                    text-decoration: none;
                    transition: all 500ms;
                }
                a:hover {
                    color: white;
                    background: #131540;
                }
            }

            img {
                width: 50%;
                object-fit: contain;
            }

            .input-block {
                width: 100%;
                position: relative;

                input {
                    width: 100%;
                    padding: 15px 20px;
                    background: none;
                    border-radius: 15px;
                    border: 1px solid black;
                    outline: none;
                    font-weight: bold;
                }

                label {
                    padding: 0 5px;
                    background: #D9D9D9;
                    position: absolute;
                    top: 50%;
                    left: 20px;
                    transform: translateY(-50%);
                    transition: all 500ms;
                }

                input:focus ~ label, input:not(:placeholder-shown) ~ label {
                    top: 0px;
                    font-size: 0.8rem;
                }
            }

            p {
                a {
                    color: #2B5EE3;
                }
            }

            button {
                width: 100px;
                margin-left: auto;
                padding: 10px;
                border: none;
                border-radius: 20px;
                background: #131540;
                color: white;
                transition: all 500ms;
            }
            button:hover {
                background: color-mix(in srgb, #131540, white 20%);
            }
        }
    }
}

.verification {
    width: 40%;
    height: 100%;
    padding: 20px;
    background: #0E1729;
    font-weight: bold;

    form {
        width: 100%;
        height: 100%;
        padding: 30px 20px;
        background: #D9D9D9;
        border-radius: 30px;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 50px;

        .text-block {
            width: 100%;
            margin-bottom: 30px;
            text-align: center;
        }
        .verification-block {
            width: 100%;
            margin: 30px 0;
            display: flex;
            justify-content: center;
            gap: 10px;

            input {
                width: 50px;
                padding: 10px;
                background: white;
                border-radius: 20px;
                border: 1px solid black;
                outline: none;
                font-size: 1.6rem;
                text-align: center;
            }
            input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button, input[type=number] {
                -webkit-appearance: none;
            }
        }
        
        button {
            width: 100px;
            padding: 10px;
            border: none;
            border-radius: 20px;
            background: #131540;
            color: white;
            transition: all 500ms;
        }
        button:hover {
            background: color-mix(in srgb, #131540, white 20%);
        }

        p {
            a {
                color: black;
            }
        }
    }
}

@media screen and (max-width: 992px) {
    .admin {
        height: 100vh;
        
        .img-block {
            display: none;
        }

        .form, .verification {
            width: 100%;
        }
    }
    .signup {
        height: auto;
    }
}

.admin-dashboard {
    padding: 20px;

    h3 {
        max-width: 300px !important;
        text-align: center;
    }

    .dashboard-container {
        height: 450px;
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-wrap: wrap;
        gap: 20px;
    }

    .group {
        max-width: 58%;
        flex-grow: 1;
        gap: 20px;
    }
    .groups {
        max-width: 40%;
        flex-grow: 1;
        gap: 20px;
    }

    .stats-box,
    .chart-container,
    .transaction-container {
        background: white;
        padding: 20px;
        text-align: center;
        border: 1px solid black !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .stats-box:hover,
    .chart-container:hover,
    .transaction-container:hover {
        transform: scale(1.03);
    }

    .stats-box {
        height: 110px;
        text-align: left;
    }

    .chart-container, .stats-container{
        height: 400px;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .table-striped tbody tr:hover {
        background: #f1f3f7;
    }
    
    #calendar {
        height: 400px !important;
        border: 1px solid black;
        padding: 10px;
        max-width: 100%;
        height: 500px;
        *{font-size: 1rem;}
    }
    
    .month-label {
        text-align: center;
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 10px;
    }

    .chart-box {
        display: flex;
        justify-content: space-between;
    }

    .appointment {
        padding: 20px;
        gap: 20px;

        .card {
            border: 1px solid black !important;
        }

        form {
            input, button {
                flex-grow: 1;
            }
        }
    }
}