/* Custom CSS */

/* Define color variables */
:root {
    --primary-color: #8f78dd;
    --primary-dark: #4a3494;
    --primary-light: #beaef5;
    --dark: #18131a;
    --dark-opacity-5: rgba(24, 19, 26, 0.5);
    --gray-color: #6b6b6b;
    --light-gray-color: #f9f9f9;
    --black: #212529;
    --white: #ffffff;
    --text-black: #212529;
    --text-gray: #414141;

    --card-gradient-1: linear-gradient(170deg, #01e4f8 0%, #1d3ede 100%);
    --card-gradient-2: linear-gradient(170deg, #b4ec51 0%, #429321 100%);
    --card-gradient-3: linear-gradient(170deg, #c86dd7 0%, #3023ae 100%);

    --header-height: 3rem;
    --nav-width: 68px;
    --first-color: #4723d9;
    --first-color-light: #afa5d9;
    --white-color: #f7f6fb;
    --body-font: "Nunito", sans-serif;
    --normal-font-size: 0.9rem;
    ;
    --z-fixed: 100;
}

/* This file is to add custom css for FRONTEND of this website */

body {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    ;
    overflow-x: hidden;
    background-color: var(--dark) !important;
    color: var(--white) !important;
}

.body-pd {
    padding-left: 18rem;
}

section {
    padding: 1rem 0 2rem;
}

/* Generic CSS */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: capitalize;
    margin-bottom: 0;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    line-height: 3rem;
}

.h6,
h6 {
    font-size: 0.85rem;
}

p {
    font-size: 0.9rem;
    ;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--white);
    -webkit-transition: all 350ms ease-in-out;
    -o-transition: all 350ms ease-in-out;
    transition: all 350ms ease-in-out;
    font-size: 0.9rem;
    ;
}

a:hover {
    color: var(--primary-color);
}

.alert li {
    list-style-type: none;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
    color: var(--white);
}

.bg-transparent {
    background-color: transparent !important;
}

.bg-white-opacity-1 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-black {
    color: var(--black) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

.icon i {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

/* Card CSS */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 10px;
}

/* Buttons */

.btn {
    /* font-size: 0.9rem;; */
    /* font-weight: 600; */
    /* padding: .8rem 1.5rem; */
    /* border-radius: 5px; */
    -webkit-transition: all 350ms ease-in-out;
    -o-transition: all 350ms ease-in-out;
    transition: all 350ms ease-in-out;
    border: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-primary-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
}

.dropdown-toggle::after {
    display: none;
}

/* Sidebar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.header .header_toggle {
    cursor: pointer;
}

.header.toggle {
    margin-left: 18rem;
}

.sidebar {
    position: fixed;
    margin: 1rem;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    left: 0;
    border-radius: 10px;
    height: 100%;
    display: none;
    z-index: var(--z-fixed);
    transition: all 0.5s ease;
}

.sidebar.show {
    width: 16rem;
    display: block;
    transition: all 0.5s ease;
}

.sidebar .nav {
    padding: 1rem;
    width: 100%;
}

.sidebar .nav .nav_logo {
    margin-bottom: 2rem;
    text-align: center;
    width: inherit;
}

.sidebar .nav .nav_list {
    display: grid;
    width: inherit;
}

.sidebar .nav .nav_list .nav_item {
    margin-bottom: 0.6rem;
    padding: 0.7rem;
    color: var(--white);
}

.sidebar .nav .nav_list .nav_item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar .nav .nav_list .nav_item .nav_icon {
    padding-right: 0.5rem;
}

.sidebar .nav .nav_list .nav-link {
    color: #fff;
}

.sidebar .nav .nav_list .nav-link.active {
    color: var(--primary-color);
}

.sidebar .nav .nav_list .nav-link:hover {
    color: var(--primary-color);
}

/* shared rides  */
.shared-card {
    background-color: rgba(255, 255, 255, 0.07);
    border: none;
}

.table-section {
    display: none;
}

.active-table {
    display: block;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.driver-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tab-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 25px;
    padding: 6px 34px;
    margin-right: 5px;
    color: rgba(255, 255, 255, 1);
}

.tab-btn.active {
    background-color: rgba(143, 120, 221, 1);
}

/* .shared-card .btn {
    background-color: #3d3d6b;
} */

.btn-cancel {
    color: #ff4d4d;
    border: none;
}

.map-img {
    width: 100%;
    height: 200px;
    background-color: #333;
}

.payment-icon {
    width: 20px;
}

.action-buttons button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 20px;
    margin-right: 5px;
    font-size: 15px;
}

.ongoing-card {
    background-color: rgba(255, 255, 255, 0.03);
}

.border-right {
    border-right: 1px solid #ffffff;
    /* White border */
}

.form-section {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    /* Lighter placeholder text */
}

.form-section h5 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.upload-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    ;
}

.upload-doc {
    display: inline-block;
    background-color: transparent;
    color: #aaa;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
    font-size: 0.875rem;
}

.form-section input,
.form-section input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    /* Dark background */
    color: #fff;
    /* White text */
    border: none;
    outline: none;
    /* Remove default browser outline on focus */
}

.form-section select,
.form-section select option {
    background-color: rgba(255,
            255,
            255,
            0.1);
    /* Dark background for select and options */
    color: #fff;
    /* White text */
    border: none;
}

.form-section select:focus {
    outline: none;
    /* Remove default focus outline */
}

.form-section select option {
    background-color: rgba(0,
            0,
            0,
            0.9);
    /* Darker background for dropdown options */
    color: #fff;
    /* White text for options */
}

/* wallet form image  */

.upload-image-box-wallet {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    ;
    cursor: pointer;
}

/* Wallet Custom styles */
.balance-card {
    background-color: #1c1b29;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.balance-card .balance-amount {
    font-size: 2rem;
    font-weight: bold;
}

.wallet-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.btn-withdraw {
    background-color: #4d7cff;
    color: white;
    border-radius: 10px;
    padding: 6px 34px;
    border: none;
}

.btn-withdraw:hover {
    background-color: #365dcc;
}

/* Custom styles for a more professional dark mode table */
.table-custom {
    color: #fff;
    background-color: #1c1c1e;
    border-radius: 10px;
    overflow: hidden;
}

.table-custom thead {
    background-color: #333;
    border-bottom: 2px solid #484848;
}

.table-custom thead th {
    color: #bfbfbf;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
}

.table-custom tbody tr {
    transition: background-color 0.3s ease;
}

.table-custom tbody tr:hover {
    background-color: #484848;
}

.table-custom tbody td {
    border-top: 1px solid #484848;
    vertical-align: middle;
}

.table-custom tbody td a.btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    ;
}

/* Add slight padding around the table */
.table-container {
    padding: 15px;
    border-radius: 10px;
    background-color: #2c2c2e;
}

.location-details p {
    font-size: 10px;
}

/* {{-- vertical dashed line --}} */

.dashed-line {
    border-left: 1px dashed #fff;
    height: 40px;
    margin: 2px 2px;
}

/* Summernote */
/* Style for the Summernote toolbar (header) */
.note-toolbar {
    background-color: rgba(77, 68, 68, 0.7) !important;
    /* Header background color */
}

.note-toolbar .note-btn {
    color: rgb(61, 52, 52) !important;
    /* Header text color */
}

/* Style for the Summernote editor body */
.note-editable {
    color: rgb(211, 200, 200) !important;
    /* Body text color */
    background-color: rgba(77, 68, 68, 0.7) !important;
    /* Body background color */
}

#side-bar {
    position: fixed;
    /* Keeps the sidebar fixed on the screen */
    top: 0;
    left: 0;
    width: 250px;
    /* Adjust width as per your requirement */
    height: 100vh;
    /* Occupies the full height of the viewport */
    overflow-y: auto;
    /* Adds vertical scrolling if content overflows */
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
    /* Sidebar background color */
    /* Text color */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    /* Optional shadow for design */
}

.nav {
    display: flex;
    padding: 20px;
}

.nav_list {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.nav_item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.nav_item:hover,
.nav_item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav_icon {
    margin-right: 10px;
}

@media (max-width: 768px) {
    #side-bar {
        width: 200px;
        /* Adjust sidebar width */
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        /* Hide the sidebar initially */
    }

    #side-bar.show {
        transform: translateX(0);
        /* Show sidebar when toggled */
    }
}