/* Bank modal styles */
.bank-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.bank-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.bank-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.bank-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.bank-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bank-content {
    padding: 2rem;
}

.loan-status, .new-loan {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.loan-status h3, .new-loan h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.loan-info {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.loan-details {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.loan-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.loan-detail:last-child {
    margin-bottom: 0;
    font-weight: bold;
    color: #e74c3c;
}

.loan-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.loan-input label {
    min-width: 100px;
    color: #2c3e50;
}

.loan-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.loan-input input:focus {
    outline: none;
    border-color: #2ecc71;
}

.bank-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.bank-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.bank-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.bank-btn.repay {
    background: #e74c3c;
}

.bank-btn.repay:hover {
    background: #c0392b;
}

#no-loan-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 1rem;
}

