/* Custom styles for FLCBank */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Show/hide utilities that work with JavaScript */
.show {
    display: flex !important;
}

.show-block {
    display: block !important;
}

.show-table {
    display: table !important;
}

/* Navigation active state */
.nav-link.active {
    background: linear-gradient(90deg, #0179FE 0%, #4893FF 100%);
    color: white;
}

.nav-link.active svg {
    filter: brightness(0) invert(1);
}

/* Bank card styles */
.bank-card {
    position: relative;
    background: linear-gradient(90deg, #0179FE 0%, #4893FF 100%);
    box-shadow: 8px 10px 16px 0px rgba(0, 0, 0, 0.05);
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 316 190" fill="none"><path d="M0 0h316v190H0z" fill="url(%23a)"/><defs><linearGradient id="a" x1="0" y1="0" x2="316" y2="190" gradientUnits="userSpaceOnUse"><stop stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></linearGradient></defs></svg>') no-repeat;
    background-size: cover;
    border-radius: inherit;
    pointer-events: none;
}

/* Custom form styles */
.form-btn {
    background: linear-gradient(90deg, #0179FE 0%, #4893FF 100%);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

/* Transaction row styles */
.transaction-row {
    transition: background-color 0.2s ease;
}

.transaction-row:hover {
    background-color: #f9fafb;
}

.transaction-debit {
    background-color: #fffbfa;
}

.transaction-credit {
    background-color: #f6fef9;
}

/* Animation for loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
}

/* Balance animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-animate {
    animation: countUp 0.5s ease-out;
}

/* Card hover effects */
.account-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Success and error message styles */
.success-message {
    background-color: #f6fef9;
    border-color: #039855;
    color: #027a48;
}

.error-message {
    background-color: #fffbfa;
    border-color: #f04438;
    color: #b42318;
}

/* Modal overlay */
.modal-overlay {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .bank-card {
        break-inside: avoid;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0179FE;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: #10b981;
    background-color: #f0fdf4;
    color: #166534;
}

.notification.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #dc2626;
}

/* Enhanced Modal Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Modal Backdrop Blur */
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Modal Close Button Hover Effect */
.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
}

/* Enhanced Shadow Effects for Banking */
.shadow-banking {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.shadow-banking-hover:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

/* Loading Spinner for Transfers */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Enhanced Button Hover Effects */
.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Transaction Item Enhanced Hover */
.transaction-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Modal Enhancements */
@media (max-width: 640px) {
    .animate-scale-in {
        animation: scaleInMobile 0.3s ease-out;
    }
    
    @keyframes scaleInMobile {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}
