main.content
/* Dark Mode */
body.dark h1, body.dark .support a, p {color: #fff;}
.dark div {
    background: #000;
}
.col-md-4 {
    width: 33% !important;
}
.checkbox {
  opacity: 0;
  position: absolute;
}
button.btn {
    background: #000;
    color: #fff;
}
button.btn:hover {
    background: #292929;
    color: #fff;
}
thead tr {
    background: #f5f5f5;
}
.user-table th, .user-table td {
    font-size: 16px;
    white-space: nowrap;
    padding: 15px;
}
tr:nth-child(even) {
    background: #f5f5f5;
}
.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {color: #f1c40f;}

.fa-sun {color: #f39c12;}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}
li.list-group-item a {
    text-decoration: none;
    color: #000;
}
li.list-group-item {
    background: #fff0;
}
.dark ul.list-group li a {
    color: #fff;
}
.ml-1 {
    margin-left: 7px;
}

/* .......................fresh */

/* Default Light Mode */
body {
    background-color: #fff;
    color: #000;
    transition: all 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark {
    background-color: #121212;
    color: #ffffff;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.theme-toggle label {
    cursor: pointer;
}
.dark .content p {
    font-size: 18px;
    color: #ffffff;
}



/* Media Queries */
@media screen and (max-width: 768px) {
    
    .login-container {
        padding: 20px;
    }

    .login-form {
        padding: 20px;
        width: 100%;
    }

    .sidebar {
        width: 200px;
    }

    .content {
        padding: 10px;
    }

}

/* General Page Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4; /* Light Gray background for the entire page */
    color: #333; /* Dark Gray text color for readability */
    margin: 0;
    padding: 0;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff; /* White background for dashboard */
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #f9f9f9; /* Light Gray for the sidebar */
    color: #333; /* Dark text color */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for the sidebar */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0; /* Ensure sidebar stretches vertically */
    z-index: 10; /* Sidebar should stay on top */
    overflow-y: auto;
}

/* Sidebar Links */
.sidebar a {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    display: block;
    transition: background-color 0.3s ease;
}

.sidebar li:hover {
    background-color: #eceaea; /* Blue background on hover */
    color: #000; /* White text when hovered */
}

.sidebar .logo {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 30px;
}

nav.sidebar ul {
    list-style: none;
    padding-left: 10px;
}
.dark a.btn {
    background: #ffffff;
    border: 5px solid #f9f9f9;
    Color:#000;
}
.row.mt-4 {
    display: inline-block;
}

.col-md-4 {
    display: inline-block;
}

main.content h1 {
    text-transform: capitalize;
}

td a {
    padding: 10px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

table {
    border: 1px solid #f4f4f4;
    margin-top: 20px;
}

nav.sidebar ul li:before {
    content: '';
    height: 7px;
    width: 7px;
    position: absolute;
    border: 2px solid #000;
    border-left: none;
    border-bottom: none;
    rotate: 45deg;
    top: 21px;
    left: 0;
}
nav.sidebar ul li {
    position: relative;
    padding-left: 20px;
}

/* Main Content Styling */
.main-content {
    margin-left: 250px; /* Adjust for sidebar width */
    padding: 30px;
    background-color: #fff; /* White background for main content */
    flex-grow: 1;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow around main content */
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: calc(100vh - 60px); /* Ensure content doesn't overflow the viewport */
    z-index: 1; /* Ensure the main content is below the sidebar */
    transition: margin-left 0.3s ease; /* Smooth transition when sidebar is toggled (if any) */
}

/* Page Title */
h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Table Styles */
.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Light border for table rows */
}

.table th {
    background-color: #f9f9f9; /* Light Gray background for table headers */
    color: #333;
    font-weight: bold;
}

.table td {
    color: #555;
}

.table tbody tr:hover {
    background-color: #f0f0f0; /* Light gray hover effect */
}

/* Search Bar */
.input-group {
    margin-bottom: 20px;
}

.form-control, .form-select {
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    height: 52px;
    width: 52px;
    text-align: center;
    line-height: 40px;
    border-radius: 50px;
    background: #e6e6e6;
    padding: 3px;
    box-shadow: 0px 0px 10px 0px #0001;
}
link {
    border-radius: 50px;
}
.sidebar-header {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
}

.sidebar-header img {
    max-width: 30px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker gray on hover */
}

.add-user a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    display: inline-block;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.add-user a:hover {
    background-color: #0056b3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-item.disabled a {
    color: #ccc; /* Gray color for disabled pagination items */
    cursor: not-allowed;
}

.page-link {
    color: #007bff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
}

/* Actions Buttons */
.btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333; /* Darker red on hover */
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

main.content {
    width: calc(100% - 250px);
    overflow-y: scroll;
    overflow-x: scroll;
    padding: 20px;
    border: 1px solid #f5f5f5;
    margin: 20px 20px 20px 300px;
    max-height: 95vh;
}


/*

main.content::-webkit-scrollbar {
  width: 12px;               
}

main.content::-webkit-scrollbar-track {
  background: orange;        
}

main.content::-webkit-scrollbar-thumb {background-color: blue;    
  border-radius: 20px;       
  border: 3px solid orange;  
  
}
 */


.btn {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: #000;
    color: #fff;
    border: 3px solid #000;
}

th, td {
    font-size: 16px;
    white-space: nowrap;
}

footer {
    text-align: center;
}

/* Login Container Styling */
.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 20px auto;
    text-align: center;
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.input-field:focus {
    border-color: #0066cc;
    outline: none;
}

/* Error Message Styling */
.error {
    color: #d9534f;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Login Button */
.btn {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

a {
    text-decoration: none;
}

.ml-1 {
    margin: 0 5px;
}

.search {
    margin: 0;
}
.profile-container {
    text-align: center;
    margin-bottom: 20px;
}
.profile-photo {
    margin-bottom: 10px;
}
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
}
input[type="file"] {
    margin-bottom: 10px;
}
 
body.dark div, body.dark nav, body.dark table {
    background: #000 !important;
    color: #fff !important;
}

.dark tr:nth-child(even) {
    background: #1c1c1c !important;
}

.dark .table>:not(caption)>*>* {
    padding: .5rem .5rem;
    color: #fff;
    background-color: transparent;
    border-bottom-width: var(--bs-border-width);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
.dark thead tr {
    background: #1c1c1c;
}
.dark thead tr th {
    color: #fff !important;
}
.dark .table tbody tr:hover {
    background-color: #353535;
}
.dark .sidebar a {
    color: #ffffff;
}

.dark .sidebar li:hover a {
    color: #000;
}
.dark ul.pagination li a {
    background: #111 !important;
    border-color: #111 !important;
}
/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        margin-bottom: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
        max-height: calc(100vh - 120px); /* Adjust for smaller screen layout (sidebar height) */
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        max-height: calc(100vh - 100px); /* Adjust for smaller screens */
    }
}
