/* Dark Mode Sidebar */
[data-bs-theme="dark"] .sidebar {
    background-color: #343a40;
    color: #f8f9fa;
    border-right: 1px solid #555;
}

[data-bs-theme="dark"] .breadcrumb {
    background-color: #343a40;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .breadcrumb a {
    color: #f8f9fa;
}
/* Dark Mode Sidebar Navigation */
[data-bs-theme="dark"] .sidebar .nav-link {
    color: #ffff;
}

[data-bs-theme="dark"] .sidebar .nav-link:hover, [data-bs-theme="dark"] .sidebar .nav-link.active {
    background-color: #25aae1;
    color: #ffffff;
}

[data-bs-theme="dark"] .sidebar .submenu .nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .sidebar .submenu .nav-link:hover {
    background-color: #555;
}

/* Dark Mode Main Content */
[data-bs-theme="dark"] .main-content {
    background-color: #212529;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
}

p {
    font-family: "Open Sans", sans-serif;
}

/* Sidebar */
.sidebar {
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
    border-right: 1px solid #ddd;
    min-height: 50vh;
    left: -250px;
}

/* Submenu */
.sidebar .submenu {
    display: none;
    padding-left: 15px;
}

/* Correct selector targeting both classes on the same <p> element */
.card-text.display-2 {
    color: rgb(245, 161, 51);  /* Setting the color to your desired RGB */
    font-weight: bold;         /* Example: Make the text bold */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: color 0.4s ease-in-out;
}

/* Example of hover effect */
.card-text.display-2:hover {
    color: rgb(255, 100, 0);  /* Change color when hovered */
    transform: scale(1.05);   /* Slightly enlarge when hovered */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5); /* Enhance shadow on hover */
}


.sidebar .submenu.show {
    display: block; /* Ensure submenu displays when toggled */
}

.sidebar .submenu .nav-link {
    padding: 5px 10px;
    font-size: 0.9rem;
    color: #dfe6e9;
}

.sidebar .submenu .nav-link:hover {
    background-color: #f5a133;
    border-radius: 2px;
}

/* Sidebar Navigation Links */
.sidebar .nav-link {
    color: inherit;
    padding: 10px;
    font-size: 16px;
    font-weight: normal;
    transition: background-color 0.3s, color 0.3s;
}

/* Bold and different color for active link */
.sidebar .nav-link.active.overview {
    font-weight: bold; /* Only bold for active link */
    color: #000; /* You can change this color as needed */
}

.sidebar{
    background-color: #25aae1;
    color: #fff;
    border-radius: 10px;
}
.sidebar-cont1{
    padding: 10px;
}
.sidebar-cont{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/* Main Content */
.main-content {
    padding: 20px;
    background-color: #fff;
}

/* Dashboard Cards */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card .card-text {
    font-size: 36px;
    font-weight: 700;
}

/* Dark Mode Cards */
[data-bs-theme="dark"] .card {
    background-color: #343a40;
    color: #f8f9fa;
}

/* Recent Activities Section */
.card ul {
    padding-left: 20px;
    list-style: disc;
}

.card ul li {
    margin-bottom: 10px;
    font-size: 16px;
}
.wide-card {
    max-width: 35rem;
    max-height: 35rem;
}

/* General styling for breadcrumb */
.breadcrumb {
    display: flex; /* Align items in a row */
    list-style: none; /* Remove default list styling */
    padding: 5px; /* Remove padding */
    margin: 5px; /* Remove margin */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Styling for breadcrumb items */
.breadcrumb-item {
    margin-right: 10px; /* Space between items */
    position: relative; /* For positioning the underline */
}

/* Styling for links */
.breadcrumb-item a {
    color: inherit; /* Keep the color same as the text */
    text-decoration: none; /* Remove default underline */
    font-weight: normal; /* Normal font-weight */
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

/* Active breadcrumb styling */
.breadcrumb-item.active {
    font-weight: bold; /* Make active item bold */
}

/* Underline effect for the active item */
.breadcrumb-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Position the underline */
    left: 0;
    width: 100%; /* Full width of the item */
    height: 2px; /* Height of the underline */
    background-color: green; /* Color of the underline */
}

/* Optional: Add hover effect for other breadcrumb links */
.breadcrumb-item a:hover {
    color: rgb(45, 140, 90); /* Change color on hover */
}

.toggle-btn {
    display: none;
    background-color: #ffff;
    font-size: 24px;
    left: 0;
    padding: 10px 15px;
    position: absolute;
    cursor: pointer;
    position: sticky;
}

.flowing-notice {
    display: block;
    width: 100vw;  /* Full width of the viewport */
    background-color: #f5a133;
    color: #333;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 15px;
    position: relative; 
}

/* Notice Content that scrolls */
.flowing-content {
    display: inline-block;
    padding-left: 50%;  /* Starts the scrolling from outside the viewport */
    animation: scroll-continuous 18s linear infinite; 
}
.flowing-content::after {
    content: attr(data-text);  /* Duplicate the content */
    padding-left: 50%;  /* Space between the original and the duplicate */
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);  /* Start at the right of the screen */
    }
    100% {
        transform: translateX(-100%); /* End off the left of the screen */
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 5, 0.7);
    z-index: 1050;
}

/* Outer container that applies the gradient border and border-radius */
.modal-outer-border {
    position: relative;
    margin: 20px auto;
    padding: 3px;
    width: 80%;
    max-width: 600px;
    background: linear-gradient(to right, #00a651, #F5a133, #25aae1); /* The stripes for Maseno brand */
    border-radius: 15px; /* Rounded corners for the "border" */
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px; /* Inner content with rounded corners */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
    font-family: 'Georgia', serif; /* Book-style font */
    line-height: 1.6; /* Space between lines like in a book */
}

/* Paragraph styling */
.modal-content p {
    margin: 20px 40px;
    border-left: 2px solid #ddd; /* Left margin line to simulate a book */
    padding-left: 15px; /* Space between line and text */
    font-size: 18px;
    text-align: justify;
}

/* Button styling */
#declare-button {
    background-color: #00a651; /* Green color from Maseno brand */
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

#declare-button:hover {
    background-color: #007d40; /* Slightly darker green on hover */
}

/* Close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Dark Mode Modal */
[data-bs-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background for the overlay */
}

[data-bs-theme="dark"] .modal-outer-border {
    background: linear-gradient(to right, #00a651, #F5a133, #25aae1); /* Keep the same gradient in dark mode */
}

[data-bs-theme="dark"] .modal-content {
    background-color: #222; /* Dark background for the modal itself */
    color: #fff; /* White text for contrast */
    border-radius: 10px; /* Rounded corners for the content */
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.2); /* White shadow for depth */
}

[data-bs-theme="dark"] .modal-content p {
    border-left: 2px solid #555; /* Light gray line to simulate a book's margin */
}

/* Close button for dark mode */
[data-bs-theme="dark"] .close-button {
    color: #fff; /* White for visibility */
}

[data-bs-theme="dark"] #declare-button {
    background-color: #00a651;
    color: white;
}



@keyframes scroll-left {
    0% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    .toggle-btn {
        display: block;
    }
    .sidebar{
        display: none;
    }
    .sidebar.show{
        display: block;
    }

    .sidebar .nav-link {
        padding: 8px;
        font-size: 14px;
    }

    .card .card-title {
        font-size: 16px;
    }

    .card .card-text {
        font-size: 28px;
    }
}
