/* Client Redesign Specific Styles */

/* Modern Client Card System */
.client-modern-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.client-modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.client-card-header {
    background: var(--primary-gradient) !important;
    color: white !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
}

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

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

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

.client-header-icon {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.client-header-text {
    flex: 1;
}

.client-header-title {
    color: white !important;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.client-header-subtitle {
    color: rgba(255,255,255,0.9) !important;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.client-card-body {
    padding: 1.5rem;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

/* Buttons in header */
.client-card-header .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.client-card-header .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Client Information Card Redesign */
.client-info-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.client-info-header {
    position: relative;
    overflow: hidden;
}

.header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
}

.header-gradient::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-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.client-status-indicator-large {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

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

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

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

.client-header-info {
    flex: 1;
    color: white;
}

.client-name-large {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.client-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

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

.company-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.client-team-badge-header {
    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);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-info-body {
    padding: 2rem;
}

.client-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

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

.contact-section {
    margin-bottom: 2rem;
}

.client-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.client-contact-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.client-contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

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

.contact-details {
    flex: 1;
}

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

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

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

.client-contact-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.not-provided {
    color: #6c757d;
    font-style: italic;
}

.details-section {
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-card {
    background: white;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.1);
}

.detail-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.status-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.status-circle.status-active {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.status-circle.status-inactive {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.status-circle.status-archived {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.status-text-inactive {
    color: #ffc107;
}

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

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

.info-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.info-block-header i {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.info-block-content {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Customer Work History Redesign */
.work-history-redesigned {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.work-history-header-redesigned {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.work-history-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="work-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(%23work-dots)"/></svg>');
    opacity: 0.3;
}

.work-history-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.work-history-title-redesigned {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.work-history-title-redesigned i {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.work-history-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.work-stat-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    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-history-body-redesigned {
    padding: 0;
}

.work-profile-timeline {
    padding: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    border-left: 3px solid #e9ecef;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timeline-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.timeline-id-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

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

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

.timeline-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.timeline-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.timeline-btn-secondary {
    background: white;
    color: #6c757d;
    border-color: #e9ecef;
}

.timeline-btn-secondary:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.timeline-content {
    margin-bottom: 1rem;
}

.service-title-timeline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.timeline-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.timeline-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.timeline-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

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

.timeline-team {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .client-meta-info {
        justify-content: center;
    }
    
    .client-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .timeline-actions {
        align-self: stretch;
    }
    
    .timeline-btn {
        flex: 1;
        text-align: center;
    }
    
    .timeline-details {
        grid-template-columns: 1fr;
    }
    
    .work-history-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .work-history-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}