/* Custom styles for the Finance Tracker application */

/* Override primary color to match theme */
:root {
    --bs-primary: #2196f3;
    --bs-primary-rgb: 33, 150, 243;
}

/* Enhanced UI styles */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Custom styling for cards */
.card {
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, #1e3a8a, #1e40af);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom right, #1e40af, #2563eb);
}

.card i {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
    color: #60a5fa;
}

.card:hover i {
    color: #93c5fd;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Style adjustments for financial entry cards */
.text-bg-success, .text-bg-danger, .text-bg-info, .text-bg-warning {
    transition: transform 0.2s ease-in-out;
}

.text-bg-success:hover, .text-bg-danger:hover, .text-bg-info:hover, .text-bg-warning:hover {
    transform: translateY(-5px);
}

/* Dashboard chart containers */
canvas {
    max-width: 100%;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(58, 134, 255, 0.1);
}

/* Custom badge styling */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Form adjustments */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Footer custom styling */
footer {
    margin-top: auto;
}

/* Improved styling for form validation */
.form-control.is-invalid, .form-select.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
}

/* Make code styling more readable */
code {
    color: #ff79c6;
    background-color: #2d3748;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}
