/* Custom CSS for Income Expense App */

/* Sidebar brand icon animation */
.sidebar-brand-icon.rotate-n-15 {
    transform: rotate(-15deg);
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Badge customization */
.badge-success {
    background-color: #1cc88a;
}

.badge-danger {
    background-color: #e74a3b;
}

.badge-warning {
    background-color: #f6c23e;
}

.badge-info {
    background-color: #36b9cc;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: #5a5c69;
}

/* Button improvements */
.btn {
    border-radius: 0.35rem;
}

/* Login page improvements */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1050;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Custom alerts */
.alert {
    border: none;
    border-radius: 0.35rem;
}

/* Form improvements */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Status indicators */
.status-active {
    color: #1cc88a;
}

.status-inactive {
    color: #e74a3b;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}