/* Container styles */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    color: #4834d4;
    /*background: linear-gradient(135deg, #f8f9ff 0%, #e8eaff 100%);*/
}

.container2 {
    display: flex;
    height: 100vh;
    width: 150vw;
    margin: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaff 100%);
    position: relative;
}

.container3 {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    color: #4834d4;
}

/* Form wrapper styles */
.form-wrapper {
    width: 100%;
    max-width: 40rem;
    /* Maximum width remains unchanged */
    padding: 2rem;
    margin: auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    border: 1px solid rgba(104, 109, 224, 0.2);
    max-height: 90vh;
    /* Limit the height to 90% of the viewport */
    overflow-y: auto;
    /* Enable vertical scrolling if content exceeds max-height */
    transition: transform 0.3s ease;
    display: flex;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

.form-wrapper2 {
    padding: 2rem;
    margin: 25px 0px 5px 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    border: 1px solid rgba(104, 109, 224, 0.2);
    max-height: 42vh;
    /* Limit the height to 90% of the viewport */
    overflow-y: auto;
    /* Enable vertical scrolling if content exceeds max-height */
    transition: transform 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-2px);
}

/* Dashboard wrapper styles */
.dash-wrapper {
    width: 100%;
    padding: 2rem;
    margin: auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    border: 1px solid rgba(104, 109, 224, 0.2);
    max-width: 75rem;
}

/* Heading styles */
.heading {
    font-size: 1.875rem;
    font-weight: 600;
    text-align: center;
    color: #4834d4;
    margin-bottom: 1.5rem;
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Label styles */
.label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #686de0;
}

/* Base input styles */
.input-base {
    background-color: white;
    border: 2px solid #e8eaff;
    color: #4834d4;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-base:focus {
    border-color: #4834d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

/* Button styles */
.button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button-green {
    background-color: green;
    display: block;
    width: auto;
    padding: 0.75rem;
    margin: 0 5px;
    background: linear-gradient(135deg, #34d434 0%, #68e072 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.button-purple {
    background-color: rgb(102, 0, 128);
    display: block;
    width: auto;
    padding: 0.75rem;
    margin: 0 5px;
    background: linear-gradient(135deg, #bc34d4 0%, #ce68e0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.button-yellow {
    background-color: yellow;
    display: block;
    width: auto;
    padding: 0.75rem;
    margin: 0 5px;
    background: linear-gradient(135deg, #d4cf34 0%, #e0d868 100%);
    color: black;
    /* To improve visibility */
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.button-red {
    background-color: red;
    display: block;
    width: auto;
    padding: 0.75rem;
    margin: 0 5px;
    background: linear-gradient(135deg, #d43434 0%, #e06868 100%);
    color: black;
    /* To improve visibility */
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.2);
}

.center-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaff 100%);
}

/* Modified styles to start from top-left */
.refill {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: white;
    justify-content: flex-start;
    /* Changed from center to flex-start */
    border-radius: 0;
    /* Removed border radius */
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    border: none;
    border-bottom: 1px solid rgba(104, 109, 224, 0.2);
    width: 100%;
    /* Full width */
    margin: 0;
    /* Remove margin */
    top: 0;
    left: 0;
}

.refill .button {
    width: auto;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.refill .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.2);
}

/* Add padding to container to account for fixed menu */
.container {
    padding-top: 7vh;
    /* Adjust based on menu height */
}

@media screen and (max-width: 600px) {
    .refill {
        flex-direction: column;
        padding: 10px;
        position: relative;
        /* Remove fixed positioning on mobile */
    }

    .refill .button {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .container {
        padding-top: 0;
        /* Remove padding on mobile */
    }
}

@media (min-width: 0px) {
    .container {
        max-width: 100%;
    }
}

.sidebar {
    width: 25vh;
    background: linear-gradient(180deg, #4834d4 0%, #686de0 100%);
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.dash-wrapper {
    flex: 1 1 auto;
    /* grow to fill remaining space */
    min-width: 0;
    /* allow flex children to shrink properly */
    background-color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    border: 1px solid rgba(104, 109, 224, 0.2);
    height: 100%;
    overflow: hidden;
    position: relative;
}

body {
    background-color: #0f172a;
    color: #f1f5f9;
}
