.card-item {
    transition: transform 0.2s;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-2px);
}

.sensitive-data {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}

.verification-modal {
    backdrop-filter: blur(5px);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.navbar-brand {
    font-weight: bold;
}

.progress {
    height: 8px;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.375rem;
}

.form-control {
    border-radius: 0.375rem;
}

.modal-content {
    border-radius: 0.5rem;
}

body {
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    padding: .75rem 1rem;
    font-size: 1rem;
    border-radius: 0;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: #495057;
}

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

/* Contact item styling */
.contact-item-wrapper {
    position: relative;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.contact-item-wrapper:hover {
    background-color: #f8f9fa;
}

.contact-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.contact-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phone-icon:hover {
    background-color: #d4edda;
    border-color: #28a745;
}

.zalo-icon:hover {
    background-color: #d1ecf1;
    border-color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-icons {
        display: inline !important;
        opacity: 1 !important;
    }
    
    .contact-item-wrapper {
        margin-bottom: 8px;
    }
}

.card-img-container {
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.02);
}

.card-img-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-container {
        height: 150px !important;
    }
}

/* Fallback image styling */
.fallback-card-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.category-details {
    max-height: 80px;
    overflow-y: auto;
}

.badge {
    font-size: 0.7em;
}

.card-details small {
    font-size: 0.8em;
}

.category-details .badge {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formatted-number {
    text-align: right;
    font-weight: 500;
}

.formatted-number:focus {
    background-color: #f8f9fa;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.formatted-number.is-invalid {
    border-color: #dc3545;
}

.formatted-number.is-valid {
    border-color: #198754;
}

/* Style for input groups with currency symbols */
.input-group .input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
    font-weight: 600;
}

/* Filter section styling */
.filter-controls .form-select-sm {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background-color: white;
}

.filter-controls .form-select-sm:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Filter result count styling */
#filterResultCount {
    font-size: 0.875rem;
    min-width: 120px;
    text-align: right;
}

/* Enhanced table hover effect */
#monthlySpendingTable tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Filter controls styling */
.form-select-sm:focus,
.form-control-sm:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Result count styling */
#cardFilterResultCount {
    font-size: 0.875rem;
    min-width: 100px;
    text-align: right;
}