/* Main Styles for HowSavings */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* We no longer need to override the bg-danger class, as we're now directly using bg-secondary in HTML */
/* .bg-danger {
    background-color: #6c757d !important;
} */

@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        font-size: calc(14px + 0.25vw);
    }
}

/* Navbar styles */
.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.navbar {
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.2);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #7aab4a;
}

/* Page Header */
h1 {
    font-weight: 700;
    color: #6c757d;
    position: relative;
}

h1:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #89bd55;
    margin: 15px auto 0;
    border-radius: 2px;
}

.text-muted {
    font-size: 1.05rem;
}

/* Coupon Table Styles */
.coupon-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 2rem;
    border: none;
    table-layout: fixed;
    width: 100%;
}

.coupon-table thead {
    background-color: #f8f9fa;
}

.coupon-table th {
    font-weight: 600;
    border-bottom-width: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    color: #495057;
}

/* Uniform table column widths */
.coupon-table th:nth-child(1), 
.coupon-table td:nth-child(1) {
    width: 20%;
}

.coupon-table th:nth-child(2), 
.coupon-table td:nth-child(2) {
    width: 20%;
}

.coupon-table th:nth-child(3), 
.coupon-table td:nth-child(3) {
    width: 30%;
}

.coupon-table th:nth-child(4), 
.coupon-table td:nth-child(4) {
    width: 15%;
}

.coupon-table th:nth-child(5), 
.coupon-table td:nth-child(5) {
    width: 15%;
}

/* Merchant page table column width adjustments */
.merchant-table th:nth-child(1), 
.merchant-table td:nth-child(1) {
    width: 20%;
}

.merchant-table th:nth-child(2), 
.merchant-table td:nth-child(2) {
    width: 40%;
}

.merchant-table th:nth-child(3), 
.merchant-table td:nth-child(3) {
    width: 25%;
}

.merchant-table th:nth-child(4), 
.merchant-table td:nth-child(4) {
    width: 15%;
}

.coupon-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    z-index: 1;
    border-left: 3px solid transparent;
}

/* 自定义表格悬停效果，替代Bootstrap的table-hover */
.table.custom-hover tbody tr:hover {
    background-color: rgba(137, 189, 85, 0.08);
    border-left: 3px solid #89bd55;
    box-shadow: inset 0 0 0 1px rgba(137, 189, 85, 0.1);
}

.coupon-table tbody tr:hover + tr {
    border-top: 1px solid transparent;
}

.coupon-table td {
    padding: 15px;
    vertical-align: middle;
    word-wrap: break-word;
    transition: background-color 0.3s ease;
}

/* Merchant Logo */
.merchant-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.merchant-logo:hover {
    opacity: 0.9;
}

.merchant-logo-large {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.merchant-logo-large:hover {
    opacity: 0.9;
}

/* Coupon Code Display */
.code-text {
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1.5px dashed #6c757d;
    color: #6c757d;
    display: inline-block;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.code-text:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Coupon code display structure */
.coupon-code:not(.d-none) {
    display: flex;
    align-items: center;
}

/* Button styles */
.btn {
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:focus-visible {
    outline: none;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-outline-danger {
    border-width: 1.5px;
    border-color: #89bd55 !important;
    color: #89bd55 !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-danger:hover {
    color: #fff !important;
    background-color: #89bd55;
    border-color: #89bd55;
}

.btn-outline-danger:active,
.btn-outline-danger:focus,
.btn-outline-danger.active {
    color: #fff !important;
    background-color: #7aab4a !important;
    border-color: #7aab4a !important;
    box-shadow: 0 0 0 0.2rem rgba(137, 189, 85, 0.25) !important;
}

.btn-danger {
    background-color: #89bd55 !important;
    border-color: #89bd55 !important;
    box-shadow: 0 2px 5px rgba(137, 189, 85, 0.3) !important;
}

.btn-danger:hover {
    background-color: #7aab4a !important;
    border-color: #7aab4a !important;
    opacity: 0.95;
    box-shadow: 0 2px 5px rgba(137, 189, 85, 0.35) !important;
}

.copy-btn {
    transition: all 0.3s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.copy-btn:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Show Code Button Animation */
.show-code {
    position: relative;
    overflow: hidden;
}

.show-code:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: background-color 0.3s ease;
}

.show-code:hover:after {
    background-color: rgba(0, 0, 0, 0.05);
}

.show-code:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(137, 189, 85, 0.25);
}

/* Merchant page styles */
.merchant-name {
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 700;
}

.merchant-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Enhanced merchant info badges */
.merchant-info .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
}

.merchant-info .badge i {
    margin-right: 6px;
    font-size: 1rem;
}

.badge.bg-success {
    background-color: #89bd55 !important;
}

.badge.bg-info {
    background-color: #8ca7b5 !important;
}

/* Footer */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .merchant-logo-large {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .code-text {
        font-size: 0.9rem;
    }
    
    .coupon-table th {
        font-size: 0.75rem;
    }
    
    /* Enhanced mobile badge styles */
    .merchant-info .badge {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-right: 8px;
        display: inline-flex;
    }
    
    .merchant-info .badge i {
        margin-right: 5px;
    }
    
    /* Improve text readability on mobile */
    body {
        line-height: 1.5;
        letter-spacing: 0.01em;
    }
    
    p, .merchant-description, .text-muted, td, th, button, .btn {
        letter-spacing: 0.01em;
    }
    
    /* Mobile responsive table adjustments */
    .coupon-table, 
    .coupon-table thead, 
    .coupon-table tbody, 
    .coupon-table th, 
    .coupon-table td, 
    .coupon-table tr {
        display: block;
    }
    
    .coupon-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    /* Card-style layout for mobile - optimized height */
    .coupon-table tr {
        margin-bottom: 15px;
        border: 1px solid #e9e9e9;
        border-radius: 10px;
        padding: 12px;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        transition: all 0.3s ease;
        z-index: 1;
    }
    
    .coupon-table tr:hover {
        background-color: rgba(137, 189, 85, 0.05);
        border-left: 3px solid #89bd55;
        padding-left: 10px;
        box-shadow: 0 3px 10px rgba(137, 189, 85, 0.15);
    }
    
    /* Reset the original table cell layout - reduced padding */
    .coupon-table td {
        border: none;
        position: static;
        padding: 5px 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Remove the before pseudo-element that was showing labels */
    .coupon-table td:before {
        content: none;
    }
    
    /* Special styling for merchant cell - reduced margins */
    .coupon-table td:nth-child(1) {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: bold;
        font-size: 1rem;
    }
    
    /* Merchant logo in mobile view - slightly smaller */
    .merchant-logo {
        width: 45px;
        height: 45px;
        margin-right: 12px;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    /* Show data-title attributes as labels - more compact */
    .coupon-table td:not(:first-child)::before {
        content: attr(data-title);
        font-weight: 600;
        color: #6c757d;
        display: block;
        margin-bottom: 4px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Adjust discount display - reduced margins */
    .coupon-table td:nth-child(2) {
        font-weight: 600;
        color: #6c757d;
        margin: 5px 0;
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 4.2em;
        word-break: break-word;
        margin-bottom: 10px;
    }
    
    /* Coupon code cell - optimized spacing */
    .coupon-table td:nth-child(3) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 6px 0;
    }
    
    /* Improved button layout for mobile */
    .coupon-table .show-code {
        width: 100%;
        margin: 4px 0;
        padding: 8px 10px;
        font-weight: 500;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.9rem;
        margin-top: 5px;
    }
    
    /* Two-column layout for code and copy button */
    .coupon-table .coupon-code {
        width: 100%;
        margin-top: 6px;
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 8px;
        align-items: center;
    }
    
    /* Code text mobile styling - more compact */
    .coupon-table .code-text {
        padding: 6px 8px;
        text-align: center;
        letter-spacing: 0.5px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Copy button mobile styling - more compact */
    .coupon-table .copy-btn {
        padding: 5px 8px;
        white-space: nowrap;
        font-size: 0.85rem;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Expire date styling - reduced margins */
    .coupon-table td:nth-child(4) {
        font-style: italic;
        color: #6c757d;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    /* Action button styling - reduced margins */
    .coupon-table td:nth-child(5) {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .coupon-table td:nth-child(5) .btn {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    /* Reset width properties for mobile */
    .coupon-table th:nth-child(1), 
    .coupon-table td:nth-child(1),
    .coupon-table th:nth-child(2), 
    .coupon-table td:nth-child(2),
    .coupon-table th:nth-child(3), 
    .coupon-table td:nth-child(3),
    .coupon-table th:nth-child(4), 
    .coupon-table td:nth-child(4),
    .coupon-table th:nth-child(5), 
    .coupon-table td:nth-child(5) {
        width: 100%;
    }
    
    /* Merchant page specific adjustments */
    .merchant-table td:nth-child(1) {
        color: #6c757d;
        font-weight: 600;
    }
    
    .merchant-table td:nth-child(2) {
        color: inherit;
        font-weight: normal;
        margin: 6px 0;
        line-height: 1.4;
    }
    
    /* Improved spacing between cards */
    .coupon-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    /* Container padding adjustments for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Improve coupon code display on mobile */
    .coupon-code.d-none {
        display: none !important;
    }
    
    .coupon-code:not(.d-none) {
        display: grid !important;
        animation: fadeIn 0.3s ease;
    }
    
    /* Optimize the coupon code container */
    .coupon-table .coupon-code {
        margin-top: 6px;
        background-color: #f8f9fa;
        border-radius: 6px;
        padding: 6px;
        border: 1px solid #e9e9e9;
    }
    
    /* Make code more visually prominent but compact */
    .coupon-table .code-text {
        letter-spacing: 0.5px;
        border: 1.5px dashed #6c757d;
        border-radius: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Enhanced feedback for copied indicator */
    .copied-indicator {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(137, 189, 85, 0.9) !important;
        color: white;
        padding: 10px 16px;
        border-radius: 50px;
        z-index: 1100;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.3s ease;
        font-size: 0.9rem;
    }
    
    .copied-indicator.show {
        opacity: 1;
        animation: indicatorPulse 0.5s ease;
    }
    
    @keyframes indicatorPulse {
        0% { opacity: 0.9; }
        50% { opacity: 1; }
        100% { opacity: 0.95; }
    }
    
    /* Enhanced copy button feedback */
    .coupon-table .copy-btn.btn-success {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(137, 189, 85, 0.3);
        transition: all 0.3s ease;
    }
    
    /* Updated code animation when copied */
    @keyframes mobileCopiedPulse {
        0% { background-color: #f8f9fa; border-color: #6c757d; }
        40% { background-color: rgba(137, 189, 85, 0.1); border-color: #89bd55; }
        100% { background-color: #f8f9fa; border-color: #6c757d; }
    }
    
    .copied-animation {
        animation: mobileCopiedPulse 1s ease;
    }
    
    /* Optimize line heights and text flow */
    .coupon-table td {
        line-height: 1.3;
    }
    
    /* Make table cells more condensed */
    .coupon-table tr > td:not(:first-child):not(:last-child) {
        padding-top: 2px;
        padding-bottom: 2px;
    }
    
    /* Better spacing for headers on mobile */
    h1 {
        margin-bottom: 0.5rem;
    }
    
    h1:after {
        margin: 10px auto 0;
    }
    
    /* More compact description text */
    .text-muted {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Better touch targets for buttons */
    .btn {
        min-height: 38px;
    }
    
    /* Fix code display issues */
    .coupon-table .code-text {
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Horizontal dividers more subtle */
    .coupon-table td:nth-child(1),
    .coupon-table td:nth-child(5) {
        border-color: #f5f5f5;
    }
    
    /* Better show code and copy buttons */
    .coupon-table .show-code,
    .coupon-table .copy-btn {
        transition: all 0.2s ease;
    }
    
    .coupon-table .show-code:active,
    .coupon-table .copy-btn:active {
        transform: scale(0.97);
    }
    
    .merchant-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .merchant-info .badge {
        margin-bottom: 5px;
    }
}

/* Animation for showing coupon code */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.coupon-code {
    animation: fadeIn 0.3s ease-out;
}

/* Highlight animation for coupon code */
@keyframes highlightCode {
    0% { background-color: #f8f9fa; }
    50% { background-color: rgba(108, 117, 125, 0.1); }
    100% { background-color: #f8f9fa; }
}

.highlight-animation {
    animation: highlightCode 1.5s ease;
}

/* Animation for copied text */
@keyframes copiedPulse {
    0% { color: inherit; }
    50% { color: #89bd55; }
    100% { color: inherit; }
}

.copied-animation {
    animation: copiedPulse 0.5s ease;
}

/* Active row styling */
.active-row {
    background-color: rgba(137, 189, 85, 0.1);
    border-left: 3px solid #89bd55 !important;
    box-shadow: inset 0 0 0 1px rgba(137, 189, 85, 0.15);
}

@media (max-width: 768px) {
    .coupon-table tr.active-row {
        border-left: 3px solid #89bd55;
        padding-left: 10px;
        box-shadow: 0 3px 10px rgba(137, 189, 85, 0.15);
    }
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #89bd55 !important;
    color: white;
    text-align: center;
    line-height: 40px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(137, 189, 85, 0.3) !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background-color: #7aab4a;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Bootstrap icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Tablet specific styles (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    /* Add some breathing room around merchant cards */
    .coupon-table tr {
        margin-bottom: 16px;
    }
    
    /* Adjust column sizes for tablet */
    .coupon-table th:nth-child(1), 
    .coupon-table td:nth-child(1) {
        width: 25%;
    }
    
    .coupon-table th:nth-child(2), 
    .coupon-table td:nth-child(2) {
        width: 25%;
    }
    
    .coupon-table th:nth-child(3), 
    .coupon-table td:nth-child(3) {
        width: 25%;
    }
    
    .coupon-table th:nth-child(4), 
    .coupon-table td:nth-child(4) {
        width: 15%;
    }
    
    .coupon-table th:nth-child(5), 
    .coupon-table td:nth-child(5) {
        width: 10%;
    }
    
    /* Adjust merchant page table column widths */
    .merchant-table th:nth-child(1), 
    .merchant-table td:nth-child(1) {
        width: 20%;
    }
    
    .merchant-table th:nth-child(2), 
    .merchant-table td:nth-child(2) {
        width: 35%;
    }
    
    .merchant-table th:nth-child(3), 
    .merchant-table td:nth-child(3) {
        width: 30%;
    }
    
    .merchant-table th:nth-child(4), 
    .merchant-table td:nth-child(4) {
        width: 15%;
    }
    
    /* Adjust font sizes for better readability */
    .coupon-table td {
        font-size: 0.95rem;
    }
    
    /* Make buttons slightly larger */
    .btn-sm {
        padding: 6px 12px;
    }
    
    /* Adjust spacing for merchant description */
    .merchant-description {
        font-size: 1rem;
    }
}

/* Coupon code display structure for desktop */
.coupon-code:not(.d-none) {
    display: flex;
    align-items: center;
}

.copy-btn {
    transition: all 0.3s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Mobile-specific animation improvements */
@media (max-width: 768px) {
    /* Enhanced animation for showing code in mobile */
    @keyframes mobileCodeReveal {
        0% { opacity: 0; }
        70% { opacity: 0.9; }
        100% { opacity: 1; }
    }
    
    .coupon-code:not(.d-none) {
        display: grid !important;
        animation: mobileCodeReveal 0.4s ease-out;
    }
    
    /* Improve text height consistency in landscape mode */
    @media (orientation: landscape) {
        body {
            line-height: 1.4;
            min-height: 0;
        }
        
        h1, h2, h3, h4, h5, h6 {
            line-height: 1.2;
        }
        
        .merchant-description {
            line-height: 1.4;
        }
        
        .coupon-table td {
            line-height: 1.3;
        }
    }
    
    /* Improved highlight animation for mobile */
    @keyframes mobileHighlightCode {
        0% { background-color: #f8f9fa; border-color: #6c757d; }
        40% { background-color: rgba(108, 117, 125, 0.12); border-color: #6c757d; }
        70% { background-color: rgba(108, 117, 125, 0.05); border-color: #6c757d; }
        100% { background-color: #f8f9fa; border-color: #6c757d; }
    }
    
    .highlight-animation {
        animation: mobileHighlightCode 1.5s ease;
    }
    
    /* Enhanced container reveal animation */
    .coupon-table .coupon-code:not(.d-none) {
        transform-origin: top center;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease;
    }
    
    .coupon-table .coupon-code:not(.d-none):hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Search Bar Styles */
.search-container {
    background-color: transparent;
    padding: 40px 0 10px 0;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(108, 117, 125, 0.2);
    padding: 0 45px 0 20px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #89bd55;
    box-shadow: 0 2px 12px rgba(137, 189, 85, 0.15);
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #89bd55 !important;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-button:hover {
    background-color: #7aab4a;
    color: white;
}

.search-button:active {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .search-container {
        padding: 30px 0 7.5px 0; /* Adjusted for mobile while keeping the same ratio */
    }
    
    .search-input {
        height: 52px; /* Increased by 25% from 42px */
        font-size: 0.95rem;
        border-radius: 4px; /* Consistent rectangle shape */
    }
    
    .search-button {
        width: 42px; /* Increased proportionally */
        height: 42px; /* Increased proportionally */
        top: 5px; /* Adjusted for vertical centering */
        border-radius: 4px; /* Consistent rectangle shape */
    }
} 