
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header {
    background-color: rgb(249 246 246);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

    .header img {
        height: 20px;
    }

    .header .user-icon {
        display: flex;
        align-items: center;
        position: relative;
    }

.user-dropdown {
    position: relative;
    display: inline-block;
}

    .user-dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }

.sidebar {
    background-color: #1d3557;
    color: #333;
    min-height: 100vh;
    width: 260px;
    padding-top: 20px;
    border-right: 1px solid #ddd;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 60px;
    transition: left 0.3s ease;
}

    .sidebar .nav-link {
        color: #fff;
        margin: 5px 0;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        border-radius: 5px;
    }

        .sidebar .nav-link:hover {
            background-color: #1a252f;
            color: #ffffff;
        }

        .sidebar .nav-link i {
            margin-right: 10px;
        }

.collapse .nav-link {
    padding-left: 30px;
}

.content {
    margin-left: 260px;
    padding: 20px;
    margin-top: 70px;
}

.navbar-toggler {
    top: .60rem;
    right: 1rem;
}

.content {
    background-color: #f8f9fa;
    min-height: calc(101vh - 80px);
}
/* Add these styles to your existing CSS */
.chart-container {
    position: relative;
    height: 100%;
}

.card-body canvas {
    max-height: 300px;
}

/* Make sure the chart parent elements have proper heights */
.card.h-100 {
    height: 100% !important;
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px; /* or whatever height */
    background: #f1f1f1;
    text-align: center;
}

.main-content {
    margin-bottom: 60px; /* slightly more than footer height */
}
/*form {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;*/
    /* Space between columns and rows */
/*}*/

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 2px solid #000;
    outline: none;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    select:focus {
        border-bottom: 2px solid #007BFF;
    }

.form-group {
    display: flex;
    flex-direction: column;
}

.form-actions {
    grid-column: span 4;
    /* Make buttons span across all columns */
    text-align: center;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }

.form {
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 0 !important;
}

    .form .label {
        color: var(--bs-secondary);
    }

    .form .form-group {
        margin-bottom: 2rem;
    }

    .form .form-control {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--bs-secondary);
        padding-left: 0;
        padding-right: 0;
        outline: 0;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

.form-control:focus,
.form-control.is-valid:focus {
    border-color: #0078bf !important;
}

.sub-header {
    color: #0078bf;
}

.btn-submit {
    background-color: #0078bf;
    color: #fff;
}
.error {
    color: #dc3545
}
#Grid > div.e-groupdroparea.e-lib.e-droppable.e-draggable {
    display: none;
}
/* Additional fix for mobile responsiveness */
@media (max-width: 768px) {
    canvas {
        max-height: 250px !important;
    }
}

@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        position: absolute;
        top: 60px;
        left: -100%;
        transition: left 0.3s ease;
    }

        .sidebar.show {
            left: 0;
        }

    .content {
        margin-left: 0;
        margin-top: 120px;
    }

    .header {
        top: 0;
    }

    .content {
        margin-left: 0;
        margin-top: 31px;
    }
}