/* ############################### General ################################# */

/* Color Palette */
:root {
    --primary-color: #007bff;
    /* Blue for buttons, links, highlights */
    --secondary-color: #6c757d;
    /* Light grey background */
    --text-color: #333;
    /* Dark text for readability */
    --muted-color: #777;
    /* Muted text color */
    --light-bg-color: #f4f4f4;
    --light-content-color: #fff;
    /* Pure white background for cards, sections */
    --border-color: #e1e1e1;
    /* Light border color for subtle division */
}

/* Body */
body {
    background-color: var(--light-bg-color);
    /* Apply general background color */
    color: var(--text-color);
    /* Default text color */
    font-family: 'Roboto', sans-serif;
    /* Global font for the site */
    line-height: 1.6;
    /* Slightly increased line height for readability */
    margin: 0;
    padding: 0;
}

/* Headers */
h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    /* Ensure headers use the same font */
    font-weight: 600;
    color: var(--text-color);
    /* Dark text for headers */
}

/* Paragraph Text */
p {
    font-size: 1rem;
    color: var(--muted-color);
    /* Slightly muted text */
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-color);
    /* Darker color on hover */
    text-decoration: none;
}

/* Buttons */
button,
.btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-bg-color);
}

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

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-bg-color);
}

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

/* Input Fields */
input,
textarea {
    font-size: 1rem;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Default padding for larger screens (desktops) */
.container1 {
    padding: 12px 30px;
    background-color: transparent;
}

.container2 {
    padding: 12px 30px;
    background-color: #ffffff;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {

    .container1,
    .container2 {
        padding: 12px 25px;
    }
}

/* Small screens (portrait tablets and below) */
@media (max-width: 768px) {

    .container1,
    .container2 {
        padding: 12px 20px;
    }
}

/* Extra Small screens (mobile devices in landscape mode) */
@media (max-width: 600px) {

    .container1,
    .container2 {
        padding: 12px 18px;
    }
}

/* Very Small screens (mobile devices in portrait mode) */
@media (max-width: 480px) {

    .container1,
    .container2 {
        padding: 12px 15px;
    }
}

/* Ultra Small screens (small mobile phones) */
@media (max-width: 320px) {

    .container1,
    .container2 {
        padding: 10px 10px;
    }
}

/* ############################### Breakers ################################# */

/* Breaker: Zig-Zag Shape connecting the sections */
.breaker11 {
    width: 100%;
    height: 30px;
    /* Height of the breaker */
    position: relative;
    background-color: transparent;
    /* No solid background */
}

/* Reverse Zig-Zag pattern (3 peaks and valleys) */
.breaker11::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* Match the background color of the next section */
    clip-path: polygon(0% 100%, 25% 0%, 50% 100%, 75% 0%, 100% 100%);
    /* Creates a reversed zig-zag pattern with valleys first, 3 points */
}

/* Breaker: Zig-Zag Shape connecting the sections */
.breaker21 {
    width: 100%;
    height: 30px;
    /* Height of the breaker */
    position: relative;
    background-color: transparent;
    /* No solid background */
}

/* Reversed Zig-Zag pattern (3 peaks first) */
.breaker21::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* Match the background color of the next section */
    clip-path: polygon(0% 0%, 25% 100%, 50% 0%, 75% 100%, 100% 0%);
    /* Creates a zig-zag pattern with peaks first */
}


/* Breaker: Zig-Zag Shape connecting the sections */
.breaker31 {
    width: 100%;
    height: 60px;
    /* Height of the breaker */
    position: relative;
    background-color: transparent;
    /* No solid background */
}

/* Reverse Zig-Zag pattern (3 peaks and valleys) */
.breaker31::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e2e2;
    /* Match the background color of the next section */
    clip-path: polygon(0% 100%, 25% 0%, 50% 100%, 75% 0%, 100% 100%);
    /* Creates a reversed zig-zag pattern with valleys first, 3 points */
}

/* Breaker: Zig-Zag Shape connecting the sections */
.breaker41 {
    width: 100%;
    height: 60px;
    /* Height of the breaker */
    position: relative;
    background-color: #fff;
    /* No solid background */
}

/* Reverse Zig-Zag pattern (3 peaks and valleys) */
.breaker41::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e2e2;
    /* Match the background color of the next section */
    clip-path: polygon(0% 100%, 25% 0%, 50% 100%, 75% 0%, 100% 100%);
    /* Creates a reversed zig-zag pattern with valleys first, 3 points */
}

/* Extra Small screens (mobile devices in landscape mode) */
@media (max-width: 600px) {

    .breaker11,
    .breaker21 {
        height: 20px;
    }

    .breaker31,
    .breaker41 {
        height: 30px;
    }
}

/* Very Small screens (mobile devices in portrait mode) */
@media (max-width: 480px) {

    .breaker11,
    .breaker21 {
        height: 20px;
    }

    .breaker31,
    .breaker41 {
        height: 30px;
    }
}

/* ############################### Bootstrap Overwrite #################################
*/

.icon-box,
.card {
    border: 1px solid #f4f4f4;
    box-shadow: 0px 0px 15px #cccccc !important;
    transition: transform 0.3s ease;
    /* Smooth transition for the transform property */
}

.icon-box:hover,
.card:hover {
    transform: scale(1.04);
    /* Zoom in by 10% on hover */
}

.list-group .list-group-item {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    margin-bottom: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* Adding smooth transitions */
}

.list-group .list-group-item:hover {
    background-color: #f8f9fa;
    /* Light background color on hover */
    transform: scale(1.03);
    /* Slight zoom effect on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Adding a subtle shadow for a lift effect */
}

/* ############################### Navbar #################################
*/

/* Navbar Style */
.navbar {
    background-color: #e2e2e2;
    /* Subtle border at the bottom */
    padding: 0.2rem 1rem;
    box-shadow: 0px 2px 10px #cfcfcfa3;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d7d7d7;
    /* Smooth transition */
}

.navbar-light .navbar-brand {
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-light .navbar-brand img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 16px;
    text-transform: capitalize;
    text-align: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
}


/* Active Navigation Link */
.navbar-light .navbar-nav .nav-link.active {
    color: #007bff !important;
    font-weight: bold;
}

/* Dropdown menu styling */
.navbar-light .navbar-nav .dropdown-menu {
    background-color: var(--light-content-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .dropdown-menu .dropdown-item {
    color: #333;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.3s ease;
}

/* Profile Image and Dropdown */
.navbar-light .navbar-nav .nav-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

#loginButton {
    margin-top: 6px;
}

/* Enhanced Login Button Design */
#loginButton button {
    padding: 5px 20px;
    color: white;
    background-color: rgb(0, 113, 15);
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#loginButton button:hover {
    background-color: rgb(0, 159, 21);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#loginButton button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 159, 21, 0.6);
}

/* Google Login Button */
.google-login {
    background-color: #db4437;
    /* Google red */
    color: white;
    padding: 4px 25px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    width: 80%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

/* Hover state for Google Login */
.google-login:hover {
    background-color: #c1351d;
    color: white;
    border-color: #b23e1e;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Focus state for Google Login */
.google-login:focus {
    outline: none;
    border-color: #ff7f50;
    /* Light orange focus border */
    box-shadow: 0 0 0 4px rgba(219, 68, 55, 0.5);
    /* Soft red Google focus glow */
}

/* Icon inside Google Login button */
.google-login i {
    margin-right: 12px;
    font-size: 20px;
}

/* Theme Toggle Button */
#theme-toggle {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

#theme-toggle:hover {
    color: #007bff;
}

/* Additional Navbar Styles */
.navbar-nav .nav-item .nav-link {
    font-size: 16px;
}

@media (max-width: 991px) {
    .navbar-nav .nav-item .nav-link {
        font-size: 14px;
    }

    .navbar-toggler {
        border: 1px solid #c9c9c9;
        padding: 2px 2px;
        font-size: 1.2rem;

    }

    .navbar-toggler:hover {
        background-color: white;
        color: rgb(2, 172, 61);
    }

    #loginButton button {
        width: 60%;
    }

    #loginButton {
        margin-left: 30%;
        margin-bottom: 10px;
    }

    .google-login {
        width: 60%;
        margin-left: 0;
    }

    /* Dropdown menu styling */
    .navbar-light .navbar-nav .dropdown-menu {
        width: 40%;
        margin-left: 30%;
    }
}

@media (max-width: 540px) {

    /* Dropdown menu styling */
    .navbar-light .navbar-nav .dropdown-menu {
        width: 60%;
        margin-left: 20%;
    }
}

/* ############################### Sidebar #################################
*/

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding-top: 54px;
    background-color: #e2e2e2 !important;
    z-index: 1050;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 2px 76px 10px #cfcfcf6b;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 74px;
    /* Start the border 70px from the top */
    right: 0;
    /* Place the border on the right edge */
    height: calc(100% - 74px);
    /* Border height starting 70px down */
    width: 1px;
    background-color: #d7d7d7;
}

.sidebar.show::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

/* Sidebar link styles */
.sidebar .nav-link {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 12px;
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    height: 40px;
    width: 100%;
}

/* Styles for sidebar links on hover */
.sidebar .nav-link:hover {
    background-color: #dcdcdc;
    color: #333;
    cursor: pointer;
}

/* Sidebar link icon styles */
.sidebar .nav-link i {
    display: inline-block;
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    margin-right: 10px;
    transition: margin 0.3s ease;
}

/* Text styling for links */
.sidebar .nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    line-height: 20px;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 35px;
    visibility: visible;
    margin-left: 10px;
}

/* Hide text in collapsed state */
.sidebar.collapsed .nav-link span {
    display: none;
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 65px;
}

/* Main content adjustment when sidebar is collapsed */
#main-content {
    transition: margin-left 0.3s ease-in-out;
    margin-top: 55px;
}

/* Navbar adjustment for collapsed sidebar */
.navbar,
#main-content,
footer {
    margin-left: 65px;
}

/* Dropdown adjustments */
.sidebar .nav-item.dropdown {
    position: relative;
}

/* Ensure dropdown-toggle button is aligned correctly */
.sidebar .nav-link.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Dropdown custom styles */
.sidebar .dropdown-menu {
    position: fixed;
    /* Higher than sidebar */
    min-width: 200px;
    /* Ensure dropdown is wide enough */
    left: 260px;
    /* Offset to pop out from the sidebar */
    top: auto;
}

.sidebar .dropdown-menu .dropdown-item {
    padding: 0.75rem 1.25rem;
}

/* Adjust dropdown position when sidebar is collapsed */
.sidebar.collapsed .dropdown-menu {
    left: 65px !important;
    /* Align the dropdown to the right of the collapsed sidebar */
    min-width: 200px;
}

.sidebar.show .dropdown-menu {
    left: 40px !important;
}


#sidebarToggler {
    position: fixed;
    top: 12px;
    left: 18px;
    z-index: 1100;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
    padding: 8px;
    background-color: transparent;
    border: 1px solid rgba(162, 162, 162, 0.35);
    cursor: pointer;
    transition: left 0.3s ease, transform 0.3s ease;
    /* Smooth transition */
}

.sidebar.show #sidebarToggler {
    left: 200px;
}

/* Sidebar Expanded State */
.sidebar.show #sidebarToggler {
    left: 80%;
    /* Adjust to match expanded sidebar width */
    transform: rotate(180deg);
    /* Rotate arrow */
}

#sidebarToggler:hover {
    background-color: white;
    color: rgb(2, 172, 61);
}

.sidebar #sidebar-home,
.sidebar #sidebar-profile,
.sidebar #sidebar-contact,
.sidebar #sidebar-about {
    display: none;

}

.sidebar #sidebarNavbrand {
    display: none;
    transition: left 0.3s ease, transform 0.3s ease;
}

.sidebar #sidebarNavbrand span {
    font-size: 1.3rem;
}

.sidebar.show #sidebarNavbrand {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
}


.sidebar .nav-link.active {
    color: #007bff !important;
    font-weight: bold;
}

@media (max-width: 991px) {

    .sidebar #sidebar-home,
    .sidebar #sidebar-profile,
    .sidebar #sidebar-contact,
    .sidebar #sidebar-about {
        display: block;
    }

    .sidebar #sidebar-profile {
        margin-left: -3px;
    }
}

/* Show dropdown within main content on smaller screens or collapsed sidebar */
@media (max-width: 768px) {

    /* Mobile view - full-width sidebar with content underneath */
    .sidebar {
        width: 50%;
    }

    .sidebar.collapsed {
        width: 45px;
        height: 0;
        padding: 0;
    }

    .sidebar.collapsed .list-unstyled {
        display: none;
    }

    .sidebar .nav-link {
        padding: 12px 14px;
    }

    .sidebar .nav-link i {
        font-size: 1rem;
    }

    /* Navbar adjustment for collapsed sidebar */
    .navbar,
    #main-content,
    footer {
        margin-left: 0;
    }

    /* Allow the dropdown to show inside the main content when sidebar is collapsed */
    .sidebar.collapsed .dropdown-menu {
        position: absolute;
        top: 0;
        left: 45px !important;
        min-width: 200px;
    }

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

    .sidebar.show #sidebarToggler {
        left: 82%;
    }
}

/* Show dropdown within main content on smaller screens or collapsed sidebar */
@media (max-width: 480px) {
    .sidebar {
        width: 70%;
    }
}

/* ############################### Footer #################################
*/


/* Footer Styles */
footer {
    background-color: #e2e2e2;
    /* Subtle border at the top */
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: #333;
    font-size: 14px;
}

footer h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

footer p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

footer a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff;
    /* Light blue hover effect */
}

footer .social-icons i {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

footer .social-icons i:hover {
    color: #007bff;
    /* Light blue for hover on social media icons */
}

/* Mobile-friendly Adjustments */
@media (max-width: 768px) {
    footer h5 {
        font-size: 16px;
    }

    footer p {
        font-size: 13px;
    }

    footer .social-icons i {
        font-size: 18px;
    }
}

/* Footer copyright text styling */
footer .text-center p {
    font-size: 12px;
    color: #6b6b6b;
}

/* ############################### HOME PAGE #################################
*/