/**
 * Member Profile Page Styles
 * LinkedIn-style member profile page
 */

/* General and main structure */

.member-profile-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* General cards */

.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    padding: 16px 24px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

/* Actions wrapper for buttons in card header */
.card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Reset margin for buttons inside card-header-actions */
.card-header-actions .add-btn,
.card-header-actions .edit-btn,
.card-header-actions .restore-experience-btn,
.card-header-actions .restore-education-btn {
    margin-right: 0 !important;
}

/* Action buttons group - keeps buttons together as one unit */
.action-buttons-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0px !important;
    position: relative !important;
}

.action-buttons-group button {
    position: static !important;
    margin: 0 !important;
    float: none !important;
}

/* Make add button visible with color */
.card-header-actions .add-btn {
    color: #0a66c2;
    font-weight: 600;
    font-size: 24px;
}

.card-header-actions .add-btn:hover {
    color: #004182;
    transform: scale(1.1);
}

/* Action buttons group - keeps buttons together */
.action-buttons-group {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
}

/* Reset margin for buttons inside action-buttons-group */
.action-buttons-group .icon-btn,
.action-buttons-group button {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.card-content {
    color: #333333;
    line-height: 1.6;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Edit and action buttons */

.edit-btn,
.add-btn,
.delete-btn {
  background: transparent !important;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 0;
    transition: none;
	margin-right: auto;
}

.edit-btn:hover,
.add-btn:hover {
    background: transparent;
}

.delete-btn {
    color: #d32f2f;
}

.delete-btn:hover {
    background: #ffebee;
}

.profile-header-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

/* Top profile card */

.profile-header-card {
    text-align: right;
}

.profile-main-info {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar {
    flex-shrink: 0;
    align-self: stretch;
	margin-top: 15px;
    position: relative;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 0;
    object-fit: cover;
    border: none;
}

/* Editable avatar – camera overlay */
.profile-avatar--editable {
    cursor: pointer;
}

.profile-avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-avatar--editable:hover .profile-avatar-edit-overlay {
    opacity: 1;
}

/* Uploading spinner state */
.profile-avatar--uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.profile-avatar--uploading img {
    opacity: 0.5;
}

.profile-details {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-name {
    font-size: 30px;
    font-weight: 700;
    margin: 0px;
    color: #1a1a1a;
}

.profile-title {
    font-size: 18px;
    color: #444444;
    margin: 0px;
    font-weight: 400;
}

.profile-location,
.profile-email {
    font-size: 12px;
    color: #666666;
    margin: 0px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.profile-email a {
    color: #666666;
    text-decoration: none;
}

.profile-email a:hover {
    color: #0a66c2;
    text-decoration: underline;
}

/* Status pills/badges */

.profile-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
    padding-top: 5px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    background: #ede9fe;
    color: #6b21a8;
    border: none;
}

.status-pill__icon {
    font-size: 14px;
}

.status-pill__text {
    white-space: nowrap;
}

/* Main action buttons */

.profile-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-blue {
    background: #0a66c2;
    color: #ffffff;
}

.btn-blue:hover {
    background: #004182;
}

.btn-purple {
    background: #7c3aed;
    color: #ffffff;
}

.btn-purple:hover {
    background: #5b21b6;
}

.btn-outline {
    background: #ffffff;
    color: #666666;
    border: 2px solid #e0e0e0;
}

.btn-outline:hover {
    background: #f5f5f5;
}

/* About card */

.about-card .placeholder-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

.badge-flag {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Skills card */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333333;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.skill-tag:hover {
    background: #e0e0e0;
}

/* Communities card */

.communities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.community-btn {
    background: #ffffff;
    border: 2px solid #1a56db;
    color: #1a56db;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.community-btn:hover {
    background: #1a56db;
    color: #ffffff;
}

/* Experience card */

.experience-item,
.education-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-item:first-child,
.education-item:first-child {
    padding-top: 0;
}

.experience-actions,
.education-actions {
    position: absolute;
    top: 16px;
    left: 0;
    display: flex;
    gap: 4px;
}

.experience-title,
.education-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #000000;
    padding-left: 80px;
}

.experience-company,
.experience-dates,
.experience-location,
.education-institution,
.education-dates {
    font-size: 14px;
    color: #666666;
    margin: 4px 0;
    padding-left: 80px;
}

.experience-description {
    font-size: 14px;
    color: #333333;
    margin: 8px 0 0 0;
    line-height: 1.5;
    padding-left: 80px;
}

/* CV card */

.cv-card .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-card .card-header h2 {
    margin-left: auto;
}

.cv-card .cv-edit-btn,
.cv-card .cv-delete-btn {
    margin-right: 0 !important;
}

.file-icon {
    font-size: 18px;
}

.file-name {
    font-size: 14px;
    color: #0a66c2;
    font-weight: 500;
}

/* CV Upload Modal */

.cv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    direction: rtl;
}

.cv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.cv-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cv-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px;
}
.cv-modal-close:hover { color: #333; }

.cv-modal-body {
    padding: 28px 24px 32px;
}

.cv-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #c5c5c5;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.cv-upload-area.cv-drag-over {
    border-color: #1a56db;
    background: #eff5ff;
}

.cv-upload-icon { font-size: 40px; }

.cv-upload-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.cv-upload-hint {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.cv-upload-browse-btn {
    margin-top: 8px;
    padding: 8px 24px;
    border: 1px solid #1a56db;
    border-radius: 8px;
    background: #fff;
    color: #1a56db;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cv-upload-browse-btn:hover {
    background: #1a56db;
    color: #fff;
}

/* progress */
.cv-upload-progress { text-align: center; }
.cv-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.cv-progress-fill {
    height: 100%;
    background: #1a56db;
    border-radius: 4px;
    width: 0;
    transition: width .25s;
}
.cv-progress-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* processing state */
.cv-processing-state {
    text-align: center;
    padding: 20px 0;
}
.cv-processing-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #1a56db;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: cv-spin 0.8s linear infinite;
}
@keyframes cv-spin {
    to { transform: rotate(360deg); }
}
.cv-processing-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}
.cv-processing-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* success state */
.cv-upload-success {
    text-align: center;
    padding: 24px 0;
}
.cv-success-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.cv-success-text {
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}

/* error */
.cv-upload-error { text-align: center; margin-top: 12px; }
.cv-error-text { color: #dc2626; font-size: 14px; margin: 0; }

/* CV delete button style */
.cv-card .cv-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: .7;
    transition: opacity .2s;
}
.cv-card .cv-delete-btn:hover { opacity: 1; }

/* Responsive Design */

@media (max-width: 768px) {
    .member-profile-wrapper {
        padding: 10px;
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .profile-main-info {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-avatar {
        order: 1;
    }
    
    .profile-details {
        order: 2;
        text-align: center;
    }
    
    .profile-location,
    .profile-email {
        justify-content: center;
    }
    
    .profile-status-badges {
        justify-content: center;
    }
    
    .profile-action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
    }

    .profile-avatar-edit-overlay {
        height: 28px;
        opacity: 1;
    }

    .profile-avatar-edit-overlay svg {
        width: 16px;
        height: 16px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-title {
        font-size: 16px;
    }
    
    .experience-title,
    .experience-company,
    .experience-dates,
    .experience-location,
    .experience-description,
    .education-title,
    .education-institution,
    .education-dates {
        padding-left: 60px;
    }
    
    .experience-actions,
    .education-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .card-header h2 {
        font-size: 18px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .skills-list,
    .communities-list {
        flex-direction: column;
    }
    
    .skill-tag,
    .community-btn {
        width: 100%;
        text-align: center;
    }
}

h2.community-member-name{
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.profile-card.about-card .card-footer{
  background:#E3F6EE;
  padding:8px 10px;
  border-radius:8px;
  width:100%;
  box-sizing:border-box;
}

.profile-card.about-card .badge-flag{
  background:transparent;
  color:#0C6B55;
  font-weight: 600;
  margin-inline-end: 12px;
}

.profile-card.about-card .card-footer p{
  margin:0;
  color:#0C6B55;
}
.profile-card.about-card .badge-flag{
  padding: 0;
  font-size: 16px;
}
.goal-display {
  font-size: 14px;
}

.member-profile-wrapper,
.member-profile-wrap{
  max-width: 758px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

.member-profile-wrapper .profile-card,
.member-profile-wrap .profile-card{
  width: 100% !important;
  max-width: 100% !important;
}
.communities-list .community-btn,
.communities-list .community-btn:link,
.communities-list .community-btn:visited{
  color:#1a56db !important;
  border-color:#1a56db !important;
	
}

.communities-list .community-btn:hover{
  background:#1a56db !important;
  color:#fff !important;
}
.cv-file{
  display:inline-flex !important;
  align-items:center;
  gap:12px;
  padding:6px;
  background:#ffffff;
  border:2px solid #1a56db !important;
  border-radius:8px;
  color:#1a56db !important;
  width:fit-content !important;
}

.cv-file .file-name{
  color:#1a56db !important;
  text-decoration:none;
}

.cv-file .file-name:hover{
  text-decoration:underline;
}

.cv-file .file-icon{
  color:#1a56db !important;
}

@media (max-width: 768px){
  .profile-avatar{
    align-self: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .profile-avatar img{
    display: block;
    margin: 0 auto;
  }
}
.skills-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.skill-tag{
  display:inline-block;
  width:auto;
  white-space:nowrap;
  text-align:center;
}

@media (max-width: 768px){
  .skills-list{ flex-direction:row; }
  .skill-tag{ width:auto; }
}

@media (max-width: 480px){
  .skills-list{ flex-direction:row; }
  .skill-tag{ width:auto; }
}

/* ============================================
   SKILLS SECTION (from onboarding)
   ============================================ */

.onboarding-skills-section {
    max-width: 100%;
    margin: 0;
}

/* Selected Skills Container */
.selected-skills-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 120px;
    border: 2px dashed #d0d0d0;
}

.selected-skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    direction: rtl;
}

.no-skills-message {
    text-align: center;
    color: #999;
    font-size: 15px;
    font-style: italic;
    margin: 20px 0;
    width: 100%;
}

/* Search Field */
.skills-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.skills-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Noto Sans", Arial, sans-serif;
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
}

.skills-search-input:focus {
    outline: none;
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.skills-search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
    pointer-events: none;
}

/* Available Skills Container */
.available-skills-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    margin-top: 10px;
}

.available-skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

/* Skill Chips */
.nc-skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    gap: 6px;
}

.nc-skill-chip:hover {
    background: #e8e8e8;
    border-color: #0073aa;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

/* Selected skills - small and gray */
.nc-skill-chip.selected {
    background: #f0f0f0;
    border: 2px solid #ddd;
    color: #333;
    font-weight: 500;
}

.nc-skill-chip.selected:hover {
    background: #e8e8e8;
    border-color: #999;
}

.nc-skill-chip .skill-name {
    flex: 1;
}

.nc-skill-chip .skill-remove-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.nc-skill-chip.selected .skill-remove-btn {
    color: #fff;
}

.nc-skill-chip .skill-remove-btn:hover {
    transform: scale(1.3) rotate(90deg);
}

/* Available skill chips (not selected yet) - no remove button */
.nc-skill-chip.available {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
    padding: 4px 10px;
}

.nc-skill-chip.available:hover {
    background: #bbdefb;
    border-color: #0a66c2;
    transform: scale(1.02);
}

.skills-loader,
.skills-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 15px;
    font-style: italic;
}

/* Scrollbar for available skills */
.available-skills-container::-webkit-scrollbar {
    width: 8px;
}

.available-skills-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.available-skills-container::-webkit-scrollbar-thumb {
    background: #0a66c2;
    border-radius: 4px;
}

.available-skills-container::-webkit-scrollbar-thumb:hover {
    background: #084d94;
}

/* Load More Button */
.skills-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.skills-load-more-btn:hover {
    background: #e9ecef;
    border-color: #0a66c2;
    color: #0a66c2;
}

.skills-load-more-btn .load-more-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.skills-load-more-btn:hover .load-more-icon {
    transform: translateY(2px);
}

/* Animations for skills */
@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   HIDDEN PREVIEW MODAL
   ============================================ */

/* Hidden Preview Button */
.hidden-preview-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 2px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    margin-right: 0;
}

.hidden-preview-btn:hover {
    opacity: 1;
}

/* Tooltip - תמיד מוצג */
.hidden-preview-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden-preview-btn:hover::after {
    opacity: 1;
}

/* Arrow for tooltip */
.hidden-preview-btn::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.hidden-preview-btn:hover::before {
    opacity: 1;
}

/* Modal Overlay */
.cob-hidden-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cob-hidden-preview-modal.is-open {
    display: block;
    opacity: 1;
}

/* Backdrop */
.cob-hidden-preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Dialog */
.cob-hidden-preview-dialog {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Header */
.cob-hidden-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cob-hidden-preview-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Close Button */
.cob-hidden-preview-close {
    position: relative;
    top: auto;
    right: auto;
    background: #fff;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
}

.cob-hidden-preview-close:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
    transform: scale(1.1);
}

/* Frame Wrapper */
.cob-hidden-preview-frame-wrap {
    flex: 1;
    padding: 16px;
    overflow: hidden;
}

/* Iframe */
.cob-hidden-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* Prevent body scroll when modal is open */
body.cob-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .cob-hidden-preview-dialog {
        width: 95%;
        height: 95vh;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .cob-hidden-preview-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .cob-hidden-preview-frame-wrap {
        padding: 8px;
    }
}
/* layout + shrink to text */
.communities-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.communities-list .community-btn{
  display:inline-flex;
  flex:0 0 auto;
  width:auto !important;
  white-space:nowrap;
}

/* override mobile rules that force full width */
@media (max-width: 768px){
  .communities-list{ flex-direction:row !important; align-items:flex-start; }
  .communities-list .community-btn{ width:auto !important; }
}
@media (max-width: 480px){
  .communities-list{ flex-direction:row !important; }
  .communities-list .community-btn{ width:auto !important; }
}
.cv-rtl { text-align: right !important; direction: rtl !important; }
.cv-ltr { text-align: left  !important; direction: ltr !important; }

.experience-company,
.experience-dates,
.experience-location,
.education-institution,
.education-dates,
.education-description {
  font-size: 14px;
  color: #666666;
  margin: 4px 0;
  padding-left: 24px;
}

.experience-title,
.education-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #000000;
  padding-left: 24px;
}

@media (max-width: 768px) {
  .experience-title,
  .experience-company,
  .experience-dates,
  .experience-location,
  .experience-description,
  .education-title,
  .education-institution,
  .education-dates,
  .education-description {
    padding-left: 16px;
  }
}
.experience-dates {
  text-align: right;      
  direction: ltr;        
  unicode-bidi: plaintext;
  margin-top: 4px;
  color: #666;
  font-size: 14px;
}
.experience-item.is-hidden,
.education-item.is-hidden { opacity:.6; filter:grayscale(1); }

/* Toggle visibility buttons - NO absolute positioning, stay in flex flow */
.toggle-exp-btn,
.toggle-edu-btn {
    position: static !important;
    /* Removed absolute positioning to allow buttons to stay together */
}
/* Name editor buttons */
.member-profile-wrapper .inline-name-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.member-profile-wrapper button.name-save {
    flex-basis: 100%;
    width: auto;
    display: inline-block;
    flex-basis: auto;
    margin-top: 5px;
    order: 10;
    background: rgb(10, 102, 194) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.member-profile-wrapper button.name-cancel {
    margin-top: 5px;
    order: 11;
    background: #f0f0f0 !important;
    color: #333 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Force buttons to new line */
.member-profile-wrapper .inline-name-editor::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 9;
}

/* Profile visibility status */
.status-pill--visibility {
    background: #e0e0e0;
    color: #555;
}

.status-pill--visibility.status-pill--hidden {
    background: #e0e0e0;
    color: #666;
}

.status-pill--visibility.status-pill--visible {
    background: #e0e0e0;
    color: #555;
}

/* Editable experience and education items */
.experience-item--editable,
.education-item--editable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 16px;
    margin: 0 -16px 16px -16px;
}

.experience-item--editable:hover,
.education-item--editable:hover {
    background-color: #f0f7ff;
}

.experience-item--editable .experience-edit-hint,
.education-item--editable .education-edit-hint {
    display: none;
    font-size: 12px;
    color: #0a66c2;
    margin-right: 8px;
}

.experience-item--editable:hover .experience-edit-hint,
.education-item--editable:hover .education-edit-hint {
    display: inline;
}

/* Inline experience/education editor */
.inline-experience-editor,
.inline-education-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.inline-experience-editor input,
.inline-experience-editor textarea,
.inline-education-editor input,
.inline-education-editor textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.inline-experience-editor textarea,
.inline-education-editor textarea {
    min-height: 80px;
    resize: vertical;
}

.inline-experience-editor .editor-row,
.inline-education-editor .editor-row {
    display: flex;
    gap: 12px;
}

.inline-experience-editor .editor-row input,
.inline-education-editor .editor-row input {
    flex: 1;
}

.inline-experience-editor .editor-buttons,
.inline-education-editor .editor-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.inline-experience-editor button,
.inline-education-editor button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.inline-experience-editor .btn-save,
.inline-education-editor .btn-save {
    background: #0a66c2;
    color: white;
}

.inline-experience-editor .btn-save:hover,
.inline-education-editor .btn-save:hover {
    background: #004182;
}

.inline-experience-editor .btn-cancel,
.inline-education-editor .btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.inline-experience-editor .btn-cancel:hover,
.inline-education-editor .btn-cancel:hover {
    background: #e0e0e0;
}

/* ============================================
   MODAL STYLES (from onboarding.css)
   ============================================ */

/* Modal Overlay */
.exp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 16px;
}

/* Modal Content - 20% smaller */
.exp-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.exp-confirm-modal {
    max-width: 320px;
}

/* Modal Header */
.exp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.exp-modal-header h2 {
    margin: 0;
    color: #111928;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
}

.exp-modal-close {
    background: none;
    border: none;
    font-size: 19px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.exp-modal-close:hover {
    background: #f3f4f6;
}

/* Modal Body */
.exp-modal-body {
    padding: 16px;
}

/* Modal Footer */
.exp-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Groups */
.exp-form-group {
    margin-bottom: 14px;
}

.exp-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #111928;
    font-size: 11px;
    font-weight: 500;
    line-height: 150%;
    text-align: right;
}

/* Form Inputs - 20% smaller */
.exp-form-input,
.exp-form-select,
.exp-form-textarea {
    display: flex;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111928;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 125%;
    text-align: right;
    box-sizing: border-box;
    padding: 8px 12px;
}

.exp-form-input:focus,
.exp-form-select:focus,
.exp-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.exp-form-textarea {
    resize: vertical;
    min-height: 96px;
}

/* Form Row */
.exp-form-row {
    display: flex;
    gap: 13px;
}

.exp-form-row .exp-form-group {
    flex: 1;
}

/* Form Note */
.exp-form-note {
    margin: 13px 0 0 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 5px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 400;
    line-height: 150%;
    text-align: right;
}

/* Checkbox */
.exp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.exp-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Confirmation message */
.exp-confirm-message {
    margin: 0;
    color: #111928;
    font-size: 13px;
    font-weight: 500;
    line-height: 150%;
    text-align: center;
    padding: 16px 0;
}

/* Buttons from onboarding */
.btn-onboarding {
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 10px 20px;
}

.btn-onboarding:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #0a66c2;
    color: #fff;
    border: 2px solid #0a66c2;
}

.btn-primary:hover:not(:disabled) {
    background: #084d94;
    border-color: #084d94;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #0a66c2;
    border: 2px solid #0a66c2;
}

.btn-secondary:hover:not(:disabled) {
    background: #f0f7ff;
}

/* Danger button */
.btn-danger {
    background: #dc2626 !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
}

/* Success message - only shows when triggered */
.exp-success-msg {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 6px;
    padding: 10px 19px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #065f46;
    font-size: 11px;
    font-weight: 600;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

.exp-success-msg::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .exp-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .exp-form-row {
        flex-direction: column;
    }
}