/* Personal Finance Management System - Custom Styles */

/* Sidebar Styling */
#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
}

.list-group-item:hover {
    background-color: #495057 !important;
    cursor: pointer;
}

.list-group-item.active {
    background-color: #007bff !important;
}

/* Main Content */
#page-content-wrapper {
    min-width: 0;
    width: 100%;
}

/* Cards */
.card {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Tables */
.table-responsive {
    border-radius: 10px;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #495057;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-radius: 10px 10px 0 0;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 5px;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Sidebar Toggle for Mobile */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }

    #sidebar-wrapper.show {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 100%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Dashboard Cards Animation */
.card {
    transition: transform 0.2s ease-in-out;
}

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

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Auth Pages */
.min-vh-100 {
    min-height: 100vh;
}

/* Chart Container */
canvas {
    max-height: 300px;
}

/* Utility Classes */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Active sidebar link */
.list-group-item.active {
    background-color: #0056b3 !important;
    border-left: 4px solid #ffc107;
}
