/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    min-height: 100vh;
    position: relative;
}

/* Header Section */
.main-header {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.95) 50%, 
        rgba(102, 126, 234, 0.9) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 2rem;
}

.header-title {
    animation: fadeInUp 1s ease-out;
}

.search-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.search-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.header-title h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.header-title p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: -120px auto 0;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 10;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.search-form form {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.input-icon {
    padding: 0 1rem;
    color: #a0aec0;
    font-size: 1.2rem;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    outline: none;
    color: #2d3748;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.search-btn i {
    font-size: 1.1rem;
}

.help-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
    justify-content: center;
}

.help-text i {
    color: #4299e1;
}

/* Status Cards */
.status-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.loading-content h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.loading-content p {
    color: #718096;
}

.spinner-container {
    position: relative;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Error State */
.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #e53e3e;
    font-size: 2rem;
}

.error-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.error-message {
    color: #718096;
    margin-bottom: 2rem;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Repair Results */
.repair-results {
    animation: fadeInUp 0.8s ease-out;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.status-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-details {
    flex: 1;
}

.status-details h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-details p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.status-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.separator {
    opacity: 0.5;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
}

/* Timeline Card */
.timeline-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.card-header i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e0);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a0aec0;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding-top: 1rem;
}

.timeline-content h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #718096;
    line-height: 1.6;
}

/* Progress States */
.progress-step.completed .timeline-marker {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-color: #48bb78;
    color: white;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    transform: scale(1.05);
}

.progress-step.active .timeline-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

.progress-step.completed .timeline-content h4 {
    color: #48bb78;
}

.progress-step.active .timeline-content h4 {
    color: #667eea;
    font-weight: 700;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.05) translateY(0); }
    50% { transform: scale(1.1) translateY(-3px); }
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
    font-size: 0.9rem;
}

.info-row .value {
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
}

/* Payment Section */
.payment-section {
    margin-bottom: 2rem;
}

.payment-card {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border: 2px solid #48bb78;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.15);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #38a169, #48bb78);
    animation: paymentGlow 2s ease-in-out infinite;
}

@keyframes paymentGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.payment-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.payment-subtitle {
    color: #48bb78;
    font-weight: 600;
}

.payment-details {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-label {
    color: #4a5568;
    font-weight: 600;
}

.service-name {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
}

.amount-display {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 2px solid #f1f5f9;
}

.currency {
    font-size: 1.5rem;
    color: #4a5568;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    color: #48bb78;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pay-btn {
    border: none;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.pay-btn.primary {
    flex: 2;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.pay-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
}

.pay-btn.secondary {
    flex: 1;
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.pay-btn.secondary:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
    transform: translateY(-2px);
}

.pay-btn i {
    font-size: 1.2rem;
}

.pay-btn small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.payment-security {
    text-align: center;
    color: #48bb78;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Action Section */
.action-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    flex: 1;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
}

.brand-section {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.brand-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.brand-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.link-group a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #667eea;
}

.link-group p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #718096;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        height: 50vh;
        min-height: 300px;
    }
    
    .header-title h1 {
        font-size: 2.5rem;
    }
    
    .search-card,
    .status-card,
    .timeline-card {
        padding: 2rem 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .main-content {
        margin-top: -80px;
        padding: 0 0.5rem 2rem;
    }
    
    .status-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .status-details h2 {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .payment-actions,
    .action-section {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 2rem;
    }
    
    .search-card,
    .status-card,
    .timeline-card {
        padding: 1.5rem 1rem;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .status-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ========================================
   SEARCH BAR BUTTON FIX FOR MOBILE
======================================== */

/* Default search form styles (already exist) */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0; /* Prevent button from shrinking */
    min-width: 56px; /* Ensure minimum width */
}

/* Mobile fixes - Override existing mobile styles */
@media (max-width: 575.98px) {
    .input-wrapper {
        flex-direction: row; /* Keep horizontal layout on mobile */
        align-items: center;
        padding: 0.75rem; /* Slightly more padding for mobile */
        border-radius: 18px; /* Slightly smaller border radius */
    }
    
    .input-wrapper input {
        padding: 1rem 1rem 1rem 3rem; /* Maintain left padding for icon */
        margin-bottom: 0; /* Remove bottom margin */
        text-align: left; /* Keep text aligned left */
        flex: 1; /* Take remaining space */
        min-width: 0; /* Allow shrinking but not below content */
    }
    
    .input-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        color: #a0aec0;
        font-size: 1.1rem;
    }
    
    .search-btn {
        width: 48px; /* Slightly smaller for mobile */
        height: 48px; /* Slightly smaller for mobile */
        border-radius: 14px;
        margin-left: 0.5rem; /* Small gap from input */
        flex-shrink: 0; /* Never shrink */
        min-width: 48px; /* Maintain minimum size */
    }
    
    .search-btn i {
        font-size: 1rem; /* Adjust icon size for smaller button */
    }
}

/* Small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .search-card {
        padding: 1.5rem 1rem; /* Reduce card padding */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .input-wrapper {
        padding: 0.5rem; /* Less padding on very small screens */
    }
    
    .input-wrapper input {
        padding: 0.9rem 0.9rem 0.9rem 2.5rem; /* Slightly less padding */
        font-size: 1rem; /* Maintain readable font size */
    }
    
    .input-icon {
        left: 0.75rem; /* Adjust icon position */
        font-size: 1rem;
    }
    
    .search-btn {
        width: 44px; /* Even smaller for very small screens */
        height: 44px;
        min-width: 44px; /* Maintain minimum */
        margin-left: 0.25rem;
    }
    
    .search-btn i {
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .input-wrapper {
        max-width: none; /* Allow full width */
        margin: 0 1rem; /* Add side margins */
    }
    
    .search-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .search-btn {
        min-height: 48px; /* Ensure touch-friendly size */
        min-width: 48px;
        /* Remove hover transform on touch devices */
    }
    
    .search-btn:hover {
        transform: none; /* Remove hover effect */
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); /* Keep original shadow */
    }
    
    .search-btn:active {
        transform: scale(0.96); /* Add active state for touch feedback */
    }
}

/* Ensure input doesn't get too cramped */
@media (max-width: 320px) {
    .search-card {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding: 1.25rem 0.75rem;
    }
    
    .input-wrapper {
        padding: 0.4rem;
        min-height: 52px; /* Ensure minimum height */
    }
    
    .input-wrapper input {
        padding: 0.8rem 0.8rem 0.8rem 2.25rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
    }
    
    .search-btn i {
        font-size: 0.85rem;
    }
}
