/* ============================================
   CHANDRAGUPTA FOUNDATION - UI ENHANCEMENTS
   Additional styles for improved user experience
   ============================================ */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-whatsapp 2s infinite;
}

/* =============================================
   HEADER - MODERN TOP BAR LAYOUT
   ============================================= */
.top-bar .wrapper-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Centered top bar layout */
.top-bar .wrapper-box.topbar-centered {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.top-bar .wrapper-box.topbar-centered .left-content {
    justify-content: center;
    width: 100%;
}

.top-bar .wrapper-box.topbar-centered .center-content {
    width: 100%;
    max-width: 700px;
}

.top-bar .left-content {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar .left-content .ngo-name-display {
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.top-bar .center-content {
    flex: 1 1 auto;
    min-width: 260px;
    text-align: center;
}

.top-bar .right-content {
    display: none;
}

@media (max-width: 991px) {
    .top-bar .wrapper-box {
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-bar .left-content,
    .top-bar .center-content {
        min-width: 0;
        width: 100%;
    }
    .top-bar .left-content {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .top-bar .left-content .ngo-name-display {
        padding-left: 0;
        border-left: none;
        padding-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    .top-bar .center-content marquee {
        white-space: nowrap;
    }
}

/* Keep header action buttons on one line (desktop) */
@media (min-width: 992px) {
    .main-header .header-upper .option-wrapper {
        flex-wrap: nowrap;
    }

    .main-header .header-upper .option-wrapper > div {
        margin-left: 15px;
    }

    .main-header .header-upper .nav-outer {
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-header .header-upper .link-btn {
        display: flex;
        align-items: center;
        white-space: nowrap;
        gap: 10px;
    }

    .main-header .header-upper .link-btn .theme-btn.btn-style-two {
        min-width: 100px;
        padding: 12px 20px;
    }

    .main-header .header-upper .link-btn .theme-btn.btn-style-one {
        min-width: 140px;
        padding: 12px 28px;
    }

/* Sticky Header Logo Size Fix */
.sticky-header .logo-box .logo img {
    max-height: 55px; /* Adjust this value as needed */
    width: auto;
    transition: max-height 0.3s ease-in-out;
}

}

/* =============================================
   HEADER NAV - CLEANER, MODERN SPACING
   ============================================= */
@media (min-width: 992px) {
    .main-header .header-upper {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    }

    .main-menu .navigation>li {
        padding: 22px 0px;
        margin-right: 22px;
    }

    .main-menu .navigation>li>a {
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.1px;
    }

    .main-menu .navigation>li.current:before {
        bottom: 28px;
    }

    .main-menu .navigation>li.current:after {
        bottom: 24px;
    }

    .main-menu .navigation>li>ul {
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
        padding: 14px 0;
        top: 105%;
    }

    .main-menu .navigation>li>ul>li {
        padding: 0 22px;
    }

    .main-menu .navigation>li>ul>li>a {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* Ensure scroll-to-top stays bottom-right */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
}

/* Header action buttons - modern alignment */
.main-header .header-upper .link-btn .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 24px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-header .header-upper .link-btn .theme-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    line-height: 60px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
}

/* Animated Section Entries */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Cards */
.card-enhanced {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Pulse Animation for Important Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Zoom on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(231, 76, 60, 0.3);
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Form Inputs */
.form-control-enhanced {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control-enhanced:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    outline: none;
}

/* Tooltip Styling */
.tooltip-enhanced {
    position: relative;
    display: inline-block;
}

.tooltip-enhanced .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.tooltip-enhanced:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Badge Styles */
.badge-custom {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Progress Bar Enhanced */
.progress-enhanced {
    height: 8px;
    border-radius: 10px;
    background: #e0e0e0;
    overflow: hidden;
}

.progress-bar-enhanced {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Social Media Icons */
.social-icon-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    margin: 0 5px;
}

/* Footer credit (Developed by) */
.footer-credit {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.footer-credit__label {
    margin-right: 6px;
}

.footer-credit__link {
    font-weight: 600;
    text-decoration: none;
}

.footer-credit__link:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .footer-credit {
        font-size: 12px;
    }
}

.social-icon-enhanced.facebook {
    background: #3b5998;
}

.social-icon-enhanced.twitter {
    background: #1da1f2;
}

.social-icon-enhanced.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon-enhanced.linkedin {
    background: #0077b5;
}

.social-icon-enhanced:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Alert Boxes */
.alert-enhanced {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-icon-enhanced {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    #backToTop,
    .no-print {
        display: none !important;
    }
}

/* Selection Color */
::selection {
    background: #e74c3c;
    color: white;
}

::-moz-selection {
    background: #e74c3c;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
}

/* =============================================
   TOP BAR - CONTACT + SOCIAL INLINE
   ============================================= */
.top-bar .wrapper-box .left-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-bar .wrapper-box .left-content .contact-info,
.top-bar .wrapper-box .left-content .topbar-social-inline {
    margin: 0;
}

.top-bar .wrapper-box .left-content .topbar-social-inline li {
    margin-left: 6px;
}

/* =============================================
   PROFILE DROPDOWN IN NAVBAR
   ============================================= */
.profile-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.profile-dropdown-wrap .profile-trigger {
    cursor: pointer;
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    list-style: none;
    padding: 10px 0;
    margin: 8px 0 0 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.profile-dropdown-wrap:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.profile-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.profile-dropdown-menu li a:hover {
    background: #f0f4ff;
    color: #2980b9;
    padding-left: 25px;
}

.profile-dropdown-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #888;
    transition: color 0.2s;
}

.profile-dropdown-menu li a:hover i {
    color: #2980b9;
}

.profile-dropdown-menu li.divider {
    height: 1px;
    margin: 6px 15px;
    background: #eee;
}

/* Logout item special color */
.profile-dropdown-menu li:last-child a {
    color: #e74c3c;
}
.profile-dropdown-menu li:last-child a i {
    color: #e74c3c;
}
.profile-dropdown-menu li:last-child a:hover {
    background: #fdf0f0;
    color: #c0392b;
}

/* Small arrow on top of dropdown */
.profile-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}

/* =============================================
   DONATE BUTTON - BIGGER & MORE PROMINENT
   ============================================= */
.donate-btn-big {
    font-size: 16px !important;
    padding: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    min-height: 60px !important;
    border-radius: 28px !important;
    animation: pulse-donate 2s infinite;
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.35) !important;
    position: relative;
}

.donate-btn-big:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 10px 35px rgba(231, 76, 60, 0.5) !important;
}

.donate-btn-big span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 44px !important;
    border-radius: 28px !important;
}

@keyframes pulse-donate {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* =============================================
   LOGIN BUTTON - SMALLER THAN DONATE
   ============================================= */
.main-header .header-upper .link-btn .login-btn-small {
    font-size: 13px !important;
    padding: 0 !important;
    min-height: 34px !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.main-header .header-upper .link-btn .login-btn-small span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px !important;
    line-height: 1 !important;
}

/* If theme styles pad inner spans, keep login compact */
.main-header .header-upper .link-btn .login-btn-small i {
    font-size: 14px;
}

/* Mobile: profile dropdown adjustments */
@media (max-width: 991px) {
    .profile-dropdown-menu {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
        bottom: auto;
        min-width: auto;
    }
    .donate-btn-big {
        font-size: 14px !important;
        padding: 12px 24px !important;
    }
}

/* =============================================
   DONATE PAGE - CLEANER, MORE PROFESSIONAL
   ============================================= */
.donate-modern {
    padding: 80px 0;
}

.donate-modern .donate-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.donate-modern .donate-step-title {
    margin-bottom: 25px;
    font-weight: 700;
}

.donate-modern .donation-amount-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.donate-modern .donation-amount label,
.donate-modern .payment-method-label {
    display: block;
    padding: 18px;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    background: #ffffff;
}

.donate-modern .donation-amount label:hover,
.donate-modern .payment-method-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    border-color: #e74c3c;
}

.donate-modern .payment-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.donate-modern .payment-details > div {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

.donate-modern .upi-id-pill {
    background: #e74c3c;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.donate-modern .sidebar-widget {
    border-radius: 12px;
}

.donate-modern input[type="radio"]:checked + label,
.donate-modern input[type="radio"]:checked + .payment-method-label {
    border-color: #e74c3c !important;
    background: #ffe5e5 !important;
    font-weight: 600;
}

.donate-modern .payment-method-label:hover {
    border-color: #e74c3c !important;
}

.donate-modern .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.donate-modern .payment-proof-preview {
    margin-top: 12px;
    display: none;
}

.donate-modern .payment-proof-preview img {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .donate-modern .donate-card {
        padding: 22px;
    }
}

/* =============================================
   HEADER - LOGIN/DONATE BUTTON STYLING
   ============================================= */
.main-header .link-btn .theme-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-header .link-btn .login-btn-small {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 40px;
    background-color: #f5f5f5;
    color: var(--dark-color);
}
.main-header .link-btn .login-btn-small:hover {
    background-color: #e0e0e0;
}


.main-header .link-btn .donate-btn-big {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    min-height: 48px;
}

.main-header .link-btn .profile-trigger {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 40px;
}

/* =============================================
   HERO SLIDER - BUTTON STYLING
   ============================================= */
.banner-section .content-box .btn-box .theme-btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 8px;
}

/* Sticky Header Logo Size Fix */
.sticky-header .logo-box .logo img {
    max-height: 55px; /* Adjust this value as needed */
    width: auto;
    transition: max-height 0.3s ease-in-out;
}
