/* Profile Page Custom Styles - Professional LMS Theme */

.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.profile-content-area {
  width: 100%;
  min-width: 0;
}

.profile-card {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.profile-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.profile-summary {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 16, 29, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 32px;
  border: 2px solid rgba(46, 232, 120, 0.4);
  box-shadow: 0 0 16px rgba(46, 232, 120, 0.2);
}

.profile-avatar.is-large {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  font-size: 38px;
  border: 3px solid rgba(46, 232, 120, 0.5);
}

.profile-summary h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.profile-email-line {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Single Corner Pencil Edit Button */
.profile-corner-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 232, 120, 0.12);
  border: 1px solid rgba(46, 232, 120, 0.35);
  color: #2ee878;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 2;
}

.profile-corner-edit-btn:hover {
  background: #2ee878;
  color: #0f172a;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(46, 232, 120, 0.4);
}

.profile-summary-grid {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.profile-summary-grid span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-summary-grid strong {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Profile Bio / Status Quote Box */
.profile-bio-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(125, 211, 252, 0.25);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.4;
}

.profile-bio-box span.ti-quote-left {
  color: #2ee878;
  font-size: 1rem;
  font-style: normal;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Editable Tag Indicator */
.editable-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(46, 232, 120, 0.12);
  border: 1px solid rgba(46, 232, 120, 0.25);
  color: #2ee878;
  font-size: 0.72rem;
  font-weight: 700;
}

.tab-pencil-icon {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.6;
}

.header-pencil-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(46, 232, 120, 0.15);
  color: #2ee878;
  font-size: 14px;
}

.form-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-help-text.text-warning {
  color: #fbbf24;
  font-size: 0.78rem;
  margin-top: 6px;
  display: block;
}

@media (max-width: 768px) {
  .form-grid.three {
    grid-template-columns: 1fr;
  }
}

/* Vertical Tab Navigation */
.profile-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.profile-tab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #f8fafc;
}

.profile-tab-btn.active {
  background: linear-gradient(135deg, rgba(46, 232, 120, 0.16) 0%, rgba(16, 185, 129, 0.24) 100%);
  border-color: rgba(46, 232, 120, 0.4);
  color: #2ee878;
  box-shadow: 0 0 12px rgba(46, 232, 120, 0.15);
}

.profile-tab-btn span {
  font-size: 1.1rem;
}

/* Tab Content Toggle */
.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: profileTabFadeIn 0.3s ease;
}

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

/* Avatar Upload Box with Live Camera Overlay */
.avatar-upload-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.5);
}

.avatar-preview-box {
  position: relative;
  display: inline-block;
}

.avatar-camera-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  background: #2ee878;
  color: #0f172a;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.avatar-camera-btn:hover {
  transform: scale(1.1);
  background: #22c55e;
}

.avatar-upload-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.avatar-upload-control small {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Verified Email Input Badge */
.input-with-badge {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-badge input {
  padding-right: 120px !important;
  background: rgba(15, 23, 42, 0.7) !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.badge-verified {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(46, 232, 120, 0.15);
  border: 1px solid rgba(46, 232, 120, 0.3);
  color: #2ee878;
  font-size: 0.76rem;
  font-weight: 700;
}

/* Goal Chips Container */
.goal-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.goal-chip-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.goal-chip {
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-chip:hover {
  background: rgba(46, 232, 120, 0.15);
  border-color: rgba(46, 232, 120, 0.4);
  color: #2ee878;
}

/* Security Tab Text */
.security-intro-text {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Password Input Wrapper */
.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input {
  padding-right: 42px !important;
}

.input-password-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.input-password-wrapper .toggle-password:hover {
  color: #2ee878;
}

/* Password Strength Meter */
.password-strength-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.strength-bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar-fill.weak {
  width: 33%;
  background: #ef4444;
}

.strength-bar-fill.medium {
  width: 66%;
  background: #f59e0b;
}

.strength-bar-fill.strong {
  width: 100%;
  background: #2ee878;
}

.strength-text {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
}

.strength-text.weak { color: #f87171; }
.strength-text.medium { color: #fbbf24; }
.strength-text.strong { color: #2ee878; }

/* Dashboard Progress Container - Screenshot Exact Match */
.dashboard-progress-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* 1. Overall Progress Card Banner */
.overall-progress-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 16, 29, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.overall-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overall-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.overall-trophy-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #0f172a;
  font-size: 22px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.overall-title-text {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
}

.overall-score-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.overall-count {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 700;
}

.overall-percent {
  color: #38bdf8;
  font-size: 1.15rem;
  font-weight: 800;
}

.overall-progress-track {
  height: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.overall-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 0.4s ease;
}

/* 2. Skill Progress Rows List */
.skill-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-progress-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-progress-row:hover {
  transform: translateX(2px);
  border-color: rgba(148, 163, 184, 0.25);
}

.skill-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  flex: 0 0 40px;
}

/* Skill Specific Rings & Colors */
.ring-reading {
  border: 2px dashed #06b6d4;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
}
.percent-reading { color: #06b6d4; }
.fill-reading { background: #06b6d4; box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }

.ring-listening {
  border: 2px solid #a855f7;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}
.percent-listening { color: #c084fc; }
.fill-listening { background: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.4); }

.ring-vocab {
  border: 2px dashed #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.percent-vocab { color: #34d399; }
.fill-vocab { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.ring-exam {
  border: 2px dashed #f97316;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}
.percent-exam { color: #fb923c; }
.fill-exam { background: #f97316; box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }

.ring-video {
  border: 2px dashed #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.percent-video { color: #f87171; }
.fill-video { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

.skill-name {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
}

.skill-row-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.skill-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-count {
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
}

.skill-percent {
  font-size: 0.9rem;
  font-weight: 800;
}

.skill-progress-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

@media (max-width: 640px) {
  .skill-progress-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Responsive Styles */
@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  
  .profile-summary {
    position: static;
  }
  
  .profile-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .profile-tab-btn {
    white-space: nowrap;
  }
}
