/* Custom styles for Financial Digi Locker */
/* Animation for modal appearance */
@keyframes bounce {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Active category styling */
.category-btn.active {
    background-color: #e6f0ff;
    font-weight: bold;
    border-left: 4px solid #3b82f6;
}

/* Form styling */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Alert component */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #printSection, #printSection * {
        visibility: visible;
    }
    
    #printSection {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none;
    }
}

/* Emergency access view */
.read-only-banner {
    background-color: #fee2e2;
    color: #b91c1c;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Card hover effects */
.investment-type-btn:hover,
.loan-type-btn:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Investment/Loan details styling */
.detail-section {
    background-color: #f9fafb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 500;
    width: 40%;
    color: #4b5563;
}

.detail-value {
    width: 60%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.navbar {
            background-color: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.021);
        }
        .navbar-brand {
            color: #292a76;
            font-weight: 800;
        }
        
         /* Custom CSS for external classes and animations */
        .wow {
            visibility: hidden;
            animation-fill-mode: both;
        }
        
        .fadeIn {
            animation-name: fadeIn;
            animation-duration: 1s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .text-blue-900 {
            color: #1e3a8a;
        }
        
        .text-bluee {
            color: #3b82f6;
        }
        
        .text-reddd {
            color: #dc2626;
        }
        
        .text-greeen {
            color: #16a34a;
        }
        
        /* Services dropdown specific styles */
        .services-dropdown .dropdown-menu {
            display: none;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(10px);
            transition: all 0.3s ease;
            position: absolute;
            top: 100%;
            left: 50%;
            min-width: 800px;
            z-index: 1000;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }
        
        .services-section h6 {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #374151;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 0.5rem;
        }
        
        .dropdown-menu {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .dropdown-item {
            display: block;
            padding: 0.5rem 0;
            color: #6b7280;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .dropdown-item:hover {
            color: #1e3a8a;
            background-color: #f8fafc;
            padding-left: 0.5rem;
        }
        
        /* Mobile menu styles */
        .mobile-menu {
            display: none;
        }
        
        .mobile-menu.active {
            display: block;
        }
        
        /* Responsive adjustments */
        @media (max-width: 1024px) {
            .services-dropdown .dropdown-menu {
                min-width: 600px;
            }
            
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .services-dropdown .dropdown-menu {
                position: static;
                transform: none;
                min-width: 100%;
                margin-top: 0.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
            }
        }