/* MUFG Brand Colors */
:root {
    --mufg-red: #dc143c;
    --mufg-dark-red: #b91c3c;
    --mufg-light-gray: #f8f9fa;
    --mufg-dark-gray: #6c757d;
}

/* Custom MUFG Styling */
.bg-mufg {
    background-color: var(--mufg-red) !important;
}

.text-mufg {
    color: var(--mufg-red) !important;
}

.btn-mufg {
    background-color: var(--mufg-red);
    border-color: var(--mufg-red);
    color: white;
}

.btn-mufg:hover {
    background-color: var(--mufg-dark-red);
    border-color: var(--mufg-dark-red);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--mufg-light-gray) 0%, #ffffff 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.service-icon {
    padding: 20px;
    border-radius: 50%;
    background-color: rgba(220, 20, 60, 0.1);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--mufg-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--mufg-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mufg-dark-red);
}

/* Balance display */
.balance-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--mufg-red);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Status indicators */
.status-success {
    color: #28a745;
}

.status-warning {
    color: #ffc107;
}

.status-danger {
    color: #dc3545;
}

/* Professional styling for forms */
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* MUFG specific styling */
.mufg-logo {
    max-height: 40px;
    width: auto;
}

.security-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}