/* View Restructure Styles */

/* Quick Actions Top Section */
.quick-actions-top {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.quick-actions-top::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;
}

.quick-actions-top .row {
    position: relative;
    z-index: 1;
}

/* Quick Actions use existing styles from usersview.css - no additional styling needed */

/* Modern Card Header - Uses Theme Variables */
.card-header-modern {
    background: var(--primary-gradient) !important;
    color: white !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.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;
}

.card-header-modern .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.card-header-modern .header-icon {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.card-header-modern .header-title {
    color: white !important;
    margin-bottom: 0.15rem;
}

.card-header-modern .header-subtitle {
    color: rgba(255,255,255,0.9) !important;
    margin: 0;
}

/* Work Profile Badges Styling */
.work-profile-badges {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.work-profile-badges .badge {
    background: rgba(255,255,255,0.2) !important;
    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);
    white-space: nowrap;
}

/* Client Information Redesign - Compact List Style */
.client-info-redesign {
    padding: 0;
}

/* Client Information Sections - Equal Size and Compact */
.client-info-section {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-primary);
}

.client-info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    background: var(--bg-tertiary);
}

.section-header i {
    color: #667eea;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.info-items {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.info-item:hover {
    background: var(--bg-quaternary);
    border-color: var(--primary-color);
}

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

.info-label i {
    color: #667eea;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.team-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Teams List with Links */
.teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.team-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 2px solid transparent;
    opacity: 0.7;
}

.team-badge-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.team-badge-link.active {
    opacity: 1;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.team-badge-link.active:hover {
    transform: scale(1.07);
}

.team-badge-link i:first-child {
    font-size: 0.7rem;
}

.team-badge-link i.fa-check-circle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

/* Contact Section - Two Column Layout */
.contact-section {
    margin-bottom: 0.8rem;
}

.contact-cards {
    padding: 0 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.6rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #667eea;
}

.contact-card.primary::before {
    background: #007bff;
}

.contact-card:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.contact-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.contact-icon.email {
    background: #007bff;
}

.contact-icon.phone {
    background: #28a745;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.contact-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-action {
    margin-left: 0.5rem;
}

.action-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.65rem;
}

.action-btn:hover {
    background: #764ba2;
    color: white;
    text-decoration: none;
}

/* Business Section - List Style */
.business-section {
    margin-bottom: 0.8rem;
}

.business-grid {
    padding: 0 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.business-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.6rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.business-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.business-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 0.7rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.business-content {
    flex: 1;
}

.business-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.business-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
}


.no-team {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
}

/* Sidebar Stats Cards */
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

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

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

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

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

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

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

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

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

.sidebar-stat-card .stat-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.sidebar-stat-card .stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: center;
}

.sidebar-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--stat-color);
    line-height: 1;
    margin: 0;
}

.sidebar-stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

/* Sidebar Title */
.sidebar-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-title::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;
}

.sidebar-title h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title i {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.sidebar-stats-container {
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
}

/* Redesigned Client Info Sections - Equal Size */
.client-info-section-redesigned {
    background: white;
    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;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.client-info-section-redesigned:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.section-header-redesigned {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.section-header-redesigned::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;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.section-title {
    position: relative;
    z-index: 1;
    flex: 1;
}

.section-title h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.section-title p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.info-items-redesigned {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item-redesigned {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.info-item-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 0 20px 20px 0;
}

.info-item-redesigned:hover {
    background: #f1f3f4;
    border-color: #667eea;
    transform: translateX(3px);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.info-item-redesigned:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.contact-link-redesigned {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.contact-link-redesigned:hover {
    color: #764ba2;
    text-decoration: underline;
}

.info-action {
    flex-shrink: 0;
}

.action-btn-redesigned {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.action-btn-redesigned:hover {
    background: #764ba2;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.team-badge-redesigned {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.team-badge-redesigned:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.team-badge-redesigned i {
    font-size: 0.75rem;
}

/* Customer Work History Section */
.work-profile-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.work-profile-empty-state::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;
}

.work-profile-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

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

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

.work-profile-content {
    padding: 0;
}

.work-profile-content-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.work-profile-content-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    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: 8px;
}

/* Work Profile Cards Grid */
.work-profile-cards-grid {
    padding: 2rem;
}

.work-profile-card-horizontal {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    color: var(--text-primary);
}

.work-profile-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.card-header-horizontal {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-header-horizontal::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;
}

.profile-id-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    align-self: center;
}

.profile-date-small {
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.profile-date-small i {
    font-size: 0.65rem;
}

.card-body-horizontal {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-title-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.service-title-horizontal h6 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    align-self: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badges-horizontal {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.status-badges-horizontal .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.amount-display-horizontal {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.amount-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #667eea;
    display: block;
}

.team-info-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

.team-info-horizontal i {
    color: #667eea;
    font-size: 0.65rem;
}

.card-footer-horizontal {
    padding: 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.card-footer-horizontal .btn {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 0;
}

.card-footer-horizontal .btn:hover {
    transform: translateY(-1px);
}

.card-footer-horizontal .btn i {
    font-size: 0.65rem;
}

/* Work Profile Pagination */
.work-profile-pagination {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    text-align: center;
}

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

.pagination-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.pagination-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.pagination-actions .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.view-all-section {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-top: 1px solid #e9ecef;
}

.view-all-section .btn {
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.view-all-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Hidden profiles for pagination */
#hiddenProfiles {
    display: none;
}

.hidden-profile-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .sidebar-stat-card {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .sidebar-stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .sidebar-stat-card .stat-number {
        font-size: 1.3rem;
    }
    
    .sidebar-stat-card .stat-label {
        font-size: 0.75rem;
    }
    
    .work-profile-cards-grid {
        padding: 1.5rem;
    }
    
    .work-profile-cards-grid .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Adjust card size for medium screens (4 columns) */
    .work-profile-card-horizontal {
        min-height: 260px;
    }
    
    .service-title-horizontal h6 {
        font-size: 0.85rem;
    }
    
    .amount-value {
        font-size: 1rem;
    }
    
    /* Responsive adjustments for redesigned client info sections */
    .section-header-redesigned {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .info-items-redesigned {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .info-item-redesigned {
        padding: 0.875rem;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    /* Responsive adjustments for client info sections */
    .section-header {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-header i {
        font-size: 0.9rem;
    }
    
    .info-items {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .team-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .teams-list {
        gap: 0.4rem;
    }
    
    .team-badge-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
}

@media (max-width: 768px) {
    .quick-actions-top {
        padding: 1rem;
    }
    
    .sidebar-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-stat-card {
        min-width: auto;
        padding: 1rem;
    }
    
    .sidebar-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .sidebar-stat-card .stat-number {
        font-size: 1.2rem;
    }
    
    .sidebar-stat-card .stat-label {
        font-size: 0.7rem;
    }
    
    .work-profile-cards-grid {
        padding: 1rem;
    }
    
    .work-profile-empty-state {
        padding: 3rem 1.5rem;
    }
    
    .work-profile-empty-state .empty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pagination-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .card-footer-horizontal {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .card-footer-horizontal .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    /* Adjust card size for small screens (2 columns) */
    .work-profile-card-horizontal {
        min-height: 240px;
    }
    
    .service-title-horizontal h6 {
        font-size: 0.8rem;
    }
    
    .amount-value {
        font-size: 0.95rem;
    }
    
    /* Mobile responsive for redesigned client info sections */
    .section-header-redesigned {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title h6 {
        font-size: 1rem;
    }
    
    .section-title p {
        font-size: 0.8rem;
    }
    
    .info-items-redesigned {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .info-item-redesigned {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .info-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .action-btn-redesigned {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .team-badge-redesigned {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    /* Mobile responsive for client info sections */
    .section-header {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .section-header i {
        font-size: 0.85rem;
    }
    
    .info-items {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 0.625rem;
    }
    
    .info-label {
        font-size: 0.65rem;
        justify-content: center;
    }
    
    .info-value {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .team-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .teams-list {
        gap: 0.3rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-badge-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .team-badge-link i:first-child {
        font-size: 0.6rem;
    }
    
    .team-badge-link i.fa-check-circle {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .work-profile-cards-grid .row {
        margin: 0;
    }
    
    .work-profile-cards-grid .col-lg-2,
    .work-profile-cards-grid .col-md-4,
    .work-profile-cards-grid .col-sm-6,
    .work-profile-cards-grid .col-12 {
        padding: 0.4rem;
    }
    
    /* Single column layout for extra small screens */
    .work-profile-card-horizontal {
        min-height: 220px;
    }
    
    .service-title-horizontal h6 {
        font-size: 0.85rem;
    }
    
    .amount-value {
        font-size: 1rem;
    }
    
    .card-body-horizontal {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .card-header-horizontal {
        padding: 0.6rem 0.75rem;
    }
    
    .profile-id-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .profile-date-small {
        font-size: 0.65rem;
    }
    
    .card-footer-horizontal .btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .status-badges-horizontal .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .category-badge-small {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Extra small screens for redesigned client info sections */
    .client-info-section-redesigned {
        margin-bottom: 1rem;
    }
    
    .section-header-redesigned {
        padding: 0.875rem;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .section-title h6 {
        font-size: 0.95rem;
    }
    
    .section-title p {
        font-size: 0.75rem;
    }
    
    .info-items-redesigned {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .info-item-redesigned {
        padding: 0.625rem;
        gap: 0.625rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-item-redesigned::before {
        width: 100%;
        height: 3px;
        border-radius: 20px 20px 0 0;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .info-content {
        text-align: center;
    }
    
    .info-label {
        font-size: 0.65rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .action-btn-redesigned {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
    
    .team-badge-redesigned {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    /* Extra small screens for client info sections */
    .client-info-section {
        margin-bottom: 1rem;
    }
    
    .section-header {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .section-header i {
        font-size: 0.8rem;
    }
    
    .info-items {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .info-item {
        padding: 0.5rem;
        text-align: center;
    }
    
    .info-label {
        font-size: 0.6rem;
        justify-content: center;
    }
    
    .info-value {
        font-size: 0.75rem;
    }
    
    .team-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .teams-list {
        gap: 0.25rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-badge-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
        gap: 0.2rem;
        justify-content: center;
        text-align: center;
    }
    
    .team-badge-link i:first-child {
        font-size: 0.55rem;
    }
    
    .team-badge-link i.fa-check-circle {
        font-size: 0.65rem;
    }
}