/* ===== Dashboard & Profile Styles ===== */
.sf-social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

/* Remove Nextend's default button look */
.nsl-button {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}

/* Specific colors for each provider */
.nsl-button-google {
  background-color: #db4437 !important; /* Red */
}
.nsl-button-facebook {
  background-color: #1877f2 !important; /* Blue */
}
.nsl-button-apple {
  background-color: #000 !important; /* Black */
}

/* Hover effect */
.nsl-button:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
}

/* Hide default icons and add your custom SVGs */
.nsl-button .nsl-icon-container {
  display: none !important;
}

/* Add custom icons before text */
.nsl-button-google::before {
  content: '';
  display: inline-block;
  background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/google.svg') no-repeat center/contain;
  width: 20px;
  height: 20px;
}
.nsl-button-facebook::before {
  content: '';
  display: inline-block;
  background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/facebook.svg') no-repeat center/contain;
  width: 20px;
  height: 20px;
}
.nsl-button-apple::before {
  content: '';
  display: inline-block;
  background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/apple.svg') no-repeat center/contain;
  width: 20px;
  height: 20px;
}

.sf-dashboard, .sf-profile-form {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-family: "Poppins", sans-serif;
}

.sf-profile-form input, 
.sf-profile-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
}

.sf-profile-form button {
  background: #0066ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.sf-profile-form button:hover {
  background: #004acc;
}

.sf-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.sf-auth-content {
  background: #fff;
  border-radius: 20px;
  width: 1140px;
  max-width: 95%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: sfFadeIn 0.3s ease;
  margin: 40px auto; /* ✅ ensures some top/bottom spacing */
}


@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 20px;
  margin-bottom: 20px;
}

.sf-form-grid input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.2s;
}

.sf-form-grid input:focus {
  border-color: #0073aa;
  outline: none;
}



/* Mobile responsive */
@media (max-width: 600px) {
  .sf-form-grid {
    grid-template-columns: 1fr;
  }
}


/* Close button */
.sf-close {
     position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 37px;
    color: #1f1f1f;
    background-color: white;
    border-radius: 100%;
    padding: 10px;
}

/* Left Section */
/* Make left section scrollable if content is tall */
.sf-auth-left {
    max-height: 80vh; /* Adjust as needed, 80% of viewport height */
    overflow-y: auto;
    padding: 25px; /* optional, for scrollbar spacing */
    
}

/* Optional: hide scrollbar in WebKit browsers */
.sf-auth-left::-webkit-scrollbar {
    width: 6px;
}

.sf-auth-left::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.sf-auth-left::-webkit-scrollbar-track {
    background: transparent;
}



/* Divider */
.sf-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.sf-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #666;
}

.sf-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
  z-index: 0;
}


/* ===== Role Selection (Login & Register) ===== */
.sf-role-select,
.sf-register-role-select {
  text-align: center;
  padding: 0px 5px;
}

.sf-role-select h4,
.sf-register-role-select h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 500;
}

/* Inline links like Preply */
.sf-login-role-btn,
.sf-register-role-btn {
  display: inline-block;
  background: none;
  color: #0073aa;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin: 0 10px 0 0;
  text-decoration: none;
  padding: 0;
  transition: color 0.3s ease;
}

/* Hover effect */
.sf-login-role-btn:hover,
.sf-register-role-btn:hover {
  color: #D02E22;
  text-decoration: underline;
}

/* ===== Back Buttons ===== */
.sf-back-to-role,
.sf-register-back {
  display: block;
  background: none;
  border: none;
  color: #0073aa;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: underline;
  font-size: 15px;
  transition: color 0.3s ease;
}

.sf-back-to-role:hover,
.sf-register-back:hover {
  color: #D02E22;
}

.sf-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sf-auth-links .sf-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}
.sf-video-preview iframe {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

span#select2-sf_country_select-container {
    background-color: white !important;
    border-radius: 6px !important;
    border:1px solid #ddd !important;
}

/* ------------------------------ */
/* Tutor Profile Shortcode Styles */
/* ------------------------------ */

/* Apply Poppins font and default colors only inside profile */
.sf-profile-container,
.sf-profile-container .sf-profile-header,
.sf-profile-container .sf-profile-info,
.sf-profile-container .sf-profile-name,
.sf-profile-container .sf-profile-image,
.sf-profile-container .sf-rate,
.sf-profile-container .sf-bio,
.sf-profile-container .sf-super-tutor,
.sf-profile-container .sf-categories,
.sf-profile-container .sf-category-item,
.sf-profile-container .sf-edit-button a {
    font-family: 'Poppins', sans-serif;
    color: #000;
}

/* Profile container */
.sf-profile-container {
    margin: 0 auto;
}

/* Profile header layout */
.sf-profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Profile image */
.sf-profile-image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 3px;
}

/* Placeholder for missing image */
.sf-profile-image .sf-no-image {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-weight: 500;
    border-radius: 3px;
}

/* Profile info layout */
.sf-profile-info {
    flex: 1;
    min-width: 200px;
}

/* Name and flag */
.sf-profile-name {
    font-size: 30px;
    font-weight: 600;
    display: flex;
    color: black;
    align-items: center;
    gap: 8px;
}
.sf-profile-name .sf-flag {
    width: 24px;
    height: 16px;
    border: 1px solid #ccc;
    object-fit: cover;
}

/* Hourly rate */
.sf-rate {
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 8px;
}

/* Super tutor badge */
.sf-super-tutor {
    display: inline-block;
    background: #FFFBCC;
    color: #D49A00;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 6px;
}

/* Bio section */
.sf-bio {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* Categories/Courses */
.sf-categories h4 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
}
.sf-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.sf-category-item {
    background: #6B46C1;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Edit Profile button */
.sf-edit-button {
    margin-top: 20px;
    text-align: center;
}
.sf-edit-button a {
    display: inline-block;
    background: #E53E3E;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.sf-edit-button a:hover {
    background: #C53030;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .sf-profile-header {
        flex-direction: column;
        align-items: center;
    }
    .sf-profile-info {
        text-align: center;
    }
    .sf-profile-name {
        justify-content: center;
    }
}


.lp-profile-resume { margin-top: 40px; }
.lp-profile-resume h2 { margin-bottom: 15px; font-size: 22px; }
.resume-tabs { 
    list-style:none; 
    padding:0; 
    display:flex; 
    gap:25px; 
    margin-bottom:20px; 
    cursor:pointer; 
    border-bottom: 1px solid #ddd;
}
.resume-tabs li { 
    position: relative;
    padding:8px 12px; 
    font-size:16px;
    font-weight:500;
    border-radius:8px; 
    transition: all 0.3s ease;
}
.resume-tabs li:hover { background:#f2f2f2; }
.resume-tabs li.active { font-weight:600; }
.resume-tabs li.active::after,
.resume-tabs li:hover::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:100%;
    height:4px;
    background:#d02e22;
    border-radius:1px;
}
.resume-tab-content { display:none; }
.resume-tab-content.active { display:block; }
.resume-row {
    display:flex;
    gap:20px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}
.resume-year { flex:0 0 120px; font-weight:500; color:#555; }
.resume-details { flex:1; line-height:1.4; }
.lp-profile-specialities .specialty-header:hover { background:#f0f0f0; }
.profile-reviews p {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    font-size: 16px;
}
#sf-lesson-type-modal,
#sf-booking-modal,
#sf-login-modal {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#sf-lesson-type-modal.show,
#sf-booking-modal.show,
#sf-login-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.sf-password-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #d93025; /* professional red tone */
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

.sf-password-message.show {
  opacity: 1;
  transform: translateY(0);
}

.sf-password-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.sf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sf-field {
  position: relative;
}

#sf_password_rules {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sf-rule {
  display: flex;
  align-items: center;
  margin: 5px 0;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.sf-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  margin-right: 8px;
  color: white;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.sf-rule.valid .sf-rule-icon {
  background: #22c55e; /* green */
}

.sf-rule.invalid .sf-rule-icon {
  background: #ef4444; /* red */
}

.sf-rule.valid {
  color: #22c55e;
  font-weight: 500;
}

.sf-rule.invalid {
  color: #ef4444;
}

.sf-rule.valid {
  animation: sfPulse 0.3s ease;
}

@keyframes sfPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
    
    
    .sf-dashboard-header {
    width: 100%;
    margin-bottom: 20px;
}

.sf-view-profile-btn {
    background: #f04a3e;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.sf-view-profile-btn:hover {
    background: #d13f32;
}
    .sf-view-profile-wrapper {
    position: relative;
    width: 100%;
}

.sf-view-profile-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #f04a3e;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    z-index: 10;
}
.sf-view-profile-btn:hover {
    background: #d13f32;
    color: white;
}
.sf-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

#sf-lesson-type-modal,
#sf-booking-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}
#sf-lesson-type-modal.active,
#sf-booking-modal.active {
    opacity: 1;
    visibility: visible;
}
.sf-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
#sf-lesson-type-modal.active .sf-modal-content,
#sf-booking-modal.active .sf-modal-content {
    transform: translateY(0);
}

button.sf-book-lesson-btn {
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:8px; 
    background-color:#d02e22 !important; 
    color:#fff !important; 
    font-weight:500; 
    width:100%; 
    font-size:16px; 
    padding:12px 24px; 
    border-radius:8px; 
    text-decoration:none; 
    transition:background-color 0.3s, transform 0.2s;
}
.sf-profile .profile-header {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sf-profile .profile-header img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.sf-profile .profile-header .name {
    font-size: 24px;
    font-weight: 600;
}

.sf-profile .profile-header .rate {
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
}

/* Courses / badges */
.sf-profile .categories span {
    background: #6b46c1;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 12px;
}

/* About Me, Languages, Experience sections */
.sf-profile .section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sf-profile .section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sf-profile .section ul {
    padding-left: 20px;
}


/* User Flag */
.user-country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border: 1px solid #000;
    border-radius: 2px;
}

/* Hourly Rate Badge */
.user-hourly-rate {
    font-weight: 500;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* Super Tutor Badge */
.super-tutor-badge {
    margin-top: 8px;
    display: inline-block;
    background: #f9e1df;
    color: #000;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* User Bio */
.lp-profile-user-bio {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.lp-profile-user-bio p {
    margin: 0;
}

/* Course Category Badges */
.course-category-badge {
    background: #95529a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}
.course-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* About Me Section */
.lp-profile-about-me {
    margin: 20px 0;
    padding: 0px;
    background: #fff;
    border-radius: 10px;
}
.lp-profile-about-me h3 {
    margin-bottom: 10px;
}
.aboutme-text {
    font-size: 14px;
    line-height: 1.5;
}
.aboutme-toggle {
    display: inline-block;
    margin-top: 8px;
    cursor: pointer;
    color: #d02e22;
}

/* Languages Section */
.lp-profile-languages {
    margin: 20px 0;
    padding: 0px;
    background: #fff;
    border-radius: 10px;
}
.lp-profile-languages ul li {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-profile-languages ul li span:last-child {
    background-color: #e6f0ff;
    color: #003366;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Reviews Section */
.single-review {
    padding: 12px;
    flex: 0 0 50%;
    box-sizing: border-box;
}
.reply-inner {
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #00b7d4;
}
.reply-text {
    font-size: 14px;
    color: #222;
    margin: 0;
}
.edit-reply, .delete-reply {
    margin-top: 6px;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.edit-reply {
    background: #00b7d4;
    color: #fff;
}
.delete-reply {
    background: #777;
    color: #fff;
}

/* Resume Section */
.lp-profile-resume {
    margin-top: 40px;
}
.lp-profile-resume h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Tabs */
.resume-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}
.resume-tabs li {
    position: relative;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.resume-tabs li:hover {
    background: #f2f2f2;
}
.resume-tabs li.active {
    font-weight: 600;
}
.resume-tabs li.active::after,
.resume-tabs li:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background: #d02e22;
    border-radius: 1px;
}

/* Tab Content */
.resume-tab-content {
    display: none;
}
.resume-tab-content.active {
    display: block;
}

/* Flex Rows */
.resume-row {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.resume-year {
    flex: 0 0 120px;
    font-weight: 500;
    color: #555;
}
.resume-details {
    flex: 1;
    line-height: 1.4;
}

/* specialities Section */
.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}
.specialty-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}
.specialty-desc {
    display: none;
    padding: 10px;
    border-left: 2px solid #d02e22;
    margin-top: 5px;
    border-radius: 0 0 8px 8px;
    max-height: unset !important;
}

.sf-login-prompt {
    display: flex;
    align-items: center;
        background-color: #eff1f3;
    padding: 20px;;
    justify-content: center;
    border-radius: 10px;
}
.sf-login-prompt button {
    background-color: #d02e22 !important;
    color: white;
    border-radius: 10px;
    padding: 5px 16px;
    margin-left: 10px;
}
.sf-login-prompt p {
    margin-bottom: 0px !important;
}