/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

 .badge {
    --tw-bg-opacity: 1;
    background-color: rgba(226, 226, 213, var(--tw-bg-opacity));
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem;
    position: relative;
    --tw-text-opacity: 1;
    color: black;
    text-transform: uppercase;
    float: left;
}


.badge-overflow {
  --tw-bg-opacity: 1;
  background-color: rgba(226, 226, 213, var(--tw-bg-opacity));
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.5rem;
  position: absolute;
  top: 0px;
  --tw-text-opacity: 1;
  color: black;
  text-transform: uppercase;
}

.badge-overflow-pin {
  --tw-bg-opacity: 1;
  background-color: rgba(226, 226, 213, var(--tw-bg-opacity));
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem;
  position: absolute;
  top: 0px;
  right: 0px;
  --tw-text-opacity: 1;
  color: black;
  text-transform: uppercase;
}

img[data-fancybox] {
  cursor: zoom-in;
}

.fancybox__container {
  --fancybox-bg: rgba(193, 201, 210, 0.7);
}

.fancybox-zoomOut {
  animation: 0.2s ease-in-out fancybox-zoomOut both;
}

.fancybox-zoomIn {
  animation: 0.25s ease-in-out fancybox-zoomIn both;
}

@keyframes fancybox-zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 0.8);
  }

  100% {
    opacity: 1;
  }
}

@keyframes fancybox-zoomOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 0.8);
  }
}

.strike{
  text-decoration: line-through;
  opacity: 0.6; /* Real browsers */
  filter: alpha(opacity = 60); /* MSIE */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media print {
  body{
    padding: 10px;
  }
  .shadow {box-shadow: none;
  }
}

.st-accordion .st-accordion__icon:before
{content:"▼";display:inline-block;font-size:80%;margin-right:5px;text-decoration:none;transform:rotate(-90deg)}

.st-accordion .st-accordion__icon--opened:before{transform:rotate(0deg)}
.st-accordion .st-accordion__content:not(.st-accordion__content--visible){height:0;opacity:0;overflow:hidden;transition:all .2s;visibility:hidden}
.st-accordion .st-accordion__content.st-accordion__content--visible{opacity:1;overflow:hidden;transition:all .2s;visibility:visible}

.aa-Autocomplete{
  min-width: 200px;
}

/* total width */
.scrollbar::-webkit-scrollbar {
  width:16px
}

/* scrollbar itself */
.scrollbar::-webkit-scrollbar-thumb {
  background-color:#4E9573;
  border-radius:16px;
}

/* set button(top and bottom of the scrollbar) */
.scrollbar::-webkit-scrollbar-button {display:none}

/* Recipe Form Enhancements */
.step-panel {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Smooth transitions for form elements */
input:focus, textarea:focus, select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* File input styling */
input[type="file"]::-webkit-file-upload-button {
  transition: all 0.2s ease-in-out;
}

input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
}



/* Nested form animations */
.nested-form-wrapper {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button hover effects */
button {
  transition: all 0.2s ease-in-out;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Custom scrollbar for textareas */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Step Group Accordion Styles */
.accordion-content {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.accordion-content.hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.accordion-content:not(.hidden) {
  max-height: none;
  opacity: 1;
}

/* Accordion icon rotation */
[data-accordion-target="icon"] svg {
  transition: transform 0.3s ease-in-out;
}

/* Step group header hover effect */
.cursor-pointer:hover {
  background-color: rgba(243, 244, 246, 0.8);
}

/* Custom Searchable Dropdown Styles */
.recipe-option {
  transition: background-color 0.15s ease-in-out;
}

.recipe-option:hover {
  background-color: #dbeafe !important;
  color: #1e40af;
}

.recipe-option:last-child {
  border-bottom: none !important;
}

/* Dropdown animation */
[data-link-target="options"] {
  animation: dropdownFadeIn 0.15s ease-out;
  transform-origin: top;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scaleY(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* Search input focus state */
[data-link-target="search"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom scrollbar for dropdown */
[data-link-target="options"]::-webkit-scrollbar {
  width: 8px;
}

[data-link-target="options"]::-webkit-scrollbar-track {
  background: #f8fafc;
}

[data-link-target="options"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

[data-link-target="options"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Recipe Import Modal */
.recipe-import-modal {
  transition: opacity 0.25s ease-out;
}

.recipe-import-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.recipe-import-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.recipe-import-modal .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Import button gradient animation */
.import-button-container button {
  position: relative;
  overflow: hidden;
}

.import-button-container button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.import-button-container button:hover:before {
  left: 100%;
}

/* Section Navigation Styles */
.section-nav-sidebar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.active {
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Ensure smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Add some padding to the main content to account for fixed sidebar on large screens */
@media (min-width: 1024px) {
  .recipe-form-container {
    margin-left: 1rem;
  }
}

/* Hide navigation on smaller screens to avoid clutter */
@media (max-width: 1023px) {
  .section-nav-sidebar {
    display: none !important;
  }
}

/* Custom Form UX Enhancements */

/* Smooth focus transitions for all form inputs */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  transition: all 0.2s ease-in-out;
}

/* Enhanced focus states */
input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Form validation styles - excluding checkboxes and radio buttons */
input:not([type="checkbox"]):not([type="radio"]):invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
  background-color: #fef2f2;
}

input:not([type="checkbox"]):not([type="radio"]):valid:not(:focus):not(:placeholder-shown) {
  border-color: #10b981;
  background-color: #f0fdf4;
}



/* Hover effects for buttons */
button:hover {
  transform: translateY(-1px);
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip styles */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #374151;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #374151 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Enhanced section headers */
.section-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

/* Improved file upload area */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.file-upload-area.dragover {
  border-color: #3b82f6;
  background-color: #eff6ff;
  transform: scale(1.02);
}

/* Character counter styling */
.char-counter {
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.danger {
  color: #ef4444;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  input, select, textarea {
    border-width: 2px;
  }
  
  button {
    border: 2px solid;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .section-nav-sidebar {
    display: none !important;
  }
  
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Print styles */
@media print {
  .section-nav-sidebar,
  button:not([type="submit"]) {
    display: none !important;
  }
}
/****** Style Star Rating Widget *****/

.rating { 
  border: none;
  float: left;
}

.rating > input { display: none; } 
.rating > label:before { 
  margin: 5px;
  font-size: 1.5em;
  font-family: 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  display: inline-block;
  content: "\f005";
}

.rating > .half:before { 
  content: "\f089";
  position: absolute;
}

.rating > label { 
  color: #ddd; 
 float: right; 
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { color: #FFD700;  } /* hover previous stars in list */

.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label { color: rgb(234 179 8);  } 


.rating2 { 
  border: none;
  float: left;
}

.rating2> input { display: none; } 
.rating2 > label:before { 
  margin: 5px;
  font-size: 1.5em;
  font-family: 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  display: inline-block;
  content: "\f005";
}

.rating2 > .half:before { 
  content: "\f089";
  position: absolute;
}

.rating2 > label { 
  color: #ddd; 
 float: right; 
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating2 > input:checked ~ label, /* show gold star when clicked */
.rating2:not(:checked) > label:hover, /* hover current star */
.rating2:not(:checked) > label:hover ~ label { color: #FFD700;  } /* hover previous stars in list */

.rating2 > input:checked + label:hover, /* hover current star when changing rating */
.rating2 > input:checked ~ label:hover,
.rating2 > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating2 > input:checked ~ label:hover ~ label { color: rgb(234 179 8);  } 
.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.5em
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--twitter {
  background-color: #55acee
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9
}

.resp-sharing-button--pinterest {
  background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615
}

.resp-sharing-button--facebook {
  background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--reddit {
  background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1
}

.resp-sharing-button--google {
  background-color: #dd4b39
}

.resp-sharing-button--google:hover {
  background-color: #c23321
}

.resp-sharing-button--linkedin {
  background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293
}

.resp-sharing-button--email {
  background-color: #777
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e
}

.resp-sharing-button--xing {
  background-color: #1a7576
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c
}

.resp-sharing-button--whatsapp {
  background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851
}

.resp-sharing-button--hackernews {
background-color: #FF6600
}
.resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {   background-color: #FB6200 }

.resp-sharing-button--vk {
  background-color: #507299
}

.resp-sharing-button--vk:hover {
  background-color: #43648c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.resp-sharing-button--linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

.resp-sharing-button--linkedin:hover,
.resp-sharing-button--linkedin:active {
  background-color: #046293;
  border-color: #046293;
}

.resp-sharing-button--reddit {
  background-color: #5f99cf;
  border-color: #5f99cf;
}

.resp-sharing-button--reddit:hover,
.resp-sharing-button--reddit:active {
  background-color: #3a80c1;
  border-color: #3a80c1;
}
