/* Post Scroll Container Styles - PERBAIKAN FINAL */
.post-scroll-container {
  /* HAPUS max-height dari CSS karena akan diatur oleh JavaScript */
  overflow-y: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;

  /* Default height untuk desktop */
  max-height: 600px; /* Diperkecil dari 800px */
}

/* Scrollbar styles */
.post-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.post-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}

.post-scroll-container::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 10px;
}

.post-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--lavender);
}

/* Responsive adjustments untuk max-height */
@media (max-width: 1024px) {
  .post-scroll-container {
    max-height: 500px; /* Diperkecil dari 600px */
  }
}

@media (max-width: 768px) {
  .post-scroll-container {
    max-height: 400px; /* Diperkecil dari 500px */
    gap: 12px;
  }
}

.post-scroll-container {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) var(--bg-color);
}

/* PERBAIKAN: Pastikan feed mengisi ruang dengan benar */
.feed {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: fit-content;
}

/* PERBAIKAN: Hilangkan margin bottom yang tidak perlu */
.post-scroll-container:last-child {
  margin-bottom: 0;
}

/* Post Card Styles - TETAP SAMA */
.post-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 0; /* HAPUS margin-bottom karena sudah pakai gap */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
  flex-shrink: 0;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 15px;
  position: relative;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--mint);
  flex-shrink: 0;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-user-info {
  flex: 1;
  min-width: 0;
}

.post-user {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-pet {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-time {
  font-size: 12px;
  color: #999;
}

.post-more {
  color: #999;
  cursor: pointer;
  padding: 5px;
  position: relative;
  flex-shrink: 0;
}

.post-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 120px;
}

.post-more-menu.show {
  display: block;
}

.post-more-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-more-item:hover {
  background: #f8f9fa;
}

.post-more-item.delete {
  color: #dc3545;
}

.post-more-item i {
  width: 16px;
}

.post-content {
  padding: 0 15px 15px;
}

.post-text {
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--text);
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #777;
}

/* TAMBAHKAN: Style untuk konten kosong */
.post-scroll-container:empty::before {
  content: "Belum ada postingan. Jadilah yang pertama untuk berbagi!";
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #65676b;
  font-style: italic;
  background: var(--bg-color);
  border-radius: 15px;
  border: 2px dashed var(--border-color);
  font-size: 16px;
}

/* TAMBAHKAN: Style untuk loading state */
.post-scroll-container.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: var(--bg-color);
  border-radius: 15px;
  border: 2px dashed var(--border-color);
}

.post-scroll-container.loading::after {
  content: "Memuat postingan...";
  color: #65676b;
  font-style: italic;
}

/* POST ACTIONS GRID LAYOUT */
.post-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  border-top: 1px solid var(--border-color);
  padding: 10px 15px;
  gap: 5px;
}

.post-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  color: #65676b;
  gap: 5px;
}

.post-action:hover {
  background-color: var(--bg-color);
  color: var(--dark);
}

.post-action.like.active,
.post-action.like.active i {
  color: #e74c3c;
}

.post-action i {
  font-size: 18px;
}

.post-action span {
  font-size: 12px;
}

/* GAYA KHUSUS UNTUK TOMBOL HAPUS */
.post-action.delete {
  color: #65676b;
}

.post-action.delete i {
  color: #65676b;
}

.post-action.delete:hover {
  background-color: #ffeaea;
  color: #dc3545;
}

.post-action.delete:hover i {
  color: #dc3545;
}

/* Sembunyikan tombol hapus untuk non-pemilik */
.post-action.hidden {
  display: none !important;
}

/* Comment Styles */
.post-comments-container {
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.comment {
  display: flex;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-user {
  font-weight: 600;
  font-size: 14px;
}

.comment-text {
  font-size: 14px;
  margin: 2px 0;
}

.comment-time {
  font-size: 12px;
  color: #65676b;
}

.add-comment {
  display: flex;
  padding: 10px 15px;
  border-top: 1px solid #eee;
  gap: 10px;
}

.add-comment input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  background: #f0f2f5;
  outline: none;
  font-family: "Nunito", sans-serif;
}

.add-comment button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.add-comment button:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}

.no-posts {
  text-align: center;
  padding: 40px;
  color: #65676b;
  font-style: italic;
}

/* Style untuk image preview */
.image-preview {
  position: relative;
  margin-top: 10px;
  max-width: 300px;
}

.image-preview img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.btn-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
}

#createPostForm input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px dashed #ddd;
  border-radius: 8px;
}

/* Style untuk modal actions */
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Style untuk share options */
.share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: left;
}

.share-option:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.share-option i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

#copyLinkShare i {
  color: #007bff;
}

#whatsappShare i {
  color: #25d366;
}

/* Responsive adjustments untuk post actions */
@media (max-width: 576px) {
  .post-action span {
    display: none;
  }

  .post-action i {
    font-size: 16px;
  }

  .post-actions {
    gap: 2px;
  }

  .add-comment {
    flex-direction: column;
    gap: 8px;
  }

  .add-comment button {
    width: 100%;
  }
}

/* Style untuk lokasi postingan */
.post-location {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.post-location i {
  margin-right: 4px;
  color: var(--pink);
}

/* Style untuk create post langsung di feed */
.create-post-direct {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.create-post-header {
  display: flex;
  gap: 12px;
}

.create-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mint);
}

.create-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-post-input-container {
  flex: 1;
}

#directPostContent {
  width: 100%;
  border: none;
  resize: none;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9fa;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  margin-bottom: 10px;
  min-height: 80px;
}

#directPostContent:focus {
  outline: none;
  background: #f0f2f5;
}

.create-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-buttons {
  display: flex;
  gap: 10px;
}

.media-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.camera-btn {
  background-color: #e3f2fd;
  color: #1976d2;
}

.gallery-btn {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.media-btn:hover {
  transform: scale(1.1);
}

.media-preview {
  position: relative;
  margin-top: 15px;
  max-width: 300px;
}

.media-preview img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
}

#directPostSubmit {
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .create-post-direct {
    padding: 12px;
  }

  .media-btn {
    width: 35px;
    height: 35px;
  }

  #directPostSubmit {
    padding: 6px 15px;
    font-size: 14px;
  }
}

/* Style untuk video posts */
.post-video {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.post-video video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

/* Style untuk file size warning */
.file-size-warning {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Responsive video */
@media (max-width: 768px) {
  .post-video video {
    max-height: 300px;
  }

  .video-play-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Style untuk nama file video */
.video-file-name {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px dashed #ddd;
}

.video-file-name i {
  color: #ff4757;
  margin-right: 10px;
  font-size: 16px;
}

.video-file-name span {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-file-name .btn-remove {
  position: static;
  width: 20px;
  height: 20px;
  font-size: 12px;
  margin-left: 10px;
}

/* Style untuk dropdown camera */
.camera-dropdown {
  position: relative;
  display: inline-block;
}

.camera-options {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 150px;
  padding: 8px 0;
}

.camera-dropdown:hover .camera-options {
  display: block;
}

.camera-options button {
  width: 100%;
  padding: 10px 15px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.camera-options button:hover {
  background: #f8f9fa;
}

.camera-options button i {
  width: 16px;
}

/* Style untuk modal create post */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}

.modal-content .form-group {
  margin-bottom: 20px;
}

.modal-content .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.modal-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
}

.modal-content textarea:focus {
  outline: none;
  border-color: var(--pink);
}

/* Media upload buttons untuk modal */
.modal-content .media-upload-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-content .media-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.modal-content .camera-btn {
  background-color: #e3f2fd;
  color: #1976d2;
}

.modal-content .gallery-btn {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.modal-content .media-btn:hover {
  transform: scale(1.1);
}

.modal-content .file-size-warning {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

/* Preview untuk modal */
.modal-content .image-preview {
  margin-top: 15px;
  text-align: center;
}

.modal-content .image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.modal-content .video-file-info {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px dashed #ddd;
}

.modal-content .video-file-info i {
  color: #ff4757;
  margin-right: 12px;
  font-size: 18px;
}

.modal-content .video-file-info span {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-content .video-file-info .btn-remove {
  position: static;
  width: 24px;
  height: 24px;
  font-size: 14px;
  margin-left: 10px;
}

/* Button submit untuk modal */
.modal-content .btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

/*CSS PERTEMANAN */
/* Friend Button Styles */
.friend-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.friend-btn.not-friends {
  background-color: var(--pink);
  color: white;
}

.friend-btn.not-friends:hover {
  background-color: var(--lavender);
}

.friend-btn.pending {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
}

.friend-btn.friends {
  background-color: var(--mint);
  color: white;
}

.friend-btn.friends:hover {
  background-color: #8dd7bf;
}

.friend-btn.request-received {
  background-color: var(--sky);
  color: white;
}

.friend-btn.request-received:hover {
  background-color: #6bb4f2;
}

/* Friend request notification */
.friend-request-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 15px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.friend-request-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.friend-request-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-request-info {
  flex: 1;
}

.friend-request-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.friend-request-text {
  font-size: 12px;
  color: #666;
}

.friend-request-actions {
  display: flex;
  gap: 5px;
}

.friend-request-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.friend-request-accept {
  background-color: var(--mint);
  color: white;
}

.friend-request-reject {
  background-color: #f0f0f0;
  color: #666;
}

/* Styles untuk upload modal */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.upload-modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease;
}

.upload-modal-icon {
  font-size: 48px;
  color: #4caf50;
  margin-bottom: 20px;
}

.upload-progress-container {
  margin-bottom: 20px;
}

.upload-progress-bar {
  background: #f0f0f0;
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.upload-progress {
  background: linear-gradient(90deg, #4caf50, #45a049);
  height: 100%;
  width: 0%;
  transition: width 0.3s;
  border-radius: 10px;
}

.upload-timer {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 12px;
}

.upload-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optimization info styles */
.post-optimization-info {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  background: #e8f5e8;
  border-radius: 10px;
  margin: 0 15px 10px;
  font-size: 12px;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.post-optimization-info.warning {
  background: #fff3e0;
  color: #ef6c00;
  border-color: #ffcc80;
}

.post-optimization-info i {
  font-size: 10px;
}

/* SocialPet Custom Notification */
.socialpet-notification {
  border-radius: 20px !important;
  border: 3px solid #ff6b6b !important;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3) !important;
}

.socialpet-notification .swal2-popup {
  padding: 30px !important;
}

/* Animasi tambahan */
@keyframes dogBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateY(-3px) rotate(5deg);
  }
}

.dog-animation {
  animation: dogBounce 0.6s ease-in-out infinite;
  display: inline-block;
}

/* File: profile.css - Tambahkan styles modal baru */

/* Improved Modal Styles */
.pet-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  position: relative;
  border-radius: 15px 15px 0 0;
}

.modal-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Photo Upload Section */
.photo-upload-section {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.photo-upload-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 400px;
  margin: 0 auto;
}

.photo-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #e9ecef;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.photo-preview:hover .photo-overlay {
  opacity: 1;
}

.btn-upload {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-upload:hover {
  background: white;
  transform: translateY(-2px);
}

.photo-instructions {
  text-align: left;
}

.photo-instructions p {
  margin: 0.25rem 0;
}

.text-muted {
  color: #6c757d !important;
  font-size: 0.85rem;
}

/* Form Sections */
.form-sections {
  padding: 2rem;
}

.form-section-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.section-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.section-header i {
  color: #667eea;
  font-size: 1.2rem;
}

/* Improved Form Elements */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.required {
  color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.input-help {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Date Input */
.date-input-container {
  position: relative;
}

.date-input {
  padding-right: 2.5rem;
}

.date-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-right: 2.5rem;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-checkmark {
  border-color: #667eea;
  background: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-checkmark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span {
  color: #667eea;
  font-weight: 600;
}

/* Privacy Options */
.privacy-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.privacy-option {
  cursor: pointer;
}

.privacy-option input[type="radio"] {
  display: none;
}

.privacy-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.privacy-card.public {
  border-color: #28a745;
}

.privacy-card.private {
  border-color: #6c757d;
}

.privacy-option input[type="radio"]:checked + .privacy-card {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.privacy-card i {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.privacy-card.public i {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.privacy-card.private i {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.privacy-info {
  flex: 1;
}

.privacy-title {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.privacy-desc {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
}

.privacy-check {
  opacity: 0;
  transition: all 0.3s ease;
  color: #667eea;
}

.privacy-option input[type="radio"]:checked + .privacy-card .privacy-check {
  opacity: 1;
}

/* Textarea Counter */
.textarea-counter {
  text-align: right;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 0 0;
  border-top: 1px solid #e9ecef;
  margin-top: 1rem;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #545b62;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pet-modal {
    margin: 5% 1rem;
    width: calc(100% - 2rem);
  }

  .modal-header {
    padding: 1.5rem;
  }

  .photo-upload-container {
    flex-direction: column;
    text-align: center;
  }

  .photo-instructions {
    text-align: center;
  }

  .form-sections {
    padding: 1rem;
  }

  .form-section-card {
    padding: 1rem;
  }

  .privacy-options {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 1.25rem;
  }

  .photo-preview {
    width: 100px;
    height: 100px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Premium Badge Styles - Updated Smaller Size */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
  animation: premium-glow 2s ease-in-out infinite alternate;
  line-height: 1;
  height: 16px;
}

.premium-badge i {
  font-size: 7px;
  color: #000;
}

@keyframes premium-glow {
  from {
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
  }
  to {
    box-shadow: 0 1px 5px rgba(255, 215, 0, 0.5), 0 0 8px rgba(255, 215, 0, 0.3);
  }
}

/* Style untuk post user info dengan badge */
.post-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}

/* Responsive adjustments untuk premium badge */
@media (max-width: 576px) {
  .premium-badge {
    font-size: 8px;
    padding: 1px 5px;
    margin-left: 5px;
    height: 14px;
    gap: 2px;
  }

  .premium-badge i {
    font-size: 6px;
  }
}
