/* IFSC Finder - Professional Frontend Styles */

.ifsc-finder-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.ifsc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ifsc-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.ifsc-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ifsc-hero-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* Container */
.ifsc-finder-container {
    padding: 0 20px;
    display: grid;
    gap: 30px;
}

/* Cards */
.ifsc-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
}

.ifsc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ifsc-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.ifsc-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ifsc-card-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.ifsc-icon {
    font-size: 1.5rem;
}

/* Form Styles */
.ifsc-form {
    width: 100%;
}

.ifsc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ifsc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ifsc-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ifsc-label-icon {
    font-size: 1.1rem;
}

.ifsc-select, .ifsc-input {
    padding: 14px 16px;
    border: 2px solid #e1e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.ifsc-select:focus, .ifsc-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ifsc-select:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Input Group */
.ifsc-input-group {
    display: flex;
    gap: 12px;
    align-items: end;
}

.ifsc-input-group .ifsc-form-group {
    flex: 1;
}

/* Buttons */
.ifsc-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.ifsc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ifsc-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ifsc-btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.ifsc-btn-icon {
    font-size: 1.1rem;
}

/* Results Section */
.ifsc-results {
    margin-top: 24px;
}

.ifsc-result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ifsc-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ifsc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ifsc-result-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.ifsc-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.ifsc-code-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

.ifsc-copy-btn {
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ifsc-copy-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.ifsc-copy-btn.copied {
    background: #6366f1;
}

.ifsc-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.ifsc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ifsc-detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ifsc-detail-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Success/Error Messages */
.ifsc-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0;
    font-weight: 500;
}

.ifsc-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ifsc-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ifsc-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Loading State */
.ifsc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #64748b;
}

.ifsc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .ifsc-hero {
        padding: 40px 20px;
        margin-bottom: 24px;
    }
    
    .ifsc-hero-title {
        font-size: 2rem;
    }
    
    .ifsc-hero-subtitle {
        font-size: 1rem;
    }
    
    .ifsc-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .ifsc-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ifsc-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ifsc-result-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ifsc-result-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ifsc-finder-wrapper {
        padding: 0 10px;
    }
    
    .ifsc-hero {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
    
    .ifsc-card {
        padding: 20px 16px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
}

/* Copy to Clipboard Animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ifsc-copy-btn.copied {
    animation: copySuccess 0.3s ease;
}

