/* Theme Colors inherited from style-modern.css */
.container {
  padding-top: 20px;
}
/* Back Button */









/* Tambahkan style global untuk menghilangkan underline pada semua link */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}
/* Navigation Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
}
.nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
}
.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}
/* Search Form */
.input-group {
  margin-bottom: 20px;
}
.input-group input {
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
}
/* Hadist Card */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.arabic-text {
  font-size: 24px;
  line-height: 2;
  text-align: right;
  margin-bottom: 15px;
  font-family: "Traditional Arabic", serif;
}
.translation-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}
/* Dropdown Menu */







/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0;
  color: var(--text-color);
}
/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding-top: 60px;
  }
  
  
  .arabic-text {
    font-size: 20px;
  }
}

/* Theme Colors */
:root {
  --primary-color: #4caf50;
  --secondary-color: #2196f3;
  --text-color: #333;
  --bg-color: #fff;
  --card-bg: #fff;
  --border-color: #ddd;
}

/* Dark Theme Colors */
.dark-theme {
  --text-color: #ffffff;
  --bg-color: #1a1a2e; /* Warna background biru gelap */
  --card-bg: #2d2d44; /* Warna card biru gelap */
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  padding-top: 20px;
}

/* Back Button */





/* Navigation Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}

/* Search Form */
.input-group {
  margin-bottom: 20px;
}

.input-group input {
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Hadist Card */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arabic-text {
  font-size: 24px;
  line-height: 2;
  text-align: right;
  margin-bottom: 15px;
  font-family: "Traditional Arabic", serif;
}

.translation-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* Dropdown Menu */








/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding-top: 60px;
  }

  

  

  .arabic-text {
    font-size: 20px;
  }
}

/* Card styles for dark theme */
.dark-theme .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Text colors for dark theme */
.dark-theme .arabic-text,
.dark-theme .translation-text,
.dark-theme .nav-tabs .nav-link,
.dark-theme h1,
.dark-theme .back-absolute a,
.dark-theme footer {
  color: var(--text-color) !important;
}

/* Input styles for dark theme */
.dark-theme .input-group input {
  background-color: #3d3d5c;
  border-color: var(--border-color);
  color: var(--text-color);
}

/* Nav tabs styles for dark theme */
.dark-theme .nav-tabs {
  border-bottom-color: var(--border-color);
}

.dark-theme .nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color);
  background-color: transparent;
}

/* Dropdown styles for dark theme */
.dark-theme 

.dark-theme 

/* Hadist styling */
.hadist-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.hadist-title {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Dark theme adjustments */
.dark-theme .hadist-title {
  color: var(--text-color);
}

.dark-theme .hadist-header {
  border-bottom-color: var(--border-color);
}

/* Theme-specific styles */
body.light-theme .menu-icon,
body.light-theme 

body.dark-theme .menu-icon,
body.dark-theme 

body.light-theme 

body.dark-theme 

/* Responsive styles */
@media (max-width: 768px) {
  

  

  
}

/* Share buttons styling */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-buttons a {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.share-buttons .btn-sm {
  padding: 5px 10px;
}

.telegram-btn {
  background-color: #0088cc !important;
  border-color: #0088cc !important;
  color: white !important;
}

.btn-info {
  background-color: #1da1f2 !important;
  border-color: #1da1f2 !important;
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .share-buttons {
    justify-content: center;
  }

  .share-buttons .btn-sm {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Share dropdown styling */
.share-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

.share-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  z-index: 1000;
  min-width: 200px;
}

.share-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-color);
}

.share-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.share-dropdown a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.share-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.share-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

.share-dropdown i {
  width: 20px;
}

/* Platform-specific colors */
.share-dropdown a:hover i.fa-whatsapp {
  color: #25d366;
}

.share-dropdown a:hover i.fa-facebook {
  color: #1877f2;
}

.share-dropdown a:hover i.fa-twitter {
  color: #1da1f2;
}

.share-dropdown a:hover i.fa-telegram {
  color: #0088cc;
}

/* Dark theme adjustments */
.dark-theme .share-dropdown {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.dark-theme .share-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Icon colors */
.dropdown-item i {
  font-size: 1.2em;
}

/* Share button */
.btn-primary.dropdown-toggle {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive */
@media (max-width: 576px) {
  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-item {
    padding: 0.8rem 1.2rem;
  }
}

/* Share preview modal */
.share-preview-modal {
  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: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-preview-modal.show {
  opacity: 1;
}

.share-preview-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-preview-modal.show .share-preview-content {
  transform: translateY(0);
}

.share-preview-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-preview-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.close-preview-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

.close-preview-btn:hover {
  transform: scale(1.1);
}

.share-preview-body {
  padding: 15px;
  max-height: 40vh;
  overflow-y: auto;
}

.preview-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.share-preview-footer {
  padding: 15px;
  background: var(--card-bg);
}

.share-options {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  background: transparent;
}

/* Platform-specific styles with hover effects */
.share-option.whatsapp {
  color: #25d366;
  border-color: #25d366;
}

.share-option.whatsapp:hover {
  background: #25d366;
  color: white;
  transform: translateY(-2px);
}

.share-option.facebook {
  color: #1877f2;
  border-color: #1877f2;
}

.share-option.facebook:hover {
  background: #1877f2;
  color: white;
  transform: translateY(-2px);
}

.share-option.twitter {
  color: #1da1f2;
  border-color: #1da1f2;
}

.share-option.twitter:hover {
  background: #1da1f2;
  color: white;
  transform: translateY(-2px);
}

.share-option.telegram {
  color: #0088cc;
  border-color: #0088cc;
}

.share-option.telegram:hover {
  background: #0088cc;
  color: white;
  transform: translateY(-2px);
}

.share-option.clipboard {
  color: #6c757d;
  border-color: #6c757d;
}

.share-option.clipboard:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* Responsive styling */
@media (max-width: 768px) {
  .share-preview-content {
    width: 95%;
    margin: 15px;
    max-height: 80vh;
  }

  .share-options {
    padding: 10px 15px 15px;
  }

  .share-option {
    padding: 14px;
    margin-bottom: 5px;
    font-size: 16px;
  }

  .share-option i {
    margin-right: 15px;
    font-size: 20px;
    width: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .share-options {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .share-preview-header h5 {
    font-size: 16px;
  }

  .preview-text {
    font-size: 14px;
    padding: 12px;
    margin-bottom: 10px;
  }
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
}

.toast-notification i {
  color: #28a745;
}

/* Toast notification untuk feedback salin */
.toast-notification.clipboard {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast-notification.clipboard.show {
  opacity: 1;
}

.toast-notification.clipboard i {
  color: #4caf50;
}

/* Active state untuk mobile */
@media (hover: none) {
  .share-option:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  .share-option.clipboard:active {
    background: #6c757d;
    color: white;
  }
}
