/* Custom styles for ExpenseSync */

/* Enhanced card shadows */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #224abe, #1a3a8f);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(45deg, #858796, #6e707e);
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #6e707e, #5a5c69);
    transform: translateY(-1px);
}

/* Enhanced form controls */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Custom sidebar enhancements */
.sidebar-brand {
    background: linear-gradient(45deg, #4e73df, #224abe);
}

.sidebar .nav-item.active .nav-link {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white !important;
}

/* Enhanced progress bars */
.progress-bar {
    background: linear-gradient(45deg, #4e73df, #224abe);
}

/* Custom alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Enhanced table styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(45deg, #f8f9fc, #eaecf4);
    border: none;
    font-weight: 600;
}

/* Custom badge styles */
.badge {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Enhanced dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
}

/* Custom modal styles */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Enhanced input groups */
.input-group-text {
    background: linear-gradient(45deg, #eaecf4, #d1d3e2);
    border: none;
    font-weight: 500;
}

/* Custom file input styles */
.custom-file-label {
    border-radius: 0.375rem;
}

.custom-file-label::after {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
}

/* Enhanced pagination */
.page-link {
    border: none;
    color: #4e73df;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #224abe, #1a3a8f);
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom tooltip styles */
.tooltip-inner {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border-radius: 0.375rem;
}

/* Enhanced focus states */
.btn:focus,
.form-control:focus,
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Custom loading spinner */
.spinner-border-custom {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
}

/* Enhanced card headers */
.card-header {
    background: linear-gradient(45deg, #f8f9fc, #eaecf4);
    border: none;
    font-weight: 600;
}

/* Custom success/error states */
.text-success {
    color: #1cc88a !important;
}

.text-danger {
    color: #e74a3b !important;
}

.text-warning {
    color: #f6c23e !important;
}

.text-info {
    color: #36b9cc !important;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Custom chart container styles */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Enhanced sidebar toggler */
#sidebarToggle {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
    transition: all 0.3s ease;
}

#sidebarToggle:hover {
    background: linear-gradient(45deg, #224abe, #1a3a8f);
    transform: scale(1.1);
}

/* Custom notification styles */
.notification-badge {
    background: linear-gradient(45deg, #e74a3b, #be2617);
    border: 2px solid white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Enhanced form validation styles */
.was-validated .form-control:valid {
    border-color: #1cc88a;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231cc88a' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #e74a3b;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23e74a3b' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23e74a3b' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
} 