﻿:root {
    --selected-primary: rgb(18, 125, 242, 0.62);
    --hover-bg-primary: linear-gradient(135deg, #00000026, #0000005a);
    /*    --bg-gradient-start: #0b1a2f;
    --bg-gradient-end: #1b2b4f;*/
    --bg-gradient-start: #040911;
    --bg-gradient-end: #0d1a35;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: rgba(0, 0, 0, 0.2);
    --text-muted-alt: #d0d6e0;
    --text-primary-color: #c3cddc;
    --danger-color: #e2d1be;
    --danger-boarder-color: #b63518;
    --danger-background-color: #f3502b;
}
.img-banner {
    height: 30px;
    width: 30px;
}

html, body {
    /*    overflow-x: hidden;*/
    width: 100%;
    font-size: 14px;
    overflow-x: hidden; /* Clips anything sticking out to the right */
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary-color);
}




html {
    scrollbar-width: thin; /* Options: auto, thin, none */
    scrollbar-color: var(--text-primary-color) var(--bg-gradient-end); /* thumb color | track color */
}

.search-pre {
    border-radius: 0;
    border: none!important;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.15)!important;
    color: var(--text-primary-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}


/* 2. WebKit pseudo-elements (Chrome, Safari, Edge) */
/* The entire scrollbar width */
::-webkit-scrollbar {
    width: 10px;
}

/* The track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The draggable thumb */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 2px solid #f1f1f1; /* Creates a 'padding' effect around the thumb */
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    background-color: transparent !important;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for mobile */
    padding-bottom: 2px; /* Space for the scrollbar so it doesn't touch the buttons */
}



@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.credit-display{
font-style: italic;
}

.table-condensed {
    font-size: 0.85rem; /* slightly smaller text */
}

    .table-condensed th,
    .table-condensed td {
        padding: 0.25rem 0.4rem; /* tighter padding */
        line-height: 1.2; /* reduce row height */
    }

tr {
    color: var(--text-primary-color);
}


/* Card & Form Styling */
.card {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px var(--card-shadow);
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
/*        transform: translateY(-4px);*/
        box-shadow: 0 20px 40px var(--card-shadow);
    }

.form-control {
    border-radius: 0;
    border: none;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .form-control:focus {
        background-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 0 0.2rem var(--selected-primary);
        color: var(--text-primary-color);
    }

textarea {
    min-height: 150px !important;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary-color);
}

/* Input Icon */
.input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--text-muted-alt);
}

/* Underline Input for login */
.underline-input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding-left: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary-color);
}

    .underline-input:focus {
        border-bottom-color: var(--selected-primary);
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(18, 146, 242, 0.5);
    }

.btn{
    border-radius:0!important;
}
/* Buttons */
.btn-primary {
    background: var(--selected-primary);
    border: 1px var(--selected-primary);
    transition: all 0.25s ease;
}

    .btn-primary:hover, .btn-primary:focus {
        background: #0e7cd1;
        box-shadow: 0 0 10px rgba(18, 146, 242, 0.5);
    }

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--text-primary-color);
    transition: all 0.25s ease;
}

    .btn-outline-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary-color);
        border-color: #fff;
    }

    .btn-check:active + .btn-outline-secondary, .btn-check:checked + .btn-outline-secondary, .btn-outline-secondary.active, .btn-outline-secondary.dropdown-toggle.show, .btn-outline-secondary:active {
        color: var(--text-primary-color);
        background-color: #0b1a2f;
        border-color: var(--bs-yellow);
    }

.pointer{
cursor:pointer;
}

/* ========================
   Navbar Theme for XelunaAi
   ======================== */

/* Navbar background & shadow */
.navbar {
    background: rgba(255, 255, 255, 0.05); /* subtle transparency for glass effect */
    backdrop-filter: blur(12px); /* blur background */
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative; /* ensures dropdown is positioned relative to navbar */
    z-index: 1100; /* higher than other components */
}

    /* Ensure dropdowns are above everything else */
    .navbar .dropdown-menu {
        position: absolute; /* Bootstrap default, but reinforce */
        z-index: 1050; /* Bootstrap default for dropdowns */
    }




/* Brand styling */
.navbar-brand {
    color: var(--text-primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s;
}

    .navbar-brand:hover,
    .navbar-brand:focus {
        color: var(--selected-primary);
    }

/* Navbar links */
.navbar-nav .nav-link {
    color: var(--text-primary-color); /* muted white text for contrast */
    font-weight: 500;
    transition: all 0.25s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--selected-primary);
        text-shadow: 0 0 3px rgba(18,146,242,0.7);
    }

/* Dropdown toggle button */
.navbar-nav .dropdown-toggle {
    border: none;
    color: var(--text-primary-color);
    font-weight: 500;
}

    .navbar-nav .dropdown-toggle:hover,
    .navbar-nav .dropdown-toggle:focus {
        color: var(--selected-primary);
        text-shadow: 0 0 3px rgba(18,146,242,0.7);
    }

/* Dropdown menu */
.navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.15); /* glass effect */
    backdrop-filter: blur(12px);
    border-radius: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    animation: fadeIn 0.2s ease-in-out;
}



/* Mobile toggle button */
.navbar-toggler {
    border: none;
    outline: none;
    color: var(--text-primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Right-aligned user section */
.navbar .ms-auto {
    gap: 0.5rem;
    align-items: center;
}

/* Hover & focus transitions for all links/buttons */
.navbar a, .navbar button {
    transition: all 0.3s ease;
}


/* Dropdown */
.dropdown-btn {
    border: none;
    border-radius: 0;
    padding: 0.4rem 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-primary-color);
    background: rgba(255,255,255,0.1);
    transition: all 0.25s ease-in-out;
}

    .dropdown-btn:hover,
    .dropdown-btn:focus {
        color: var(--selected-primary);
        box-shadow: 0 0 15px rgba(18, 146, 242, 0.4);
    }


/* Optional: force dropdowns above all other elements */
.dropdown-menu {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    backdrop-filter: blur(12px) !important;
    color: var(--text-primary-color) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 0 !important;
    animation: fadeIn 0.3s ease-in-out !important;
    transform-origin: top !important;
    box-sizing: initial;
    z-index: 2000 !important; /* very high to beat any other stacking context */
}



    .dropdown-menu .dropdown-item {
        border-radius: 0;
        color: var(--text-primary-color);
        white-space: normal;
        padding: 0.45rem 0.65rem;
        animation: fadeIn 0.3s ease-in-out !important;
    }

        .dropdown-menu .dropdown-item:hover {
            backdrop-filter: blur(12px) !important;
            background: rgba(255, 255, 255, 0.05); /* subtle transparency for glass effect */
            color: var(--selected-primary);
            text-shadow: 0 0 3px rgba(18,146,242,0.7);
        }

.dropdown-header {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9ba1a7;
    font-style:italic;
}

.dropdown-menu-category {
    width: 730px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)) !important;
}

/* Rate / Like / Dislike hover */
.rate:hover {
    color: var(--selected-primary);
}
    
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveUpAndFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.like-animate {
    animation: moveUpAndFade 0.8s ease-out forwards;
}

.dislike-animate {
    animation: moveUpAndFade 0.8s ease-out forwards;
}

/* Top buttons in sidebar / image grid */
.top-btn {
    width: 100%;
    transition: all 0.25s ease;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    background-color: transparent;
    color: #94abbf;
    font-weight: 500;
}

    .top-btn:hover {
        color: var(--text-primary-color);
        border-bottom-color: #a2a2a3;
        background-color: rgba(255, 255, 255, 0.05);
    }

/* === Category Tiles === */
.category {
    display: inline-block;
    min-width: 100px;
    text-align: center;
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease-in-out;
    text-decoration: none !important;
    /* Soft background using primary theme, slightly transparent */
    background: rgba(18, 146, 242, 0.15);
    color: var(--text-primary-color);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    /* Hover effect — slightly brighter and lifted */
    .category:hover {
        background: rgba(18, 146, 242, 0.35);
        transform: translateY(-2px) scale(1.03);
        text-decoration: none;
        color: var(--text-primary-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* Active / selected category styling */
    .category.active,
    .category:focus,
    .category:active {
        background: var(--selected-primary);
        color: var(--text-primary-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

.input-group-text {
    background-color: transparent;
    color: var(--text-primary-color);
}

.bg-dark {
    --bs-bg-opacity: 0.6;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

.bg-secondary {
    --bs-bg-opacity: 0.95;
}
/* === Navbar Sign-in CTA === */
.alert-success {
    color: #bee2d1;
    background-color: #22bb87d2;
    border-color: #23b070;
    transition: all 0.25s ease;
    text-shadow: 0 0 3px #23b070;
}
.alert-danger {
    color:var(--danger-color);
    background-color:var(--danger-background-color);
    border-color: var(--danger-boarder-color);
    transition: all 0.25s ease;
    text-shadow: 0 0 3px #b63518;
}


.nav-signin {
    border-radius: 0;
    font-weight: 600;
    color: var(--text-primary-color) !important;
    transition: all 0.25s ease;
    padding: .2rem 0.5rem;
}

    /* Hover / focus */
    .nav-signin:hover {
        color: var(--selected-primary) !important;
        text-decoration: none;
    }

    /* Keyboard accessibility */
    .nav-signin:focus-visible {
        outline: 2px solid var(--selected-primary);
        outline-offset: 2px;
    }


/* === Multicolor Dot Loader === */
.dot-loader {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

    .dot-loader span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        opacity: 0;
        animation: dotBounce 1.6s infinite cubic-bezier(0.4, 0.0, 0.2, 1);
    }

        /* Google-style colors */
        .dot-loader span:nth-child(1) {
            background: #4285F4; /* Blue */
            animation-delay: 0s;
        }

        .dot-loader span:nth-child(2) {
            background: #EA4335; /* Red */
            animation-delay: 0.15s;
        }

        .dot-loader span:nth-child(3) {
            background: #FBBC05; /* Yellow */
            animation-delay: 0.3s;
        }

        .dot-loader span:nth-child(4) {
            background: #34A853; /* Green */
            animation-delay: 0.45s;
        }

@keyframes dotBounce {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-6px);
    }

    60% {
        opacity: 0.4;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
    }
}

.validation-summary-errors {
    color: var(--danger-color) !important;
    background-color: var(--danger-background-color);
    border-color: var(--danger-boarder-color);
    padding: 5px 5px 5px 10px;
    opacity:0.89;
    margin-bottom:10px;
}

.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
    margin-bottom:0;
}

/* Optional: Add a little spacing between messages if there are multiple */
.validation-summary-errors li {
    margin-bottom: 3px;
}

/* Generic style for field-level validation */
.field-validation-error {
    display: block; /* Ensures it sits on its own line */
    font-size: 0.8rem; /* Keeps it secondary to the label/input */
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px; /* Aligns slightly with your input text */
    transition: all 0.3s ease;
}

    /* Optional: Add a tiny warning icon before the text via CSS */
    .field-validation-error::before {
        content: "\f06a"; /* FontAwesome exclamation-circle */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-right: 5px; 
    }



.category-grid {
    display: grid;
    /* Create 3 rows of equal height */
    grid-template-rows: repeat(3, auto);
    /* Force new items to create new columns instead of new rows */
    grid-auto-flow: column;
    /* Allow horizontal scrolling */
    overflow-x: auto;
    /* Spacing between items */
    gap: 0.5rem;
    padding-bottom: 0px;
}

    .category-grid .category {
        /* Ensure buttons maintain their width and don't collapse */
        white-space: nowrap;
        display: inline-block;
        text-align: center;
        min-width: 180px; /* Optional: ensures a consistent look */
    }

/* Optional: Smooth scrolling on mobile */
.category-grid {
    -webkit-overflow-scrolling: touch;
}

#loading-over {
    z-index: 99999;
    position: fixed;
    transition: all 0.3s ease;
    --bs-bg-opacity: 0.8;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}
/* Responsive tweak: smaller padding on mobile */
@media (max-width: 767px) {
    .category {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 80px;
    }

    .dropdown-menu-category {
        width: 400px;
    }
}


@media (min-width: 768px) {
    .top-btn {
        border-radius: 0;
    }
}

.interactive:hover {
    cursor: pointer;
    transform: translateY(-4px);
}

/* Image grid hover effect */
.image-item, .image-item-loading {
    transition: all 0.3s ease;
    border-radius: 0;
}