/* Button Animation Styles */
.btn-search {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-search:hover::before {
    width: 200%;
    height: 200%;
}

.btn-search:active {
    transform: scale(0.95);
}

.btn-search:active::before {
    background: rgba(13, 110, 253, 0.2);
}

.btn-search i {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-search:hover i {
    transform: scale(1.1);
    color: #0d5f3c !important;
}

/* Search button in hero section */
.hero-content .btn-search {
    background: linear-gradient(45deg, #0d5f3c, #146c43);
    border: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-content .btn-search::before {
    background: rgba(255, 255, 255, 0.2);
}

.hero-content .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .btn-search:active {
    transform: translateY(0) scale(0.98);
}

.hero-content .btn-search i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.hero-content .btn-search:hover i {
    transform: scale(1.1) rotate(-10deg);
    color: #fff !important;
}

/* Modal search button */
.modal .input-group .btn-search {
    background: linear-gradient(45deg, #0d5f3c, #146c43);
    border: none;
    color: white;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.modal .input-group .btn-search:hover {
    transform: translateX(3px);
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.1);
}

.modal .input-group .btn-search:active {
    transform: translateX(0) scale(0.98);
}

/* Navbar search button */
.navbar .btn-search {
    border-color: #dee2e6 !important;
    background: white;
    transition: all 0.3s ease;
}

.navbar .btn-search:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
}

.navbar .btn-search:active {
    transform: rotate(90deg) scale(0.95);
}

/* Ripple effect for all search buttons */
.btn-search.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: 0s width ease-in-out, 0s height ease-in-out, 0.6s opacity ease-in-out;
}

/* Focused state for search input */
.form-control:focus + .btn-search {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}