/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', 'SiyamRupali', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.logo {
    margin-bottom: 30px;
    position: relative;
}

.logo img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 150px;
    height: auto;
    will-change: transform;
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

h1 {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.search-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-form:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    will-change: transform, border-color;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group input:valid {
    border-color: #38a169;
}

.input-group input:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.input-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Add character counter for 16-digit codes */
.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

/* Error and Success Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.error {
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.success {
    background: #c6f6d5;
    color: #2f855a;
    border-left: 4px solid #38a169;
}

/* Business Details Display */
.business-details {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    margin-top: 20px;
    animation: slideIn 0.5s ease;
    will-change: transform;
}

.business-details h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.detail-row:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

.detail-value {
    font-weight: 500;
    color: #2d3748;
    font-size: 1rem;
}

.detail-value.balance {
    color: #38a169;
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-value.amount {
    color: #667eea;
    font-weight: 600;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .input-group input {
        padding: 15px 18px;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .business-details {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}
