/* Pocket Spend - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* Card improvements */
.card {
    transition: box-shadow 0.2s ease;
}

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

/* Progress bar animations */
.progress-bar {
    transition: width 0.3s ease;
}

/* Table improvements */
.table th {
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Badge improvements */
.badge {
    font-weight: 500;
}

/* List group improvements */
.list-group-item {
    transition: background-color 0.15s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Navbar improvements */
.navbar-brand {
    font-weight: 600;
}

/* Modal improvements */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }

    h1, h2, h3 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    h4, h5 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.65rem 0.6rem;
        white-space: nowrap;
    }

    .list-group-item {
        padding: 0.85rem 1rem;
    }

    .list-group-item .small {
        font-size: 0.9rem;
    }

    .card {
        border-radius: 0.75rem;
    }

    .d-md-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .d-md-flex .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.4rem;
    }

    h1, h2, h3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    h4, h5 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .table-responsive {
        font-size: 0.88rem;
    }

    .list-group-item {
        padding: 0.9rem 1rem;
    }

    .card-header .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Fade in animation for pages */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Button hover effects */
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover {
    opacity: 0.9;
}

/* Card header styling */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

/* Link styling */
a.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Amount display */
.amount-positive {
    color: var(--success-color);
}

.amount-negative {
    color: var(--danger-color);
}

/* Dashboard stat cards */
.stat-card {
    border: none;
    border-radius: 0.5rem;
}

.stat-card .card-body {
    padding: 1.5rem;
}

/* Envelope card */
.envelope-card {
    border: 1px solid #dee2e6;
}

.envelope-card .card-header {
    background-color: #fff;
}

/* Quick action buttons */
.quick-actions .btn {
    padding: 0.5rem 1rem;
}
