/* ============= PROFILE SIDEBAR ================ */
body{
  background-color: #f1f3fa;
}

.section{
  margin-top: 85px;
}

/* ============= MODERN PROFILE SIDEBAR ================ */

.modern-profile-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2em;
}

/* Profil Resmi */
.profile-picture-wrapper {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profile-picture-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e9ecef;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.profile-picture-container:hover .profile-picture {
  border-color: #007bff;
}

.profile-picture-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: 3px solid #fff;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.profile-picture-container:hover .profile-picture-edit-btn {
  opacity: 1;
  transform: scale(1);
}

.profile-picture-edit-btn:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.profile-picture-edit-btn i {
  font-size: 14px;
}

.profile-picture-cancel,
.profile-picture-delete {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: rgba(220, 53, 69, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.profile-picture-container:hover .profile-picture-delete {
  opacity: 1;
  transform: scale(1);
}

.profile-picture-cancel:hover,
.profile-picture-delete:hover {
  background: #c82333;
  transform: scale(1.1);
}

.profile-picture-cancel i,
.profile-picture-delete i {
  font-size: 12px;
}

/* Apply Button */
.profile-picture-apply-btn {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.profile-picture-apply-btn:hover {
  background: #218838;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Düzenlenebilir Alanlar */
.profile-editable-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9ecef;
}

.profile-field {
  margin-bottom: 20px;
}

.profile-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-field-value {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-display {
  flex: 1;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: #212529;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.field-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.field-input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.field-edit-btn,
.field-save-btn,
.field-cancel-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #6c757d;
}

.field-edit-btn:hover {
  background: #e9ecef;
  color: #007bff;
}

.field-save-btn {
  background: #28a745;
  color: #fff;
}

.field-save-btn:hover {
  background: #218838;
}

.field-cancel-btn {
  background: #dc3545;
  color: #fff;
}

.field-cancel-btn:hover {
  background: #c82333;
}

/* Online/Offline Switch */
.profile-online-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9ecef;
}

.online-status-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.online-status-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.status-text {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.switch-container {
  position: relative;
}

.switch-container input[type="checkbox"] {
  display: none;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-container input:checked + .switch-label .switch-slider {
  background-color: #28a745;
}

.switch-container input:checked + .switch-label .switch-slider:before {
  transform: translateX(24px);
}

.switch-container input:checked ~ .status-text {
  color: #28a745;
}

/* Read-Only Bilgiler */
.profile-readonly-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9ecef;
}

.profile-info-item {
  margin-bottom: 16px;
}

.info-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-value {
  font-size: 14px;
  color: #212529;
  font-weight: 500;
  padding: 8px 0;
}

.info-note {
  display: block;
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.info-note i {
  margin-right: 4px;
  color: #007bff;
}

/* Action Buttons */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: #007bff;
  color: #fff;
}

.profile-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #fff;
  text-decoration: none;
}

.profile-action-btn.btn-danger {
  background: #dc3545;
}

.profile-action-btn.btn-danger:hover {
  background: #c82333;
}

.profile-action-btn.btn-secondary {
  background: #6c757d;
}

.profile-action-btn.btn-secondary:hover {
  background: #5a6268;
}

.profile-action-btn i {
  font-size: 16px;
}

.profile-action-btn.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.profile-action-btn.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  color: #fff;
}

/* Eski sidebar stilleri (geriye dönük uyumluluk için) */
.profile-sidebar {
  padding: 20px 0 10px 0;
  background: #fff;
  margin-bottom: 2em;
}

.profilePic{
  overflow: hidden;
  width: 10em;
  height: 10em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  text-align: center;
  display: block;
  margin-top: -6em;
  border-radius: 50%;
}

.profilePic img {
  width: 10em;
  height: 10em;
  object-fit: cover;
}

.profilePreviewEdit{
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  opacity: 0.6;
  background-color: black;
  padding: 0.26em;
  display: block;
  position: absolute; 
  align-self: center; 
  font-size:1.6em; 

  color: white;
  transition: 0.3s;
}

.profilePreviewCancel,
.profilePreviewErase{
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  opacity: 0.6;
  background-color: black;
  padding: 0.26em;
  display: block;
  position: absolute; 
  align-self: center; 
  font-size:1.6em; 
  margin-left: 2em;
  color: white;
  transition: 0.3s;
}

.profilePreviewCancel:hover,
.profilePreviewErase:hover,
.profilePreviewEdit:hover{
  font-size:1.9em;
  padding: 0.3em;
}

#submitProfilePic{
  border-radius: 2px;
  width: 5em;
  text-align: center;
  cursor: pointer;
  padding: 2px;
  opacity: 0.6;
  background-color: black;
  display: block;
  position: absolute; 
  align-self: center;
  font-size:0.8em; 
  top: 7.3em;
  color: white;
  
}

.profilePreviewEEText{
  align-self: center;
  font-size: 0.35em;
}

.profileName {
  text-align: center;
  color: #5a7391;
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #28a745;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.online-badge i {
  font-size: 8px;
  animation: pulse 2s infinite;
}

.online-indicator {
  color: #28a745;
  font-size: 10px;
  margin-left: 8px;
}

.online-indicator i {
  animation: pulse 2s infinite;
}

/* ============= MODERN PROFILE LISTINGS ================ */

.modern-profile-listings {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2em;
}

.modern-listings-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
}

.modern-listings-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2d2d;
  margin: 0;
  display: flex;
  align-items: center;
}

.modern-listings-title i {
  color: #007bff;
}

.modern-listings-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modern-listing-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modern-listing-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  border-color: #007bff;
}

.modern-listing-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  gap: 16px;
}

.modern-listing-link:hover {
  text-decoration: none;
  color: inherit;
}

.modern-listing-image {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modern-listing-card:hover .modern-listing-image img {
  transform: scale(1.05);
}

.modern-listing-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.modern-listing-main {
  flex: 1;
  min-width: 0;
}

.modern-listing-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2d2d;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #6c757d;
}

.modern-listing-category,
.modern-listing-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.modern-listing-category i,
.modern-listing-location i {
  font-size: 0.85rem;
  color: #007bff;
}

.modern-listing-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.modern-listing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007bff;
  line-height: 1.2;
}

.modern-listing-currency {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  margin-left: 4px;
}

.modern-listing-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.modern-listing-status.status-success {
  background: #d4edda;
  color: #155724;
}

.modern-listing-status.status-warning {
  background: #fff3cd;
  color: #856404;
}

.modern-listing-status.status-expired {
  background: #f8d7da;
  color: #721c24;
}

.modern-listing-empty {
  text-align: center;
  padding: 60px 20px;
}

.modern-listing-empty-icon {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 16px;
}

.modern-listing-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2d2d;
  margin-bottom: 8px;
}

.modern-listing-empty-text {
  color: #6c757d;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-listing-link {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modern-listing-image {
    width: 100%;
    height: 200px;
  }
  
  .modern-listing-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .modern-listing-side {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  
  .modern-listing-price {
    font-size: 1.25rem;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.profileInfo {
  text-align: center;
  color: #5a7391;
  margin-top: 10px;
}

.profileButtons {
  text-align: center;
  margin-top: 20px;
}

.profileButtons .btn{
  width: 180px;
  text-transform: uppercase;
}

/* ============= PROFILE DASHBOARD ================ */

.profile-dashboard {
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: auto;
}

.dashoardTitle {
  color: #5a7391;
  font-size: 1.8em;
  font-weight: 600;
}

.table td{
  font-size: 0.8em;
}

.ptab-image img{
  width: 5em;
  height: 5em;
  object-fit: cover;
  }

.subtitletab h4{
  padding: 6px;
  background: #405467;
  color: #fff;

}

/* Form Genel */

.x_title{
  margin: 15px;
  text-align: center;
}

.submitbutonlar .btn{
  width: 150px;
  margin-left: 10px;
  margin-right: 10px;

}

/* Responsive */
@media (max-width: 768px) {
  .modern-profile-sidebar {
    margin-bottom: 20px;
  }
  
  .profile-picture-container {
    width: 100px;
    height: 100px;
  }
  
  .profile-picture {
    width: 100px;
    height: 100px;
  }
}
