/* Global Corporate Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Corporate Header */
.bank-header {
    background-color: #ffffff; /* White */
    width: 100%;
    padding: 15px 0;
    border-bottom: 2px solid #005ca9; /* Blue Border */
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-logo {
    height: 32px;
}

.secure-badge {
    color: #005ca9;
    background: #e8f4f8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #005ca9;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    text-align: center;
}

.loader-card, .result-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 40px 30px;
}

/* Loader Styling */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #005ca9; /* Corporate Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
}

.progress-container {
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #005ca9;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-status {
    font-size: 0.9rem;
    color: #777;
}

/* Result Styling */
.result-card {
    display: none;
    text-align: left;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.error-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b71c1c;
}

.detail-row {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.detail-row label {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.detail-row strong {
    color: #333;
}

.btn-resolve {
    display: block;
    width: 100%;
    background: #f89e1b; /* Orange */
    color: #003366;
    text-decoration: none;
    font-weight: 800;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    margin-top: 25px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-resolve:hover {
    background: #e68a00;
}

/* Footer */
.bank-footer {
    background: #333;
    color: white;
    padding: 20px 0;
    margin-top: auto;
    font-size: 0.75rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bank-header {
        padding: 10px 0;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    .bank-logo {
        height: 28px;
    }
    
    .secure-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .main-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .loader-card, .result-card {
        padding: 30px 20px;
    }
    
    .loading-title {
        font-size: 1rem;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .error-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .error-title {
        font-size: 1.1rem;
    }
    
    .detail-row {
        font-size: 0.9rem;
    }
    
    .btn-resolve {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .loader-card, .result-card {
        padding: 25px 15px;
    }
    
    .loading-title {
        font-size: 0.95rem;
    }
    
    .error-title {
        font-size: 1rem;
    }
    
    .bank-footer {
        font-size: 0.7rem;
        padding: 15px 0;
    }
}
