/* Custom styles that extend Bootstrap */

/* Custom styles for our application */

/* Sticky Save Button */
.sticky-save-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e9ecef;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Add bottom padding to body when sticky button is present */
body.has-sticky-save {
  padding-bottom: 80px;
}


/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 70vh;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Feature Icons */
.feature-icon {
  transition: transform 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

/* Pricing Options - Custom styles with high specificity */
.pricing-option {
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
  border: 1px solid #ddd !important;
  border-radius: 0.375rem !important;
}

.pricing-option:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.pricing-option > div {
  transition: all 0.3s ease !important;
  position: relative !important;
  border: 2px solid transparent !important;
  background: transparent !important;
  color: #495057 !important;
  height: 100% !important;
  min-height: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  border-radius: 0.375rem !important;
}

.pricing-option:hover > div {
  border: 2px solid #41BEEF !important;
  background: rgba(65, 190, 239, 0.05) !important;
}

.pricing-option.featured > div {
  background: linear-gradient(135deg, #41BEEF, #89CEDA) !important;
  color: white !important;
}

.pricing-option.agency > div {
  background: linear-gradient(135deg, #41BEEF, #89CEDA) !important;
  color: white !important;
}

.pricing-option.featured:hover > div,
.pricing-option.agency:hover > div {
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

/* Selected state */
.pricing-option.selected > div {
  border: 3px solid #41BEEF !important;
  box-shadow: 0 0 0 3px rgba(65, 190, 239, 0.25) !important;
  transform: scale(1.05) !important;
  background: rgba(65, 190, 239, 0.1) !important;
}

.pricing-option.selected.featured > div,
.pricing-option.selected.agency > div {
  border: 3px solid #41BEEF !important;
  box-shadow: 0 0 0 3px rgba(65, 190, 239, 0.25) !important;
  background: linear-gradient(135deg, #41BEEF, #89CEDA) !important;
  color: white !important;
}

.pricing-option.selected > div::after {
  content: "✓" !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: #41BEEF !important;
  color: white !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 14px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.pricing-option.selected.featured > div::after,
.pricing-option.selected.agency > div::after {
  background: #fff !important;
  color: #41BEEF !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .pricing-option > div {
    min-height: 70px !important;
    padding: 0.75rem !important;
  }

  .pricing-option > div .fw-bold {
    font-size: 0.9rem !important;
  }

  .pricing-option > div .fs-5 {
    font-size: 1.1rem !important;
  }

  .pricing-option > div small {
    font-size: 0.75rem !important;
  }
}

/* Product Detail Styles */
.product-detail {
  margin-bottom: 2rem;
}

.product-main {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-image {
  flex-shrink: 0;
}

.product-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.product-icon-placeholder {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-meta {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-details {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  width: 100%;
}

.plugin-detail-content {
  line-height: 1.6;
}

.plugin-detail-content h1,
.plugin-detail-content h2,
.plugin-detail-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.plugin-detail-content ul,
.plugin-detail-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.plugin-detail-content li {
  margin-bottom: 0.5rem;
}

.plugin-detail-content strong {
  font-weight: 600;
}

.plugin-detail-content a {
  color: #0d6efd;
  text-decoration: none;
}

.plugin-detail-content a:hover {
  text-decoration: underline;
}

.detail-image {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* RTL Support */
[dir="rtl"] .row {
  flex-direction: row-reverse;
}

[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
  margin-right: 0;
  margin-left: 0.25rem;
}

[dir="rtl"] .ms-auto {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .text-end,
[dir="rtl"] .text-lg-end,
[dir="rtl"] .text-md-end {
  text-align: left;
}

[dir="rtl"] .product-main {
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-option.selected > div::after {
  right: auto;
  left: -8px;
}

/* Footer */
footer {
  background-color: #212529;
  color: #fff;
  padding: 3rem 0;
}

footer h5,
footer h6 {
  color: #fff;
  margin-bottom: 1rem;
}

footer .text-muted {
  color: #6c757d;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Utility classes */
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Custom JavaScript for dropdown and modal functionality */
.dropdown-toggle:hover + .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

/* Admin Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.admin-header h1 {
  margin: 0;
  color: #333;
}

.admin-nav {
  background: #f8f9fa;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.admin-nav a {
  color: #007bff;
  text-decoration: none;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.admin-nav a:hover {
  background: #e9ecef;
}

.admin-form {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-success {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.btn-success:hover {
  color: #fff;
  background-color: #157347;
  border-color: #146c43;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #bb2d3b;
  border-color: #b02a37;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

/* Simple Editor Styles */
.simple-editor {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.editor-toolbar {
  background: #f1f3f5;
  border: 1px solid #737679;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.btn-tool {
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
  border: 1px solid #737679;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-tool:hover {
  color: #0d6efd;
  background-color: #e7f1ff;
  border-color: #0d6efd;
  text-decoration: none;
}

.btn-tool:focus {
  color: #0d6efd;
  background-color: #e7f1ff;
  border-color: #0d6efd;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-tool:active {
  color: #0d6efd;
  background-color: #d1e7ff;
  border-color: #0d6efd;
}

.btn-tool:active:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-tool.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.btn-tool.active:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  color: white;
}

.separator {
  color: #6c757d;
  margin: 0 0.25rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.editor-area {
  min-height: 200px;
  padding: 1rem;
  border: none;
  outline: none;
  font-family: inherit;
  line-height: 1.6;
}


.editor-area:focus {
  outline: none;
}

.editor-area h1,
.editor-area h2,
.editor-area h3,
.editor-area h4,
.editor-area h5,
.editor-area h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.editor-area h1 { font-size: 2rem; }
.editor-area h2 { font-size: 1.5rem; }
.editor-area h3 { font-size: 1.25rem; }

.editor-area p {
  margin-bottom: 1rem;
}

.editor-area ul,
.editor-area ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.editor-area li {
  margin-bottom: 0.25rem;
}

.editor-area a {
  color: #0d6efd;
  text-decoration: underline;
}

.editor-area a:hover {
  text-decoration: none;
}

.editor-area strong {
  font-weight: 600;
}

.editor-area em {
  font-style: italic;
}

.editor-area code {
  background: #f8f9fa;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
}

.editor-area blockquote {
  border-left: 4px solid #dee2e6;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6c757d;
  font-style: italic;
}

/* Card Styles */
.card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  color: #495057;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

.card-text {
  margin-bottom: 1rem;
  color: #6c757d;
}

/* Table Styles */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  text-align: left;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  background: #f8f9fa;
  font-weight: 600;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

/* Alert Styles */
.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-info {
  color: #055160;
  background-color: #d1ecf1;
  border-color: #b6effb;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.badge-primary {
  background-color: #0d6efd;
}

.badge-success {
  background-color: #198754;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-warning {
  background-color: #ffc107;
  color: #000;
}

.badge-info {
  background-color: #0dcaf0;
  color: #000;
}

.badge-light {
  background-color: #f8f9fa;
  color: #000;
}

.badge-dark {
  background-color: #212529;
}

/* Image Upload Styles */
.image-upload {
  border: 2px dashed #dee2e6;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  margin-bottom: 1rem;
}

.image-upload:hover {
  border-color: #adb5bd;
  background: #e9ecef;
}

.image-upload input[type="file"] {
  display: none;
}

.image-upload label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview img {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: none;
  }
  
  .navbar-expand-lg .navbar-collapse.show {
    display: flex;
  }
  
  .product-main {
    flex-direction: column;
  }
  
  .admin-container {
    padding: 10px;
  }
  
  .admin-form {
    padding: 1rem;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
  }
  
  .btn-tool {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}
