/* =============================================
   COLOR VARIABLES
============================================= */
:root {
    --navbar-bg: rgb(51, 61, 121);
    --navbar-link: rgb(255, 255, 255);
    --navbar-link-hover: #ffffff;
    --navbar-brand-color: #ffffff;

    --search-bg-focus: rgba(255, 255, 255, 0.18);
    --search-border: rgb(194, 197, 215);
    --search-border-focus: rgba(255, 255, 255, 0.65);
    --search-shadow-focus: rgba(255, 255, 255, 0.10);
    --search-text: #ffffff;
    --search-placeholder: rgba(255, 255, 255, 0.50);

    --search-btn-bg-hover: rgba(255, 255, 255, 0.25);
    --search-btn-border: rgba(255, 255, 255, 0.40);
    --search-btn-border-hover: rgba(255, 255, 255, 0.65);
    --search-btn-text: #ffffff;

    --mobile-divider: rgba(255, 255, 255, 0.12);
    --mobile-link-divider: rgba(255, 255, 255, 0.07);

    --primary: rgb(51, 61, 121);
    --primary-hover: rgb(40, 48, 100);
    --accent: rgb(99, 112, 210);
    --border-color: #d8dae8;
    --border-light: #eaecf4;
    --text-main: #1a1d3a;
    --text-muted: #555b7a;
    --text-soft: #9499b0;
    --bg-page: #f4f5fa;
    --radius: 6px;
    --radius-md: 7px;
}



/* =============================================
   FEEDBACK
============================================= */


#feedbackModal .modal-content {
    border: none;
    border-radius: 20px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(105, 65, 198, 0.18);
    animation: fadeInScale 0.25s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   Header Styling
========================= */

#feedbackModal .modal-header {
    border-bottom: 1px solid rgba(105, 65, 198, 0.1);
    padding-bottom: 10px;
}

#feedbackModal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--navbar-bg);
}

/* =========================
   Rating Stars Styling
========================= */

.rating-group {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.rating-input {
    position: absolute !important;
    left: -9999px !important;
}

.rating-label {
    cursor: pointer;
    font-size: 2.4rem;
    color: #e4def7;
    transition: all 0.25s ease;
}

/* Hover effect */
.rating-label:hover,
.rating-label:hover ~ .rating-label {
    color: var(--primary-hover);
    transform: scale(1.2);
}

/* Selected stars */
.rating-input:checked ~ .rating-label {
    color: var(--navbar-bg);
}

/* =========================
   Form Inputs Styling
========================= */

#feedbackModal .form-control {
    border-radius: 14px;
    padding: 12px 15px;
    border: 1px solid rgba(105, 65, 198, 0.25);
    transition: all 0.2s ease;
}

#feedbackModal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(105, 65, 198, 0.15);
}

/* =========================
   Submit Button Styling
========================= */

#feedbackModal .btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.25s ease;
}

#feedbackModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 65, 198, 0.3);
}



/* =============================================
   THEME TOGGLE
============================================= */
.apply-border {
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
    border: 1px solid var(--navbar-bg);
}


.theme-toggle {
    width: 28px;
    height: 34px;
    background: transparent;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.theme-toggle .icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

body:not(.dark-mode) .sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body:not(.dark-mode) .moon {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
}

body.dark-mode .sun {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

body.dark-mode .moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* =============================================
   NAVBAR
============================================= */
.site-navbar {
    background-color: var(--navbar-bg);
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background-color 0.3s ease;
}

.site-navbar .navbar-brand {
    color: var(--navbar-brand-color) !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.site-nav-link {
    color: var(--navbar-link) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 10px !important;
    transition: color 0.2s ease;
}

.site-nav-link:hover {
    color: var(--navbar-link-hover) !important;
}

/* =============================================
   NAVBAR SEARCH
============================================= */
.navbar-search {
    max-width: 400px;
    width: 100%;
}

.search-input {
    background-color: transparent !important;
    color: var(--search-text) !important;
    border: 1px solid var(--search-border) !important;
    border-radius: 6px !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-input::placeholder {
    color: var(--search-placeholder);
}

.search-input:focus {
    background-color: var(--search-bg-focus) !important;
    border-color: var(--search-border-focus) !important;
    box-shadow: 0 0 0 3px var(--search-shadow-focus) !important;
    color: var(--search-text) !important;
}

.search-btn {
    background-color: transparent;
    color: var(--search-btn-text);
    border: 1px solid var(--search-btn-border);
    border-radius: 6px !important;
    padding: 6px 20px;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.search-btn:hover {
    background-color: var(--search-btn-bg-hover);
    border-color: var(--search-btn-border-hover);
    color: var(--search-btn-text);
}

/* =============================================
   MOBILE COLLAPSE
============================================= */
@media (max-width: 991.98px) {
    .navbar-search {
        max-width: 100%;
    }

    .site-navbar .navbar-collapse {
        padding-top: 10px;
        border-top: 1px solid var(--mobile-divider);
        margin-top: 8px;
    }

    .site-nav-link {
        padding: 8px 4px !important;
        border-bottom: 1px solid var(--mobile-link-divider);
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
}

/* =============================================
   LANGUAGE DROPDOWN
============================================= */
.language-dropdown {
    max-height: 250px;
    width: 220px;
    border-radius: 14px;
    background-color: #2d3461;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    padding: 6px;
    overflow-y: auto;
}

.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.25s ease-in-out;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.language-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.language-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
}

.language-dropdown .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* =============================================
   FOOTER
============================================= */
.footer-wrapper {
    background: var(--navbar-bg);
    padding: 50px 0 0 0;
}

.footer-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    background: transparent;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
}

.footer-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.about-text {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.social-link:hover {
    color: #667eea;
}

.social-circle {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 20px;
}

.social-circle:hover {
    background: #667eea;
    color: white;
}

.app-store-btn {
    background: #333;
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    font-size: 14px;
}

.app-store-btn:hover {
    background: #000;
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 30px 20px;
    }
}

/* =============================================
   LOGIN PAGE
============================================= */
.form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.btn-login {
    background-color: #c5c5c5;
    border-radius: 50px;
}

.btn-signup {
    border: 1px solid #000;
    border-radius: 50px;
    padding: 12px;
    background-color: transparent;
    font-weight: 500;
}

/* =============================================
   PAGE — TOP PADDING
============================================= */
.page-top {
    padding-top: 28px;
    padding-bottom: 56px;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-text h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 0.895rem;
    color: var(--text-muted);
    line-height: 1.72;
}

.ad-box {
    height: 130px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

/* =============================================
   CONTENT SEARCH BAR
============================================= */
.search-wrap {
    position: relative;
    margin: 18px 0;
    max-width: 380px;
}

.search-row {
    display: flex;
}

.search-row input {
    flex: 1;
    border: 1px solid var(--search-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 8px 13px;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    background: #fff;
    transition: border-color 0.3s ease;
}

.search-row input:focus {
    border-color: var(--primary);
}

.search-row input::placeholder {
    color: var(--text-soft);
}

.search-row button {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: 6px 20px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.25s ease;
}

.search-row button:hover {
    background-color: var(--primary-hover);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--search-border);
    border-radius: 6px;
    box-shadow: 0 6px 22px rgba(51, 61, 121, 0.13);
    z-index: 999;
    overflow: hidden;
}

.dd-item {
    display: block;
    padding: 9px 14px;
    font-size: 0.875rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.13s, color 0.13s;
}

.dd-item:last-child {
    border-bottom: none;
}

.dd-item:hover {
    background: #f0f2ff;
    color: var(--primary);
}

/* =============================================
   INFO BLOCK
============================================= */
.info-block {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

/* =============================================
   SECTION & CATEGORY TITLES
============================================= */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.cat-title a {
    color: inherit;
    text-decoration: none;
}

.cat-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.cat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 13px;
    line-height: 1.65;
}

.cat-section {
    margin-bottom: 32px;
}

/* =============================================
   TOOL GRID — Bootstrap row/col ke andar
   Hover: left 3px + right 3px + bottom 2px
============================================= */
.tool-card {
    display: block;
    padding: 12px 15px;
    background: rgb(244, 244, 248);

    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.875rem;

    margin-bottom: 7px;
}

.tool-card:hover {
    border-left: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    border-top-color: transparent;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(51, 61, 121, 0.09);
}

.tool-card .tool-label strong {
    font-weight: 600;
    font-size: 0.875rem;
}

.tool-card .tool-label .sub {
    color: var(--text-muted);
    font-weight: 400;
}

.tool-card:hover .tool-label .sub {
    color: var(--accent);
}

/* =============================================
   SIDEBAR
============================================= */


.sidebar-widget {
    margin-bottom: 18px;
}

.sw-header {
    background: var(--navbar-bg);
    color: #fff;
    font-weight: 700;
    font-size: 0.975rem;
    padding: 10px 15px;
    text-align: center;
    border-top-left-radius: 7px ;
    border-top-right-radius: 7px ;
}

/* Sidebar Category Links — sirf left border hover pe */
.sc-link {
    display: block;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.855rem;
    border-bottom: 1px solid var(--text-main);
}
.sc-link  img {
    width: 30px;
}

.sc-link:last-child {
    border-bottom: none;
}

.sc-link:hover {
    background: #eef0fb;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-right: 3px solid var(--primary);

}

/* Sidebar Tool Links — sirf left border hover pe */
.st-link {
    display: block;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.855rem;
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.18s, padding-left 0.18s;
}

.st-link:last-child {
    border-bottom: 1px solid var(--border-light);
}

.st-link:hover {
    background: #f5f6ff;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 18px;
}

/* =============================================
   RESPONSIVE
============================================= */


@media (max-width: 540px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .ad-box {
        display: none;
    }
}


/* categorey images correct size */
.set-image-check img{
    width: 70px;
}