﻿/* ================================
   VEDMAHIMA - FINAL CLEAN THEME
   BOOTSTRAP FRIENDLY + MOBILE READY
================================ */

/* ================================
   BASE LAYOUT
================================ */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*    body::after {
        content: "www.vedmahima.com";
        position: fixed;
        opacity: 0.05;
        font-size: 80px;
        transform: rotate(-30deg);
    }
*/
.row {
    margin-left: 0;
    margin-right: 0;
}

.form-label.required::after {
    content: " *";
    color: #ff6b6b;
    font-weight: 600;
    margin-left: 2px;
    font-size: 0.9em;
    text-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

/* ================================
   NAVBAR
================================ */
.vm-navbar {
    background: linear-gradient(90deg, #fff8dc, #ffe8a3);
}

    .vm-navbar .nav-link {
        color: #000 !important;
        font-weight: 500;
        border-radius: 8px;
        padding: 6px 10px;
        transition: 0.2s ease;
        cursor: pointer;
    }

        .vm-navbar .nav-link:hover {
            background: rgba(0,0,0,0.05);
        }

        .vm-navbar .nav-link.active {
            background: #ffcc66;
            color: #000 !important;
        }

    .vm-navbar .navbar-brand {
        color: #000;
    }

/* ================================
   SEARCH BOX (CORE FIX)
================================ */
.vm-search-wrapper {
    position: relative;
    width: clamp(220px, 25vw, 380px);
    transition: width 0.3s ease;
}

    /* input */
    .vm-search-wrapper input {
        width: 100%;
        transition: box-shadow 0.2s ease;
    }

    /* focus expand (desktop only) */
    .vm-search-wrapper:focus-within {
        width: clamp(260px, 35vw, 500px);
    }

        .vm-search-wrapper:focus-within input {
            box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
        }

/* ================================
   DROPDOWN
================================ */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.search-title {
    font-weight: 500;
}

.search-type {
    font-size: 12px;
    color: #777;
}

/* highlight */
mark {
    background: #ffe08a;
    padding: 0;
}

/* loader */
.search-loader {
    position: absolute;
    right: 10px;
    top: 7px;
    z-index: 5;
}

/* ================================
   MOBILE FIX (IMPORTANT)
   ❌ focus-within width override band
================================ */
@media (max-width: 768px) {

    .vm-search-wrapper,
    .vm-search-wrapper:focus-within {
        width: 100% !important;
    }

    #globalSearchBox {
        width: 100%;
    }
}

/* ================================
   1024px LAPTOP FIX (IMPORTANT)
================================ */
@media (min-width: 992px) and (max-width: 1200px) {

    .vm-search-wrapper {
        width: 240px !important;
        transition: none !important;
    }

        .vm-search-wrapper:focus-within {
            width: 240px !important;
            transition: none !important;
        }

        .vm-search-wrapper input {
            transition: none !important;
            box-shadow: none !important;
        }
}

/* ================================
   NAVBAR STRUCTURE FIX
================================ */
@media (min-width: 992px) {

    .navbar-nav {
        flex-wrap: nowrap;
    }

    .vm-navbar .container-fluid {
        flex-wrap: nowrap;
    }
}

/* dropdown full width mobile */
@media (max-width: 991px) {
    .dropdown-menu {
        width: 100%;
    }
}

/* prevent wrap buttons */
.vm-navbar .dropdown,
.vm-navbar .btn {
    white-space: nowrap;
}

/* ================================
   FOOTER LINKS
================================ */
.footer-link {
    transition: 0.2s ease;
}

    .footer-link:hover {
        color: #ffc107 !important;
    }
/* ================================
   DONATE BUTTON
================================ */
.donate-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    border-radius: 50px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

    .donate-btn:hover {
        transform: translateY(-2px);
    }

@media (max-width:576px) {
    .donate-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .donate-text {
        display: none;
    }
}

/* ================================
   SHARE BUTTONS
================================ */
.share-main-btn {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.share-menu {
    position: fixed;
    right: 18px;
    bottom: 145px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: 0.25s ease;
}

    .share-menu.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .share-menu a {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

        .share-menu a:hover {
            transform: scale(1.08);
        }

    .share-menu .wa {
        background: #25D366;
    }

    .share-menu .fb {
        background: #1877F2;
    }

    .share-menu .cp {
        background: #6c757d;
    }

/* ================================
   HERO SLIDER
================================ */
.carousel,
.carousel-inner,
.carousel-item {
    width: 100%;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    bottom: 18%;
    padding: 15px 20px;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

    .carousel-caption h2 {
        font-size: 2rem;
        color: #fff;
    }

    .carousel-caption p {
        font-size: 1rem;
        color: #eee;
    }

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hero-img {
        height: 50vh;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-img {
        height: 45vh;
    }

    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }
}

/* ================================
   BUTTON + CARD
================================ */
.vm-btn-outline {
    border: 2px solid #ffcc66;
    color: #b8860b;
    background: #fff;
    font-weight: 500;
    border-radius: 25px;
    padding: 6px 18px;
    transition: 0.2s ease;
}

    .vm-btn-outline:hover {
        background: #ffcc66;
        color: #000;
        box-shadow: 0 4px 12px rgba(255, 204, 102, 0.4);
    }

.vm-card {
    transition: all .3s ease;
}

    .vm-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.15);
    }

/* ================================
   ICONS
================================ */
.vm-icon-saffron,
.vm-icon-red,
.vm-icon-blue,
.vm-icon-green,
.vm-icon-purple,
.vm-icon-gold,
.vm-icon-pink,
.vm-icon-teal,
.vm-icon-brown,
.vm-icon-orange,
.vm-icon-indigo {
    font-size: 1.1rem;
    margin-right: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.vm-icon-saffron {
    color: #ff9933;
}

.vm-icon-red {
    color: #dc3545;
}

.vm-icon-blue {
    color: #0d6efd;
}

.vm-icon-green {
    color: #198754;
}

.vm-icon-purple {
    color: #6f42c1;
}

.vm-icon-brown {
    color: #8B4513;
}

.vm-icon-gold {
    color: #d4a017;
}

.vm-icon-pink {
    color: #e83e8c;
}

.vm-icon-teal {
    color: #20c997;
}

.vm-icon-orange {
    color: #fd7e14;
}

.vm-icon-indigo {
    color: #6610f2;
}

/* ================================
   404 KRISHNA THEME (NO IMAGE)
================================ */

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 15px;
}

/* glow */
.krishna-halo {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,204,102,0.8), rgba(255,153,51,0.2), transparent 70%);
    animation: haloPulse 3s ease-in-out infinite;
}

@keyframes haloPulse {
    0%,100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

/* SVG Krishna */
.krishna-svg {
    width: 140px;
    height: 140px;
    z-index: 2;
    animation: floatKrishna 3s ease-in-out infinite;
}

@keyframes floatKrishna {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* particles */
.flute-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffcc66;
    border-radius: 50%;
    animation: floatUp 4s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(-180px);
        opacity: 0;
    }
}

.p1 {
    left: 45%;
    animation-delay: 0s;
}

.p2 {
    left: 50%;
    animation-delay: 1s;
}

.p3 {
    left: 55%;
    animation-delay: 2s;
}

/* 404 text */
.error-code {
    font-size: 6.5rem;
    font-weight: 800;
    color: #ff9933;
    text-shadow: 0 5px 20px rgba(255,153,51,0.3);
}

/* dots */
.vm-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 20px;
}

    .vm-dots span {
        width: 8px;
        height: 8px;
        background: #ffcc66;
        border-radius: 50%;
        animation: vmBlink 1.4s infinite;
    }

        .vm-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .vm-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes vmBlink {
    0%,100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@media (max-width:576px) {
    .error-code {
        font-size: 5rem;
    }

    .krishna-svg {
        width: 120px;
        height: 120px;
    }
}

#loader {
    padding: 20px;
}

.text-justify {
    text-align: justify;
}

.font-inherit {
    font-family: inherit;
}

.vm-card iframe {
    border-radius: 16px;
}

.share-menu {
    position: fixed;
    z-index: 9999;
}

    .share-menu a {
        width: 45px;
        height: 45px;
        transition: 0.3s ease;
    }

        .share-menu a:hover {
            transform: scale(1.1);
        }


/* ================================
   VEDMAHIMA FOOTER
================================ */

.vm-footer {
    background: linear-gradient( 180deg, #1a1a1a, #0d0d0d );
    color: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: auto;
}

.vm-footer-notice {
    margin: auto;
}

    .vm-footer-notice p {
        line-height: 1.7;
    }

.vm-footer-divider {
    border-color: rgba(255,255,255,.08);
}

.vm-footer h6 {
    font-weight: 600;
    margin-bottom: 12px;
}

.vm-footer .footer-link {
    color: #d6d6d6;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    transition: .25s;
}

    .vm-footer .footer-link:hover {
        color: #ffc107;
        transform: translateX(4px);
    }

@media (max-width:768px) {

    .vm-footer {
        text-align: center;
        padding: 30px 0 15px;
    }

        .vm-footer h6 {
            margin-top: 10px;
        }

        .vm-footer .footer-link:hover {
            transform: none;
        }
}

.vm-footer h6 {
    color: #ffc107;
}

.footer-link {
    color: #d6d6d6;
}

    .footer-link:hover {
        color: #ffc107;
    }

.vm-footer .copyright {
    color: #9e9e9e;
    font-size: .9rem;
}

.vm-divider-us {
    width: clamp(50px, 20vw, 80px);
    height: 4px;
}

/* =========================
   SAAS GLOBAL THEME (Scoped)
   Works with Bootstrap 5 + AdminLTE v4
========================= */

:root {
    --saas-primary: #6366f1;
    --saas-success: #28a745;
    --saas-danger: #dc3545;
    --saas-border: #e5e7eb;
    --saas-text: #555;
}

/* =========================
   Form Labels
========================= */
.saas-form .form-label {
    font-weight: 500;
    font-size: 13px;
    color: var(--saas-text);
}

    .saas-form .form-label.required::after {
        content: " *";
        color: #ff6b6b;
        font-weight: 600;
        margin-left: 2px;
        font-size: 0.9em;
        text-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
    }

/* =========================
   Select (Bootstrap safe)
========================= */
.saas-form .form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--saas-border);
    transition: all 0.2s ease;
}

    .saas-form .form-select:focus {
        box-shadow: 0 0 0 0.15rem rgba(99,102,241,.15);
        border-color: var(--saas-primary);
        outline: none;
    }

/* =========================
   Select2 Fix (Stable)
========================= */
.select2-container--default .select2-selection--single {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
}

/* Small */
.saas-form .form-control-sm + .select2-container .select2-selection--single {
    min-height: 31px;
    padding: 0 0.5rem;
}

/* Large */
.saas-form .form-control-lg + .select2-container .select2-selection--single {
    min-height: 48px;
    padding: 0 1rem;
}

/* Focus */
.select2-container--default .select2-selection--single:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(99,102,241,.15);
}

/* Invalid */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: var(--saas-danger) !important;
}

/* =========================
   Switch (Bootstrap friendly)
========================= */
.form-switch .form-check-input.saas-switch {
    width: 2.4em;
    height: 1.3em;
    cursor: pointer;
    background-color: #3a3f44;
    border: 1px solid #6c757d;
    transition: all 0.2s ease-in-out;
}

    /* ON */
    .form-switch .form-check-input.saas-switch:checked {
        background-color: var(--saas-success);
        border-color: var(--saas-success);
    }

    /* Focus */
    .form-switch .form-check-input.saas-switch:focus {
        box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
    }

    /* Hover */
    .form-switch .form-check-input.saas-switch:hover {
        transform: scale(1.05);
    }

/* =========================
   Card UI
========================= */
.saas-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f1f1;
    transition: all 0.25s ease;
}

    .saas-card:hover {
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

/* =========================
   Spinner Utility
========================= */
.spin {
    display: inline-block;
    animation: saas-spin 1s linear infinite;
}

@keyframes saas-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   DataTables Fix
========================= */
div.dt-container div.dt-length select {
    width: 70px;
    min-width: 70px;
    max-width: 90px;
    display: inline-block;
    margin-right: .5em;
    padding-right: 1.5rem;
    line-height: 1.5;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    div.dt-container div.dt-length select {
        width: 100%;
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .form-switch .form-check-input.saas-switch {
        width: 2.0em;
        height: 1.1em;
    }

    td {
        font-size: 13px;
    }
}

label.error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
}

.related-link {
    transition: all .25s ease;
    border: 0;
}

    .related-link:hover {
        background: #f8f9fa;
        transform: translateX(5px);
    }

        .related-link:hover .icon-circle {
            background: #0d6efd;
            color: #fff;
        }

        .related-link:hover .bi-chevron-right {
            color: #0d6efd;
            transform: translateX(4px);
        }

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    transition: .25s;
}

.bi-chevron-right {
    transition: .25s;
    color: #6c757d;
}
