:root {
    --primary: #ff6b00;
    --secondary: #4a4a4a;
    --background: #fdf2e2;
    --card-bg: #ffffff;
    --text: #333333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 2px 2px 0 #000;
    transform: rotate(-5deg);
    margin-bottom: 0;
}

.logo-img {
    display: block;
    margin: 0 auto 0.5em auto;
    max-width: 320px;
    width: 100%;
    height: auto;
}

.style-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 0;
}

.style-switcher button {
    padding: 8px 16px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.style-switcher button.active {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.style-switcher button:hover, .style-switcher button:focus {
    color: #fff;
    background: #e05a00;
    border: 2px solid #e05a00;
}

.input-group, .slider-group {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.dough-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.dough-section > label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

.dough-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dough-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dough-input-row:last-child {
    border-bottom: none;
}

.row-label {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0;
    flex: 1;
}

.number-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.number-input button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.number-input button:hover {
    background-color: #e05a00;
}

.number-input input {
    width: 80px;
    height: 36px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
}

.number-input input:focus {
    border-color: var(--primary);
    outline: none;
}

.slider-container {
    position: relative;
}

.inline-value {
    font-family: 'Permanent Marker', cursive;
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

/* Firefox styles */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

.value {
    position: absolute;
    right: 0;
    top: -30px;
    color: white;
    font-weight: 600;
}

.yeast-selector {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.yeast-selector label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

.yeast-selector .buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yeast-selector button {
    padding: 12px 15px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.yeast-selector button.active {
    background: var(--primary);
    color: white;
}

.results {
    margin-top: 40px;
}

.results h2,
.results-header h2 {
    font-size: 2.4rem;
    font-family: 'Permanent Marker', cursive;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-card {
    background: var(--primary);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.result-card .value {
    font-size: 2rem;
    font-weight: 600;
    position: static;
    color: white;
    margin-bottom: 5px;
}

.result-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-card .flour-recommendation {
    font-size: 0.8rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    margin-left: 5px;
    cursor: help;
}

.fermentation-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sublabel {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    min-width: 45px;
}

.fermentation-input + .fermentation-input {
    margin-top: 10px;
}

.style-info {
    margin: 0 0 30px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    color: #666;
    box-shadow: var(--shadow);
}

.style-info-main {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Speech bubble style for the info panel in the method section */
.style-info-details {
    position: relative;
    background: #fffbe7;
    border: 2px solid #ffe082;
    border-radius: 18px;
    padding: 1.2em 1.5em 1.2em 1.5em;
    margin-bottom: 2em;
    margin-top: 1em;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.07);
    font-size: 1.08em;
    color: #6d4c00;
}

.style-info-details::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 100%;
    width: 0;
    height: 0;
    border: 18px solid transparent;
    border-top: 18px solid #fffbe7;
    border-bottom: 0;
    border-right: 0;
    margin-left: -9px;
}

.style-info-details .flour-recommendation,
.style-info-details .texture-goal,
.style-info-details .fermentation-note,
.style-info-details .additional-info {
    margin-bottom: 0.5em;
    font-weight: 500;
}

.style-info-details .flour-recommendation {
    color: #b26a00;
}

.style-info-details .texture-goal {
    color: #ff9800;
}

.style-info-details .fermentation-note {
    color: #6d4c00;
    font-style: italic;
}

.style-info-details .additional-info {
    color: #8d6e63;
    font-size: 0.98em;
}

.style-info:hover {
    cursor: help;
}

.hydration-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hydration-level {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.hydration-level.easy {
    color: #28a745;
}

.hydration-level.medium {
    color: #17a2b8;
}

.hydration-level.advanced {
    color: #ffc107;
}

.hydration-level.expert {
    color: #dc3545;
}

.hydration-description {
    color: var(--secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

.advanced-warning {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius);
    color: #856404;
    font-size: 0.9em;
    display: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.advanced-warning:hover {
    background-color: #fff8e1;
    border-color: #ffecb3;
}

.method-section {
    margin-top: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: none;
}

.method-section h2 {
    font-family: 'Permanent Marker', cursive;
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method-step {
    display: flex;
    gap: 20px;
    position: relative;
}

.method-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -25px;
    width: 2px;
    background: var(--primary);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.method-step:hover::after {
    opacity: 0.4;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.advanced-note {
    color: #856404;
    background-color: #fff3cd;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    margin-top: 8px;
}

.texture-note {
    font-style: italic;
    color: var(--secondary);
    font-size: 0.9em;
}

.fermentation-note {
    color: var(--secondary);
    font-size: 0.9em;
    font-style: italic;
}

.fermentation-info {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.fermentation-info h3 {
    color: var(--primary);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.fermentation-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.fermentation-phase {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.fermentation-phase h4 {
    color: var(--secondary);
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.fermentation-phase p {
    margin: 5px 0;
    color: var(--text);
}

.fermentation-phase .note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.fermentation-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Subtle tip styling for method section tips */
.flour-recommendation, .texture-note, .fermentation-note, .additional-info, .advanced-note {
    background: #fffbe7;
    border-left: 4px solid #ffe082;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 10px 0 10px 0;
    font-size: 0.98em;
    color: #7a5a00;
    display: block;
}

.advanced-note {
    background: #fff3cd;
    border-left: 4px solid #ffd966;
    color: #856404;
}

/* Style summary: center and italic */
.style-summary {
    text-align: center;
    font-style: italic;
    color: #4a4a4a;
    margin-bottom: 1.5em;
    font-size: 1.08em;
}

.floating-share-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1000;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.floating-share-btn:hover, .floating-share-btn:focus {
    background: #e05a00;
    box-shadow: 0 4px 16px rgba(255,107,0,0.13);
    transform: translateY(-2px) scale(1.04);
    outline: none;
}

.share-confirmation {
    position: fixed;
    right: 40px;
    bottom: 90px;
    background: #fffbe7;
    color: #7a5a00;
    border: 2px solid #ffe082;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1.05em;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 1100;
    display: none;
    pointer-events: none;
}

/* Modern button styles */
button, .floating-share-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
button:hover, button:focus, .floating-share-btn:hover, .floating-share-btn:focus {
  background: #e05a00;
  box-shadow: 0 4px 16px rgba(255,107,0,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* Card-like section backgrounds */
.dough-section, .slider-group, .yeast-selector, .results, .method-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 22px 20px 24px 20px;
}

/* Animated transitions for method/results */
.method-section, .results {
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
}
.method-section:hover, .results:hover {
  box-shadow: 0 8px 32px rgba(255,107,0,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* Consistent spacing for headings and sections */
.method-section h2, .results h2 {
  margin-top: 0;
  margin-bottom: 1.2em;
}

/* Prepare for style icon/banner */
.style-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
  min-height: 60px;
}
.style-banner img {
  height: 120px;
  width: auto;
  margin-right: 0;
  border-radius: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: none;
}
.style-banner .banner-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.3em;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Responsive tweaks for mobile (will add more in next step) */
@media (max-width: 600px) {
  .container {
    padding: 6px;
  }
  .dough-section, .slider-group, .yeast-selector, .results, .method-section {
    padding: 12px 6px 16px 6px;
  }
  .floating-share-btn {
    right: 12px;
    bottom: 12px;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .style-banner img {
    height: 36px;
    margin-right: 8px;
  }
  .logo-img {
    max-width: 180px;
  }
  .results h2,
  .results-header h2 {
    font-size: 2rem;
  }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    /* Increase touch targets */
    button, 
    input[type="number"],
    .number-input button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Style the install prompt button */
    .install-prompt {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #ffffff;
        border: 2px solid #000;
        border-radius: 50px;
        padding: 12px 24px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 1000;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .install-prompt:active {
        transform: scale(0.95);
    }

    .install-prompt svg {
        width: 24px;
        height: 24px;
    }

    /* Touch feedback */
    .touch-active {
        transform: scale(0.95);
        opacity: 0.8;
    }

    /* Improve mobile layout */
    .container {
        padding: 16px;
    }

    .style-switcher {
        flex-wrap: wrap;
        gap: 8px;
    }

    .style-switcher button {
        flex: 1;
        min-width: 120px;
        padding: 12px;
        font-size: 16px;
    }

    .dough-inputs {
        gap: 16px;
    }

    .dough-input-row {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .number-input {
        width: 100%;
        justify-content: center;
    }

    .row-label,
    .sublabel {
        text-align: center;
        width: 100%;
        display: block;
    }

    .slider-container {
        padding: 16px 0;
    }

    .slider-container input[type="range"] {
        height: 44px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .result-card {
        padding: 16px;
    }

    .result-card .value {
        font-size: 24px;
    }

    /* Prevent text size adjustment */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* Improve scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbars but keep functionality */
    ::-webkit-scrollbar {
        display: none;
    }

    .dough-section h2,
    .slider-group h2,
    .yeast-selector h2,
    .results h2,
    .method-section h2,
    .dough-section h3,
    .slider-group h3,
    .yeast-selector h3,
    .results h3,
    .method-section h3 {
        text-align: center;
        width: 100%;
    }
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: none;
}

/* Improve tap highlight color */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* Feedback Modal Styles */
.feedback-modal {
  position: absolute;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.feedback-modal[hidden] {
  display: none !important;
}
.feedback-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px 28px 28px;
  max-width: 95vw;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  text-align: left;
  border: 1.5px solid #ffe0c2;
}
.feedback-modal-content h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--primary);
}
#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#feedback-form label {
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 2px;
}
#feedback-form input,
#feedback-form textarea {
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 2px;
  transition: border 0.2s;
}
#feedback-form input:focus,
#feedback-form textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
#feedback-form button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
#feedback-form button[type="submit"]:hover {
  background: #e05a00;
}
.close-feedback {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-feedback:hover {
  color: var(--primary);
}
.feedback-success {
  color: #28a745;
  margin-top: 1em;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .feedback-modal-content {
    padding: 18px 6px 18px 6px;
    max-width: 98vw;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #feedback-form button[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
  }
}

.floating-btn-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.floating-btn-group .floating-feedback-btn,
.floating-btn-group .floating-share-btn {
  position: static;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
@media (max-width: 600px) {
  .floating-btn-group {
    right: 10px;
    bottom: 10px;
    gap: 10px;
  }
  .floating-btn-group .floating-feedback-btn,
  .floating-btn-group .floating-share-btn {
    font-size: 0.98rem;
    padding: 12px 18px;
  }
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
.results-header h2 {
  flex: 0 1 auto;
  text-align: center;
  margin: 0;
}
.results-header .floating-share-btn {
  margin-left: 12px;
}
@media (max-width: 700px) {
  .results-header {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
  .results-header h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
  }
  .results-header .floating-share-btn {
    margin-left: 0;
  }
}

.share-btn-below-method {
  display: flex;
  justify-content: center;
  margin: 32px 0 40px 0;
}
.share-btn-below-method .floating-share-btn {
  position: static;
  margin: 0 auto 32px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  font-size: 1.1rem;
  padding: 14px 36px;
}
@media (max-width: 600px) {
  .share-btn-below-method {
    margin: 24px 0 28px 0;
  }
  .share-btn-below-method .floating-share-btn {
    font-size: 1rem;
    padding: 12px 18px;
    margin-bottom: 20px;
  }
}

.hidden {
  display: none !important;
}

.pizza-rating {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px 0;
  justify-content: center;
  align-items: center;
}
.pizza-slice {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.1s;
  filter: grayscale(1) brightness(0.8);
  outline: none;
  padding: 0 2px;
}
.pizza-slice.selected,
.pizza-slice.filled {
  filter: none;
  transform: scale(1.15);
}
.pizza-slice:focus {
  outline: 2px solid var(--primary);
}

.feedback-modal,
.feedback-modal-content,
#feedback-form,
#feedback-form input,
#feedback-form textarea {
  pointer-events: auto !important;
}

.feedback-modal--hidden {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s;
}
.feedback-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.floating-feedback-btn,
.floating-feedback-btn:link,
.floating-feedback-btn:visited {
  display: inline-block;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
}
.floating-feedback-btn:hover,
.floating-feedback-btn:focus {
  background: #e05a00;
  box-shadow: 0 4px 16px rgba(255,107,0,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

@media (min-width: 900px) {
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    margin: 0 auto;
  }
  .dashboard-left > * {
    margin-bottom: 32px;
  }
  .dashboard-right > * {
    margin-bottom: 32px;
  }
  .dashboard-right .results {
    margin-top: 0 !important;
  }
  .container {
    max-width: 1200px;
    padding: 40px 32px;
  }
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .method-section {
    padding: 48px 48px 48px 48px;
    margin-top: 56px;
  }
  .dough-section, .slider-group, .yeast-selector, .results {
    padding: 36px 32px 36px 32px;
    margin-bottom: 32px;
  }
  .style-banner img {
    height: 160px;
  }
}

.save-recipe-btn {
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.save-recipe-btn:hover, .save-recipe-btn:focus {
  background: #e05a00;
  outline: none;
}
.load-recipe-dropdown {
  border-radius: 50px;
  border: 1.5px solid #ff6b00;
  font-size: 1rem;
  padding: 10px 18px;
  font-family: 'Rubik', sans-serif;
  color: #333;
  background: #fff;
  font-weight: 500;
  outline: none;
  transition: border 0.2s;
}
.load-recipe-dropdown:focus {
  border: 1.5px solid #e05a00;
}

.delete-recipe-btn {
  background: #fff0ee;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
  border-radius: 50px;
  font-size: 1.2rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin-left: 0;
  outline: none;
}
.delete-recipe-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.delete-recipe-btn:hover:not(:disabled), .delete-recipe-btn:focus:not(:disabled) {
  background: #d32f2f;
  color: #fff;
  border: 1.5px solid #d32f2f;
}

.main-nav {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
}

@media (max-width: 768px) {
    .main-nav {
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
} 