/********** Template CSS **********/
:root {
    --primary: #16eb5a;
    --light: #fff;
    --dark: #000000;
}
th{
    color: #fff;
}
body{
    color: #fff !important;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.main-logo img{
    /* width: 100%; */
    width: 90px;
}
.navbar-dark .navbar-brand{
    margin-bottom: 35px !important;
}
.minim-logo img{
    width: 40px;
}

/* Button */
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/* Layout */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: #0f1c0f;
    transition: 0.5s;
    z-index: 999;
    border-right: 1px solid rgb(255 255 255 / 3%);
}

.sticky-top{
    border-bottom: 1px solid rgb(255 255 255 / 3%);
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/* Navbar */
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid #fff;
    border-radius: 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 12px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: #fff;
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 12px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}
.count-badge {
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 14px;
    position: relative;
    left: 60px;
    display: inline-block;
}
.ev-dash {
    background-image: linear-gradient(to bottom, rgba(2, 2, 2, 0.36), #0f1c0f), url('img/abs-bg.jpg');
    -webkit-background-size: cover;
    padding: 30px;
}

.ev-dash .dash-welcome {
    max-width: 500px;
    width: 100%;
    margin-bottom: 30px;
}

.ev-dash .dash-welcome h1 {
    color: #fff;
    font-weight: 800;
}

.ev-dash .dash-welcome p {
    color: #fff;
    opacity: 0.5;
    margin-bottom: 0;
    font-weight: 300;
}

.ev-dash-box {
    color: #fff;
    display: flex;
    align-items: center;
}

.ev-dash-box__left {
    width: 50px;
    margin-right: 15px;
}

.ev-dash-box__left .ev-dash-icon {
    background-color: #16eb5a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ev-dash-box__left .ev-dash-icon img {
    width: 33px;
}

.ev-dash-box__right {
    width: calc(100% - 65px);
}

.ev-dash-box__right span {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.ev-dash-box__right h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

.ev-dash-box__right a {
    color: #16eb5a;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}

#profileImage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    font-size: 30px;
    color: #240406;
    text-align: center;
    line-height: 40px;
    font-weight: 600;
    display: inline-block;
}

#profileImage1 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    color: #240406;
    text-align: center;
    line-height: 30px;
    display: inline-block;
    font-weight: 600;
}

/* Summary Cards */
.summary-card {
    background-color:  #0f1c0f  !important;
    color: var(--dark);
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.summary-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.summary-card p {
    color: var(--light);
    font-size: 1.2rem;
}

/* Charts */
.chart-item {
    display: flex;
    flex-direction: column; /* for vertically */
    justify-content: flex-start; 
    align-items: center;
    height: 100%;
    padding: 30px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styling for the chart background */
.chart-item-left, .chart-item-right {
    background-color: #0f1c0f  !important;
    text-align: center;
}

/* Hover effect for chart containers */
.chart-item-left:hover,
.chart-item-right:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

/* line-Canvas styling */
/* .line-canvas {
    max-width: 100%;
    background-color:  #0f1c0f  !important;
    padding: 20px;
    box-shadow: var(--primary);
    margin-top: 20px; 
} */
.line-canvas {
    width: 100%; /* Ensure canvas scales */
    height: auto; /* Maintain aspect ratio */
    background-color: #0f1c0f !important;
    padding: 20px;
    box-shadow: var(--primary);
    margin-top: 20px;
    display: block; 
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .line-canvas {
        padding: 10px; /* Reduce padding to use more space for the chart */
    }
}

/* headings */
h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px; 
}

/* descriptions */
.chart-description {
    font-size: 0.9rem; 
    color: var(--light);
    margin-bottom: 20px; 
}

/* Styl paragraph */
.info {
    font-size: 0.9rem;
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px; /* Round corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info i {
    margin-right: 10px; /* Space between icon and text */
}

/* Addit section */
.additional-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-item i {
    margin-right: 10px;
    color: var(--primary);
}

.info-item span {
    font-size: 0.9rem;
    color: var(--light);
}

/* Responsive */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.2rem; 
    }

    .chart-description {
        font-size: 0.8rem; 
    }

    .info {
        font-size: 0.8rem;
        padding: 12px;
    }

    .info-item span {
        font-size: 0.8rem;
    }
}

/* for Bar Chart Heading */
.bar-heading {
    margin-top: 40px;
    text-align: center;
}

.bar-heading h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.bar-heading i {
    margin-left: 10px;
    color: var(--primary);
}

/* .bar-can {
    display: block;
    max-width: 100%;
    height: auto; 
    background-color: #0f1c0f  !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
} */

.bar-can {
    display: block;
    max-width: 100%; /* Ensure canvas scales */
    height: auto; /* Maintain aspect ratio */
    background-color: #0f1c0f !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .bar-chart-container {
        max-width: 90%; /* Use mobile */
    }
    .bar-can {
        padding: 10px; /* Reduce for more space */
    }
}


/* Responsive for Mobile */
@media (max-width: 768px) {
    .row {
        flex-direction: column; /* items vertically */
        align-items: center;   /* Center items */
    }

    .col-md-6 {
        width: 100%; /* Full width for mobile  */
        padding: 10px; /* space around columns */
    }

    .chart-item {
        margin-bottom: 20px; /* space between stacked items */
    }

    .bar-heading h3 {
        font-size: 1.3rem; /* smaller heading for mobile */
    }

    .bar-can {
        padding: 15px;
        margin-top: 15px;
    }

    .chart-description,
    .info {
        font-size: 0.9rem;
    }

    .additional-info {
        margin-top: 10px;
    }

    .info-item {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center; 
    }

    .info-item i {
        margin-right: 8px;
    }
}


/* Table Heading */
.table-heading {
    margin-top: 40px;  /* space between sections */
    text-align: center;  
}

.table-heading h3 {
    font-size: 1.5rem;  
    color: var(--primary);  
    margin-bottom: 10px;  
}

.table-heading i {
    margin-left: 10px;  /* space between text and icon */
    color: var(--primary); 
}

/* Styling paragraph under the table heading */
.tbl-p {
    font-size: 1rem;  
    color: var(--light);  
    max-width: 80%;  
    margin: 0 auto; 
    line-height: 1.5;  /* spacing between lines text */
    margin-top: 10px;  /* space above paragraph */
}

/* Responsive */
@media (max-width: 768px) {
    .table-heading h3 {
        font-size: 1.3rem;
    }

    .table-heading {
        margin-top: 30px;  /* Reduced margin mobile */
    }

    .tbl-p {
        font-size: 0.9rem;  
        padding: 0 15px;  /* padding sides smaller screens */
    }
}

/* Table Styling */
.table-container {
    background-color: #111e0e!important;
    padding: 30px;  
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  
    margin-top: 20px;
    overflow-x: auto;  /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on mobile */
}

.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #111e0e!important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
}

.table td {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Striped Rows */
.table-striped tbody tr:nth-child(odd) {
    background-color: var(--table-bg);
}

/* Hover effect */
.table-striped tbody tr:hover {
    background-color: rgba(78, 255, 105, 0.1);
    cursor: pointer;
}

/* Sticky Table Header */
.table thead {
    position: sticky;
    top: 0;
    background-color: var(--primary);
    z-index: 1;
}

/* Responsive tbl for Mobile */
@media (max-width: 768px) {
    /* Make table scrollable horizontally */
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Make the table header sticky and visible on scroll */
    .table thead {
        position: sticky;
        top: 0;
        z-index: 2; 
    }

    /* Adjust padding and font size for smaller screens */
    .table th, .table td {
        padding: 8px; 
        font-size: 0.9rem; 
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 20px;
}

.pagination button {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    outline: none;
}

.pagination button:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--light);
}

.pagination button:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Specific styling for Previous and Next buttons */
.btn-prev {
    background-color: var(--light);
    color: var(--dark);
    border-color: var(--dark);
}

.btn-prev:hover {
    background-color: var(--dark);
    color: var(--light);
}

.btn-next {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

.btn-next:hover {
    background-color: var(--dark);
    border-color: var(--dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        gap: 15px; /* Reduce space between buttons for smaller screens */
    }

    .pagination button {
        font-size: 14px; /* Smaller font size for mobile devices */
        padding: 10px 15px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 10px; /* reduce space between buttons small screens */
    }

    .pagination button {
        font-size: 12px;
        padding: 8px 12px; /* padding for very small screens */
    }
}

/*pie heading*/
.pie-heading {
    margin-top: 40px; 
    text-align: center;  
}

.pie-heading h3 {
    font-size: 1.5rem;
    color: var(--primary); 
    margin-bottom: 20px;  /* space below the heading */
}

.pie-heading i {
    margin-left: 10px;  /*  space between text and icon */
    color: var(--primary); 
}

.container {
    padding-top: 20px;  /* space above the chart  */
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .pie-heading h3 {
        font-size: 1.3rem; 
    }

    .pie-heading {
        margin-top: 30px;  /* Reduced margin for mobile */
    }
}

/*other heading*/
.other-heading {
    margin-top: 40px; 
    text-align: center;  
}

.other-heading h3 {
    font-size: 1.5rem;  
    color: var(--primary);  
    margin-bottom: 20px;  /* space below heading */
}

.other-heading i {
    margin-left: 10px; 
    color: var(--primary);
}

/* spacing between the chart containers and the new section */
.container {
    padding-top: 20px;  /*space above the chart containers */
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .other-heading h3 {
        font-size: 1.3rem; 
    }

    .other-heading {
        margin-top: 30px;  /* margin for mobile view */
    }
}

.other-card {
    background-color: #0f1c0f !important;
    color: var(--dark);
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s ease-in-out;
    text-align: center;
    border: 2px solid transparent; /* Default border is transparent */
}

.other-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary); /* Border color changes to primary on hover */
}

.other-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.other-card p {
    color: var(--light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.other-card i {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.other-card:hover i {
    transform: scale(1.2); 
    color: var(--primary); 
}

@media (max-width: 768px) {
    .other-card h2 {
        font-size: 1.3rem; 
    }
    .other-card p {
        font-size: 1rem; 
    }
}

@media (max-width: 1024px) {
    .other-card h2 {
        font-size: 1.4rem; 
    }
    .other-card p {
        font-size: 1.1rem;
    }
}

/* Footer Section */
@media (max-width: 768px) {
    footer {
        padding: 10px !important;
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-content a {
        color: var(--light) !important;
        text-decoration: none !important;
    }
}
