/* Apply background image to the entire body */
body {
    background: linear-gradient(99deg, #eef2f6 0%, #d8e0ea 100%);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}


/* Apply styles to body and HTML */
html,
body {
    height: 100%;
    margin: 0;
}

html {
    overflow-y: scroll;
}

/* Apply styles to header */
header {
    padding-bottom: 1rem 0;
}

main {
    flex: 1;
}

.header-color {
    background: linear-gradient(135deg, #111827 0%, #1f2937 68%, #2b3c52 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.header-color {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.header-color .nav-link,
.header-color .navbar-brand,
.header-color .navbar-toggler {
    color: #f8f1e7 !important;
}

.header-color .nav-link:hover,
.header-color .nav-link:focus,
.header-color .nav-link.active {
    color: #f4d58d !important;
}

.header-color .navbar-toggler {
    border-color: rgba(248, 241, 231, 0.35);
}

.header-color .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.dropdown-divider-fancy {
    margin: 0.65rem 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 1;
}

.dropdown-divider-label {
    position: relative;
    margin: 0.6rem 1rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a7a7a;
}

.dropdown-divider-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #d7d7d7;
    transform: translateY(-50%);
}

.dropdown-divider-label span {
    position: relative;
    padding: 0 0.75rem;
    background: #fff;
}

.header-color .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.header-color .dropdown-item {
    color: #1f2937;
}

.header-color .dropdown-item:hover,
.header-color .dropdown-item:focus {
    background: #f8fafc;
    color: #111827;
}

.tool-panel,
.info-panel,
.output-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Apply styles to footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 8;
    /* Ensure it's above other elements */
    margin-top: 30px;
}

.site-footer {
    background: linear-gradient(90deg, #04152e 0%, #2f435e 100%);
    color: #f5f5f5;
    padding: 1.4rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.footer-social-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f8d64e;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-support-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.94rem;
}

@media (max-width: 767.98px) {
    .footer-inner {
        padding: 0 1rem;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social-links,
    .footer-links {
        gap: 0.55rem;
    }
}

/* Material Symbols colours */
/* Icon Colours */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-feature-settings: 'liga';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-flex;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

/* Popovers */
.popover-header {
    background-color: #D9B99B;
    /* Example color: golden */
    color: #FFFFFF;
    /* White text */
    font-family: 'Roboto', sans-serif;
    /* Your website's font */
    border-bottom: 2px solid #FFA500;
    /* Example color: orange border */
}

.popover-body {
    font-family: 'Roboto', sans-serif;
    /* Consistent font */
}

/* Help Button */
.btn-help {
    background-color: #ffdd57;
    /* Your theme color */
    color: #fff;
    border-radius: 50%;
    padding: 0.5em;
    margin-left: 0.5em;
}

/* Search Button Styles */
.btn-search {
    background-color: #ffdd57;
    /* Custom theme color */
    color: #333;
    /* Text color */
    border: none;
    /* Remove default border */
    padding: 6px 12px;
    /* Adjust padding as needed */
    border-radius: 4px;
    /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for depth */
    transition: all 0.3s ease;
    /* Smooth transition for hover effects */
}

.btn-search:hover,
.btn-search:focus {
    background-color: #ffcc44;
    /* Slightly darker shade for hover/focus */
    color: #222;
    /* Darker text color for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    /* Enhanced shadow for hover */
    outline: none;
    /* Remove outline on focus */
}

.btn-search .material-symbols-outlined {
    vertical-align: middle;
    /* Align icon with text */
    font-size: 20px;
    /* Adjust icon size */
}

/* Google Sign-in Customization */
.gsi-material-button {
    /* Your custom styles for the button */
    background-color: #4285F4;
    /* Google blue */
    color: #ffffff;
    border-radius: 5px;
    padding: 0.5em 1em;
}

/* Ensuring Button does not overflow */
.btn {
    white-space: nowrap;
    /* Ensures text stays in one line */
    overflow: hidden;
    /* Keeps the content within the button */
}

/* Responsive Image */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Custom help icon */
.help {
    background-color: #f8f9fa;
    /* Light background for contrast */
    color: #5c636a;
    /* Darker text for visibility */
    font-size: 1.5em;
    /* Larger size for visibility */
    border-radius: 50%;
    /* Circular shape */
    padding: 0.25em;
}

/* Tooltip styling */
.btn-favourite[aria-label]:hover::after {
    content: attr(aria-label);
    position: absolute;
    background-color: #555;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.container-style {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #dee2e6;
    /* Bootstrap's border color */
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: #fff;
}

.standard-button {
    background-color: #ffdd57;
    /* Your theme color for buttons */
    color: #333;
    border-color: #ffdd57;
    margin-top: 0.5rem;
}

.standard-button:hover {
    background-color: #fcca46;
    /* Slightly darker on hover */
    border-color: #fcca46;
}

.standard-cancel-button {
    background-color: #332C11;
    /* Your theme color for buttons */
    color: #fff;
    border-color: #332C11;
    margin-top: 0.5rem;
}

.standard-cancel-button:hover {
    background-color: #191608;
    /* Slightly darker on hover */
    border-color: #191608;
    color: #fff;
}

/* Container Heights */
.register-container {
    height: 75vh;
}

.index-container {
    height: 100vh;
}

.scroll-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 12;
}

.output-container {
    display: block;
    flex-direction: column;
    align-items: flex-start;
}

.holder-place {
    color: #C0C0C0;
}

.placeholder-style {
    color: #C0C0C0;
    /* Placeholder text color */
}

.color-select option {
    padding-left: 20px;
    /* Adjust as needed */
}

.pink {
    color: pink;
}

.gray {
    color: gray;
}

.olive {
    color: olive;
}

.cyan {
    color: cyan;
}

.magenta {
    color: magenta;
}

/* DROP DOWN MENU EXTENSIONS */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 75%;
    margin-top: -6px;
    margin-left: -1px;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu:hover>.dropdown-toggle:after {
    transform: rotate(-90deg);
}

.form-font-style {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #dee2e6;
    /* Bootstrap's border color */
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: #fff;
}

.output-area {
    background: #f8f9fa;
    /* Light grey background */
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 60px;
    /* Gives a minimum height for better visual */
}

.copy-button {
    background-color: #ffdd57;
    /* Your theme color for buttons */
    color: #333;
    border-color: #ffdd57;
    margin-top: 0.5rem;
}

.copy-button:hover {
    background-color: #fcca46;
    /* Slightly darker on hover */
    border-color: #fcca46;
}

/* Global style to keep the text color in disabled inputs consistent */
input[disabled],
textarea[disabled],
select[disabled] {
    color: #333;
    /* Change this color code to whatever you want for disabled text */
    background-color: #f5f5f5;
    /* Optional: adjust the background color of disabled inputs */
    opacity: 1;
    /* Ensure opacity doesn't dim the text */
}

.dropdown-item-with-cover {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dropdown-book-cover {
    width: 20px;
    height: 30px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1720px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.header-utility-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1.1rem;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.header-social-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.12);
}

.header-social-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    display: block;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-search-form .form-control {
    width: 290px;
    min-width: 290px;
}

@media (max-width: 1199.98px) {
    .header-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .header-search-form .form-control {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 991.98px) {
    .header-utility-group {
        width: 100%;
        margin-top: 0.85rem;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .header-social-links {
        gap: 0.4rem;
    }

    .header-search-form {
        width: 100%;
    }

    .header-search-form .form-control {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .header-social-link {
        width: 32px;
        height: 32px;
    }

    .header-social-icon {
        width: 16px;
        height: 16px;
    }
}