/* Hero Section Styles */
.hero-section {
    margin: 0 -1.5rem 0 -1.5rem;
    padding: 0;
}

.hero-card {
    position: relative;
    background: var(--primary-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow-color);
    margin: 0 1.5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

.hero-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.client-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.3);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.status-active {
    background-color: #28a745;
}

.status-indicator.status-inactive {
    background-color: #ffc107;
}

.status-indicator.status-archived {
    background-color: #6c757d;
}

.client-details {
    flex: 1;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-id {
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.separator {
    opacity: 0.6;
}

.company-name {
    font-weight: 500;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item i {
    opacity: 0.8;
}

.team-badge-hero {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.85rem;
}

.status-badge i {
    font-size: 0.6rem;
}



.status-badge.status-archived {
    background: rgba(108, 117, 125, 0.3);
}

.hero-actions {
    text-align: right;
}

.action-buttons {
    margin-bottom: 1.5rem;
}

.btn-hero {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.btn-hero.btn-primary {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.btn-hero.btn-primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-hero.btn-success,
.btn-hero.btn-info,
.btn-hero.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.3);
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero.btn-success:hover,
.btn-hero.btn-info:hover,
.btn-hero.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

/* Quick Stats Section */
.quick-stats-section {
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

/* Stats Section - Modern Design */
.stats-section.mb-5 {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.stats-section.mb-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(102,126,234,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.stats-section.mb-5 .row {
    position: relative;
    z-index: 1;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color), var(--stat-color-light));
}

.stat-card.stat-primary {
    --stat-color: #007bff;
    --stat-color-light: #66b3ff;
}

.stat-card.stat-success {
    --stat-color: #28a745;
    --stat-color-light: #71dd8a;
}

.stat-card.stat-warning {
    --stat-color: #ffc107;
    --stat-color-light: #ffda6a;
}

.stat-card.stat-info {
    --stat-color: #17a2b8;
    --stat-color-light: #6edff6;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--stat-color);
    background: linear-gradient(135deg, var(--stat-color), var(--stat-color-light));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    margin-bottom: auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--stat-color-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stat-color);
    font-size: 0.8rem;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
/*
.card-header-modern {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    padding: 1.5rem !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
}

.card-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}
*/
.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    background: #e9ecef !important;
    color: #495057 !important;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.header-title {
    color: #2c3e50 !important;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.header-subtitle {
    color: #6c757d !important;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-body-modern {
    padding: 1.25rem;
}

/* Info Grid Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-label i {
    color: #007bff;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.team-badge-modern {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.additional-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.info-section {
    margin-bottom: 1rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.6rem;
}

.section-label i {
    color: #007bff;
}

.section-content {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.5;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Action Grid Styles */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Quick Actions Grid Styles */
.quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.action-button.action-email:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #e6f3ff);
}

.action-button.action-call:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9, #e6f7e6);
}

.action-button.action-work:hover {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #f8feff, #e6f9fc);
}

.action-button.action-print:hover {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.action-button.action-edit:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #e6f3ff);
}

.action-button.action-list:hover {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #f8feff, #e6f9fc);
}

.action-button.action-delete:hover {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8, #ffe6e6);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.action-email .action-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.action-call .action-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.action-work .action-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.action-print .action-icon {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.action-edit .action-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.action-list .action-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.action-delete .action-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.action-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Enhanced Work Profile History Styles */
.bg-gradient-primary {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.work-profile-history-header {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 2rem;
}

.work-profile-history-header * {
    color: white !important;
}

.work-profile-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.work-profile-badges .badge {
    background: rgba(255,255,255,0.2);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.work-profile-empty-state {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1.5rem;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.work-profile-empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.work-profile-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
    position: relative;
    z-index: 2;
}

.work-profile-empty-state h5 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.work-profile-empty-state p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 350px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.work-profile-empty-state .btn {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.work-profile-empty-state .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.5);
}

.stats-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 0;
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(102,126,234,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--stat-gradient);
    border-radius: 20px 20px 0 0;
}

.stats-card.border-start.border-primary {
    --stat-gradient: linear-gradient(90deg, #007bff, #66b3ff);
    --stat-color: #007bff;
    --stat-bg: rgba(0, 123, 255, 0.1);
}

.stats-card.border-start.border-success {
    --stat-gradient: linear-gradient(90deg, #28a745, #71dd8a);
    --stat-color: #28a745;
    --stat-bg: rgba(40, 167, 69, 0.1);
}

.stats-card.border-start.border-warning {
    --stat-gradient: linear-gradient(90deg, #ffc107, #ffda6a);
    --stat-color: #ffc107;
    --stat-bg: rgba(255, 193, 7, 0.1);
}

.stats-card.border-start.border-info {
    --stat-gradient: linear-gradient(90deg, #17a2b8, #6edff6);
    --stat-color: #17a2b8;
    --stat-bg: rgba(23, 162, 184, 0.1);
}

.stats-card.border-start.border-danger {
    --stat-gradient: linear-gradient(90deg, #dc3545, #f5a6a6);
    --stat-color: #dc3545;
    --stat-bg: rgba(220, 53, 69, 0.1);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--stat-color);
}

.stats-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--stat-bg);
    border-radius: 20px;
    z-index: 0;
}

.stats-card .d-flex {
    position: relative;
    z-index: 1;
}

.stats-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--stat-gradient);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.stats-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--stat-color);
    margin: 0;
    line-height: 1;
}

.stats-card .small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-profile-content {
    padding: 1.5rem;
    background: white;
}

.work-profile-content-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.work-profile-content-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.work-profile-content-title i {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
}

.view-toggle-buttons {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.25rem;
    border: 1px solid #e9ecef;
}

.view-toggle-buttons .btn {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.view-toggle-buttons .btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

.view-toggle-buttons .btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.work-profile-card {
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.work-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.work-profile-card:hover::before {
    opacity: 1;
}

.work-profile-card .card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.work-profile-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.work-profile-card .card-body {
    padding: 1.5rem;
}

.work-profile-card .service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-profile-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.work-profile-card .status-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.work-profile-card .status-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.work-profile-card .status-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.work-profile-card .status-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.work-profile-card .amount-display {
    background: linear-gradient(135deg, #f8fff9 0%, #e6f7e6 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.work-profile-card .amount-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #28a745;
    margin: 0;
    line-height: 1;
}

.work-profile-card .amount-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-top: 0.25rem;
}

.work-profile-card .card-details {
    border-top: 1px solid #f8f9fa;
    padding-top: 1rem;
    margin-top: 1rem;
}

.work-profile-card .detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.work-profile-card .detail-row:last-child {
    margin-bottom: 0;
}

.work-profile-card .detail-icon {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.work-profile-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-profile-card .time-ago {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.work-profile-card .view-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.work-profile-card .view-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    color: white;
    text-decoration: none;
}

.hover-shadow-lg {
    transition: box-shadow 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: rgba(0,0,0,0.02);
}

.work-profile-cards .card {
    min-height: 450px;
}

.work-profile-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.work-profile-table .table {
    margin: 0;
}

.work-profile-table .table th {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-profile-table .table td {
    padding: 1.25rem 1rem;
    border-top: 1px solid #f8f9fa;
    vertical-align: middle;
}

.work-profile-table .table tbody tr {
    transition: all 0.3s ease;
}

.work-profile-table .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    transform: scale(1.01);
}

.view-all-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.view-all-section .btn {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
}

/* Work Profile List Styles */
.work-profile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-profile-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.work-profile-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.work-profile-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
}

.work-profile-id {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.profile-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-profile-actions {
    display: flex;
    gap: 0.5rem;
}

.work-profile-item-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.detail-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    min-width: 60px;
}

.amount-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
}

.team-name {
    color: #495057;
    font-weight: 500;
}

/* View Toggle Buttons */
.btn-group .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .work-profile-cards .col-xl-2 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (max-width: 1400px) {
    .work-profile-cards .col-xl-2 {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 1200px) {
    .work-profile-cards .col-xl-2,
    .work-profile-cards .col-lg-3 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        padding: 2rem;
    }
    
    .work-profile-content {
        padding: 2rem;
    }
    
    .work-profile-content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .stats-section .row {
        gap: 0.75rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stats-card h4 {
        font-size: 1.5rem;
    }
    
    .col-lg {
        flex: 0 0 auto;
        width: 50%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin: 0 -1rem 0 -1rem;
    }
    
    .hero-card {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .hero-content {
        padding: 0.75rem 0;
    }
    
    .hero-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .action-buttons {
        margin-bottom: 1rem;
    }
    
    .work-profile-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .work-profile-actions {
        align-self: stretch;
    }
    
    .work-profile-actions .btn {
        flex: 1;
    }
    
    .detail-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stats-section {
        padding: 0.75rem;
    }
    
    .stats-section .row {
        gap: 0.25rem;
    }
    
    .stats-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stats-icon {
        margin-bottom: 0;
        margin-right: 0 !important;
        align-self: center;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stats-card h4 {
        font-size: 1.4rem;
    }
    
    .col-lg {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .work-profile-content {
        padding: 1rem;
    }
    
    .work-profile-content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .work-profile-content-title {
        font-size: 1.1rem;
    }
    
    .work-profile-card .card-body {
        padding: 1.25rem;
    }
    
    .work-profile-card .amount-display {
        padding: 1.25rem;
    }
    
    .work-profile-card .amount-value {
        font-size: 1.5rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .work-profile-empty-state {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }
    
    .work-profile-empty-state .empty-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .work-profile-empty-state h5 {
        font-size: 1.3rem;
    }
    
    .work-profile-empty-state p {
        font-size: 1rem;
    }
    
    .view-all-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .view-all-section .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .work-profile-history-header {
        padding: 1.5rem;
    }
    
    .work-profile-history-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .work-profile-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stats-section .row {
        gap: 0.25rem;
    }
    
    .stats-card {
        padding: 0.5rem;
    }
    
    .stats-card h4 {
        font-size: 1.2rem;
    }
    
    .stats-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .work-profile-content-header {
        padding-bottom: 0.75rem;
    }
    
    .view-toggle-buttons {
        width: 100%;
    }
    
    .view-toggle-buttons .btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .work-profile-cards .col-xl-2,
    .work-profile-cards .col-lg-3,
    .work-profile-cards .col-md-4,
    .work-profile-cards .col-sm-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .work-profile-card .service-title {
        font-size: 1rem;
    }
    
    .work-profile-card .status-payment-grid {
        gap: 0.5rem;
    }
    
    .work-profile-card .status-item {
        padding: 0.75rem;
    }
    
    .work-profile-card .amount-value {
        font-size: 1.3rem;
    }
    
    .work-profile-card .detail-row {
        font-size: 0.85rem;
    }
    
    .work-profile-card .card-footer {
        padding: 0.75rem 1.25rem;
    }
    
    .work-profile-card .time-ago {
        font-size: 0.75rem;
    }
    
    .work-profile-card .view-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Animation for view switching */
#cardView, #tableView {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Enhanced table styling */
.table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
/*    padding: 1rem 0.75rem; */
}

/* Badge improvements */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

.badge.rounded-pill {
    padding: 0.35em 0.8em;
}

/* Card header gradient */
.card-header.bg-gradient-primary {
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Sidebar Modern Styling */
.card.border-0.shadow-soft {
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card.border-0.shadow-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Work Profile Management Styles */
.col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
}
@media (max-width: 991.98px) {
    .col-lg-2 {
        width: 50%;
    }
}
@media (max-width: 575.98px) {
    .col-lg-2 {
        width: 100%;
    }
}

/* Enhanced Modern Statistics Cards */
.stats-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 80px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #e9ecef), var(--accent-color-light, #f8f9fa));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

/* Apply hover effects to all clickable cards */
a .stats-card {
    cursor: pointer;
}

a .stats-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-color, rgba(0,0,0,0.12));
}

a .stats-card:hover::before {
    transform: scaleX(1);
}

/* Active state for filter cards */
.stats-card.active {
    border-color: var(--accent-color, #0d6efd);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    transform: translateY(-3px) scale(1.01);
}

.stats-card.active::before {
    transform: scaleX(1);
}

.stats-card .card-body {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    text-align: left;
    position: relative;
    z-index: 2;
}

.stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.stats-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    pointer-events: none;
}

.stats-icon i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.stats-card:hover .stats-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevent overflow */
}

.stats-number {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.65rem;
    color: #64748b;
    margin: 0.2rem 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.8;
}

.stats-card .card-footer {
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.6rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Color variants with gradients */
.stats-card[data-color="primary"] {
    --accent-color: #0d6efd;
    --accent-color-light: #6ea8fe;
}
.stats-card[data-color="warning"] {
    --accent-color: #ffc107;
    --accent-color-light: #ffda6a;
}
.stats-card[data-color="success"] {
    --accent-color: #198754;
    --accent-color-light: #75b798;
}
.stats-card[data-color="danger"] {
    --accent-color: #dc3545;
    --accent-color-light: #ea868f;
}
.stats-card[data-color="info"] {
    --accent-color: #0dcaf0;
    --accent-color-light: #6edff6;
}

/* Pulse animation for urgent priority */
.stats-card.urgent-pulse {
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    }
}

@media (max-width: 768px) {
    .stats-card {
        height: 70px;
    }
    .stats-card .card-body {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    .stats-number {
        font-size: 1rem;
    }
    .stats-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .stats-icon i {
        font-size: 0.9rem;
    }
    .stats-label {
        font-size: 0.6rem;
    }
    .stats-card .card-footer {
        padding: 0.3rem 0.6rem;
        font-size: 0.55rem;
    }
}

/* Priority Filter Cards Section */
.priority-filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.priority-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.02) 0%, rgba(220, 53, 69, 0.02) 100%);
    pointer-events: none;
}

.priority-filter-section h6 {
    position: relative;
    z-index: 2;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-filter-section h6 i {
    color: #6c757d;
    font-size: 1rem;
}

/* Priority Cards - Smaller Variant */
.priority-stats-card {
    height: 75px;
}

.priority-stats-card .stats-icon {
    width: 40px;
    height: 40px;
}

.priority-stats-card .stats-number {
    font-size: 1.2rem;
}

.priority-stats-card .stats-label {
    opacity: 0.9;
}

.priority-stats-card[data-color="info"] .stats-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.priority-stats-card[data-color="primary"] .stats-icon {
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
}

.priority-stats-card[data-color="warning"] .stats-icon {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
}

.priority-stats-card[data-color="danger"] .stats-icon {
    background: linear-gradient(135deg, #ffebee, #ef5350);
}

@media (max-width: 768px) {
    .priority-stats-card {
        height: 65px;
    }
    .priority-stats-card .stats-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .priority-stats-card .stats-number {
        font-size: 1rem;
    }
}

/* Join category tabs with work profiles list */
.category-tabs-card {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.work-profiles-card {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
}

.heartbeat {
    animation: heartbeat 1.2s infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* Underline for active category tab */
.category-tabs-card .nav-link.active {
    border-bottom: 3px solid #0d6efd;
    color: #0d6efd;
    font-weight: 600;
    background: #f8f9fa;
}

/* Work Profile Management Styles */
.col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
}
@media (max-width: 991.98px) {
    .col-lg-2 {
        width: 50%;
    }
}
@media (max-width: 575.98px) {
    .col-lg-2 {
        width: 100%;
    }
}

/* Enhanced Modern Statistics Cards */
.stats-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #e9ecef), var(--accent-color-light, #f8f9fa));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

/* Apply hover effects to all clickable cards */
a .stats-card {
    cursor: pointer;
}

a .stats-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-color, rgba(0,0,0,0.12));
}

a .stats-card:hover::before {
    transform: scaleX(1);
}

/* Active state for filter cards */
.stats-card.active {
    border-color: var(--accent-color, #0d6efd);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    transform: translateY(-3px) scale(1.01);
}

.stats-card.active::before {
    transform: scaleX(1);
}

.stats-card .card-body {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    text-align: left;
    position: relative;
    z-index: 2;
}

.stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.stats-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    pointer-events: none;
}

.stats-icon i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.stats-card:hover .stats-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevent overflow */
}

.stats-number {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.65rem;
    color: #64748b;
    margin: 0.2rem 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.8;
}

.stats-card .card-footer {
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.6rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Color variants with gradients */
.stats-card[data-color="primary"] {
    --accent-color: #0d6efd;
    --accent-color-light: #6ea8fe;
}
.stats-card[data-color="warning"] {
    --accent-color: #ffc107;
    --accent-color-light: #ffda6a;
}
.stats-card[data-color="success"] {
    --accent-color: #198754;
    --accent-color-light: #75b798;
}
.stats-card[data-color="danger"] {
    --accent-color: #dc3545;
    --accent-color-light: #ea868f;
}
.stats-card[data-color="info"] {
    --accent-color: #0dcaf0;
    --accent-color-light: #6edff6;
}

/* Pulse animation for urgent priority */
.stats-card.urgent-pulse {
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    }
}

@media (max-width: 768px) {
    .stats-card {
        height: 70px;
    }
    .stats-card .card-body {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    .stats-number {
        font-size: 1rem;
    }
    .stats-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .stats-icon i {
        font-size: 0.9rem;
    }
    .stats-label {
        font-size: 0.6rem;
    }
    .stats-card .card-footer {
        padding: 0.3rem 0.6rem;
        font-size: 0.55rem;
    }
}

