/* General styles */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --dark-dark: #23272b;
    --text-color: #495057;
    --background-color: #fff;
    --border-color: #ced4da;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Sidebar */
#wrapper {
    display: flex;
    flex-direction: row;
}

#sidebar-wrapper {
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--dark-color);
    color: white;
    padding-top: 20px;
    position: fixed;
    top: 108px!important;
    left: 0;
    box-shadow: 2px 0 5px var(--shadow-color);
}

    #sidebar-wrapper .sidebar-heading {
        text-align: center;
        padding: 10px 0;
        font-weight: bold;
    }

    #sidebar-wrapper .list-group-item {
        border: none;
        border-bottom: 1px solid #474f57;
        background-color: var(--dark-color);
        color: white;
        padding: 15px;
        transition: background-color 0.3s ease;
    }

        #sidebar-wrapper .list-group-item:hover {
            background-color: #495057;
            cursor: pointer;
        }

        #sidebar-wrapper .list-group-item.active {
            background-color: var(--primary-dark);
        }

/* Page content */
#page-content-wrapper {
    width: 100%;
    margin-left: 250px;
    padding: 20px;
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    width: 100%;
    background-color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #fff;
        background-color: var(--primary-dark);
    }

.navbar-brand {
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 992px) {
    #sidebar-wrapper {
        width: 200px;
    }

    #page-content-wrapper {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        display: none; /* Hide sidebar on small screens */
    }

    #page-content-wrapper {
        margin-left: 0;
    }

    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
    }
}

/* Table styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: separate;
    border-spacing: 0;
}

    .table th, .table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
        background-color: #fff;
    }

    .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
        background-color: #000; /* Black background */
        color: #fff; /* White text color */
    }


    .table tbody + tbody {
        border-top: 2px solid #dee2e6;
    }

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
    }

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #c82333;
    }

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

    .btn-warning:hover {
        background-color: #e0a800;
        border-color: #e0a800;
    }

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #138496;
    }

.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

    .btn-dark:hover {
        background-color: var(--dark-dark);
        border-color: var(--dark-dark);
    }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Map styles */
#map {
    height: 500px;
    width: 100%;
    margin-bottom: 20px;
}

/* Miscellaneous styles */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

#loading {
    margin-top: 20px;
}

    #loading p {
        font-size: 1.2em;
        color: #333;
    }

/* Card styles */
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background-color: var(--background-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
    margin-bottom: 20px;
}

.card-body {
    flex: 1 1 auto;
    padding: 0.75rem;
}

.card-footer {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* List styles */
#pending-requests-list,
#issue-alerts-list,
#completed-rides-list {
    list-style-type: none;
    padding-left: 0;
}

    #pending-requests-list li,
    #issue-alerts-list li,
    #completed-rides-list li {
        margin-bottom: 10px;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
        border: 1px solid #ddd;
    }

/* Reduce font size for feedback widget */
#feedback-list .list-group-item {
    font-size: 0.9rem; /* Smaller font size for list items */
}

#feedback-summary {
    font-size: 0.9rem; /* Smaller font size for summary */
}

/* Adjust font sizes for Completed and Cancelled Rides widgets */
.card-header .card-title {
    font-size: 1.1rem; /* Slightly smaller font size for card title */
}

#completed-rides-summary, #cancelled-rides-summary {
    font-size: 0.875rem; /* Smaller font size for summary */
}

/* Style for loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Style for legend */
.info.legend {
    background: white;
    line-height: 1.5;
    padding: 6px 8px;
    font-size: 12px;
}

    .info.legend i {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        float: left;
        opacity: 0.7;
    }

/* Add the following CSS to your existing stylesheet to adjust padding, margin, and other visual aspects */
.card {
    border-radius: 15px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#map {
    border-radius: 15px;
}

.chart-container {
    margin-top: 30px;
}

/* Custom notification popup */
#notificationPopup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dc3545; /* Red color for error notifications */
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1050; /* Ensure it's on top of other content */
}
/* custom.css */

.card {
    border-radius: .25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
}

.card-text {
    font-size: 2rem;
    font-weight: bold;
}
/* Custom width for Active Rides Widget */
.custom-width {
    width: 0%; /* Adjust width on large screens */
}

@media (max-width: 992px) {
    .custom-width {
        width: 90%; /* Adjust width on medium screens */
    }
}

@media (max-width: 768px) {
    .custom-width {
        width: 100%; /* Full width on small screens */
    }
}
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 22% !important; /* Adjust the percentage as needed */
        max-width: 23% !important; /* Adjust the percentage as needed */
    }
}

/* Adjust columns: 2 on small, 3 on medium, 4 on large, 5 on extra-large screens */
@media (min-width: 576px) {
    .col-custom {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (min-width: 768px) {
    .col-custom {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (min-width: 992px) {
    .col-custom {
        flex: 1 1 calc(25% - 20px);
    }
}

@media (min-width: 1200px) {
    .col-custom {
        flex: 1 1 calc(20% - 20px);
    }
}
/* Responsive adjustments for masonry */
@media (max-width: 992px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry {
        column-count: 1;
    }
}


<link rel="stylesheet" href="~/css/bootstrap.min.css" >
<link rel="stylesheet" href="~/css/custom.css" >
/* External CSS Links */
@import url('https://unpkg.com/leaflet/dist/leaflet.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.0/font/bootstrap-icons.min.css');
