/* Recipe Modal - Matching Dashboard Design */

/* Overlay */
.recipe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
  180deg,
  rgba(10, 8, 5, 0.2) 0%,
  rgba(22, 18, 16, 0.2) 50%,
  rgba(31, 26, 22, 0.2) 100%
);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-modal-overlay.active {
    opacity: 1;
}

/* Modal Container */
.recipe-modal {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.85) 0%, rgba(15, 15, 15, 0.9) 50%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 24px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
                0 0 1px rgba(168, 107, 62, 0.5);
    display: flex;
    flex-direction: row;
}

.recipe-modal-overlay.active .recipe-modal {
    transform: scale(1);
    opacity: 1;
}

/* Modal scrollbar is now on content, not container */

/* Close Button */
.recipe-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(168, 107, 62, 0.1);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 12px;
    color: #d4a574;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow: hidden;
}

.recipe-modal-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(239, 68, 68, 0) 0%, rgba(239, 68, 68, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.4);
}

.recipe-modal-close:hover::before {
    opacity: 1;
}

.recipe-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Modal Header - Hidden in Side-Nav Version */
.recipe-modal-header {
    display: none;
}

/* Cover Upload */
.recipe-cover-upload {
    width: 280px;
    height: 180px;
    background: rgba(10, 10, 10, 0.6);
    border: 2px dashed rgba(168, 107, 62, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.recipe-cover-upload:hover {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.recipe-cover-upload.drag-over {
    background: rgba(20, 20, 20, 0.9);
    border-color: #f2cf7b;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.2);
}

.recipe-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(196, 181, 160, 0.5);
}

.recipe-cover-placeholder svg {
    color: rgba(168, 107, 62, 0.3);
}

.recipe-cover-placeholder p {
    font-size: 14px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.6);
    margin: 0;
}

.recipe-cover-placeholder span {
    font-size: 12px;
    color: rgba(196, 181, 160, 0.4);
}

.recipe-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Header Right */
.recipe-header-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipe-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipe-modal-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f2cf7b 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    border: none;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

.recipe-modal-title:focus {
    filter: brightness(1.2);
}

.ai-badge-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    color: #a855f7;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-badge-modal .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Favorite Button in Modal (Next to Privacy Toggle) */
.favorite-btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.favorite-btn-modal svg {
    width: 18px;
    height: 18px;
    fill: #ef4444;
    stroke: #ef4444;
    stroke-width: 2;
    filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.4));
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.favorite-btn-modal:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
}

.favorite-btn-modal:not(.inactive) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.favorite-btn-modal.inactive svg {
    fill: none;
    stroke: rgba(168, 107, 62, 0.5);
    filter: none;
}

.favorite-btn-modal.inactive:hover svg {
    stroke: rgba(212, 165, 116, 0.9);
    filter: drop-shadow(0 2px 6px rgba(212, 165, 116, 0.3));
}

.favorite-btn-modal:active {
    transform: scale(0.98);
}

/* Favorite animation */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

.favorite-btn-modal.animating svg {
    animation: heartBeat 0.5s ease;
}

/* Roaster Input */
.recipe-roaster-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recipe-roaster-input:hover {
    background: rgba(15, 15, 15, 0.7);
    border-color: rgba(168, 107, 62, 0.3);
}

.recipe-roaster-input svg {
    color: rgba(168, 107, 62, 0.5);
    flex-shrink: 0;
}

.recipe-roaster-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(196, 181, 160, 0.9);
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    outline: none;
    padding: 0;
}

.recipe-roaster-input input:focus {
    color: #d4a574;
}

.recipe-roaster-input input::placeholder {
    color: rgba(196, 181, 160, 0.4);
}

/* Meta Controls */
.recipe-meta-controls {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.brew-type-selector,
.privacy-toggle,
.favorite-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brew-type-selector label,
.privacy-toggle label,
.favorite-toggle label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(196, 181, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brew-type-buttons {
    display: flex;
    gap: 8px;
}

.brew-type-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brew-type-btn:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
    color: #d4a574;
}

.brew-type-btn.active {
    background: rgba(212, 165, 116, 0.15);
    border-color: #f2cf7b;
    color: #f2cf7b;
}

.privacy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-btn:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
}

.privacy-btn.private {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.privacy-btn.public {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Modal Content - Hidden in Side-Nav Version */
.recipe-modal-content {
    display: none;
}

/* Custom Scrollbar for Content */
.recipe-modal-content::-webkit-scrollbar {
    width: 8px;
}

.recipe-modal-content::-webkit-scrollbar-track {
    background: rgba(168, 107, 62, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.recipe-modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 107, 62, 0.3);
    border-radius: 10px;
}

.recipe-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 107, 62, 0.5);
}

/* Section Cards */
.recipe-card-section {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.recipe-card-section:hover {
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #f4f1ea;
    margin-bottom: 20px;
    font-family: 'Quicksand', sans-serif;
}

.section-title svg {
    color: #d4a574;
}

/* Coffee Details Grid */
.coffee-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(196, 181, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item input,
.detail-item select,
.detail-item textarea {
    padding: 12px 14px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: #c4b5a0;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.detail-item textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.detail-item input:focus,
.detail-item select:focus,
.detail-item textarea:focus {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(212, 165, 116, 0.4);
}

.detail-item textarea::placeholder {
    color: rgba(196, 181, 160, 0.4);
}

/* Roast Level Section */
.roast-level-section {
    margin-top: 16px;
}

.roast-level-section label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: rgba(196, 181, 160, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.roast-level-selector {
    display: flex;
    gap: 8px;
}

.roast-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(168, 107, 62, 0.12);
    border-radius: 12px;
    color: rgba(196, 181, 160, 0.5);
    font-size: 10px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roast-btn:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(168, 107, 62, 0.25);
}

.roast-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(168, 107, 62, 0.2);
    transition: all 0.3s ease;
}

.roast-light .roast-circle {
    background: linear-gradient(135deg, #d4a574 0%, #c4a574 100%);
}

.roast-medium .roast-circle {
    background: linear-gradient(135deg, #a86b3e 0%, #8b5d34 100%);
}

.roast-dark .roast-circle {
    background: linear-gradient(135deg, #6d3f1e 0%, #4a2912 100%);
}

.roast-btn.active {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(212, 165, 116, 0.4);
    color: #f4f1ea;
}

.roast-btn.active .roast-circle {
    border-color: rgba(212, 165, 116, 0.7);
}

/* Equipment Selector */
.equipment-selector {
    display: flex;
    gap: 12px;
    align-items: center;
}

.equipment-dropdown {
    flex: 1;
    padding: 14px 16px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: #c4b5a0;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-dropdown:hover,
.equipment-dropdown:focus {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(212, 165, 116, 0.4);
}

.equipment-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(168, 107, 62, 0.1);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 8px;
    color: #d4a574;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.equipment-link:hover {
    background: rgba(168, 107, 62, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    color: #f2cf7b;
}

/* Brewing Parameters Grid - Dashboard Style - Compact */
.brewing-params-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.param-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 14px;
    border: 1px solid rgba(168, 107, 62, 0.12);
    transition: all 0.3s ease;
}

.param-card:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(168, 107, 62, 0.25);
}

.param-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.param-icon svg {
    width: 28px;
    height: 28px;
    stroke: rgba(212, 165, 116, 0.7);
    stroke-width: 1.5;
}

.param-card label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(196, 181, 160, 0.5);
    font-weight: 700;
    order: 3;
    margin-top: -2px;
}

.param-card input,
.param-card select {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    color: #f4f1ea;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    outline: none;
    letter-spacing: -0.5px;
    line-height: 1;
    order: 2;
}

.param-card input:focus {
    color: #f2cf7b;
}

/* Milk Section */
.milk-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.param-input.full-width {
    grid-column: 1 / -1;
}

/* Notes Textarea */
.notes-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 12px;
    color: #c4b5a0;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.notes-textarea:focus {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(212, 165, 116, 0.4);
}

.notes-textarea::placeholder {
    color: rgba(196, 181, 160, 0.4);
}

/* Rating */
.rating-section {
    margin-bottom: 16px;
}

.rating-section label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(196, 181, 160, 0.7);
    margin-bottom: 0;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.star-rating {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}

.star {
    cursor: pointer;
    color: rgba(168, 107, 62, 0.3);
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
}

.star:hover {
    color: #f2cf7b;
    transform: scale(1.15);
}

.star.filled {
    color: #f2cf7b;
    fill: #f2cf7b;
}

/* Tasting Tags */
.tasting-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tag-category {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(168, 107, 62, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.tag-category:hover {
    border-color: rgba(168, 107, 62, 0.25);
    background: rgba(15, 15, 15, 0.5);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(168, 107, 62, 0.1);
}

.category-header svg {
    color: #d4a574;
    flex-shrink: 0;
}

.category-header label {
    font-size: 13px;
    font-weight: 700;
    color: #f4f1ea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-group-mixed {
    gap: 8px;
}

/* Base taste tag styles */
.taste-tag {
    padding: 8px 14px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.25);
    border-radius: 16px;
    color: rgba(196, 181, 160, 0.8);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.taste-tag:hover::before {
    left: 100%;
}

.taste-tag:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Positive tags - Neutral state */
.taste-tag.positive-tag {
    background: rgba(168, 107, 62, 0.08);
    border-color: rgba(168, 107, 62, 0.3);
    color: rgba(196, 181, 160, 0.9);
}

.taste-tag.positive-tag:hover {
    background: rgba(168, 107, 62, 0.12);
    border-color: rgba(212, 165, 116, 0.5);
    color: #d4a574;
}

/* Positive tags - Active (selected) */
.taste-tag.positive-tag.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    color: #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25),
                0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.taste-tag.positive-tag.active::after {
    content: '✓';
    margin-left: 6px;
    font-weight: 700;
}

/* Negative tags - Neutral state */
.taste-tag.negative-tag {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.7);
}

.taste-tag.negative-tag svg {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.taste-tag.negative-tag:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.taste-tag.negative-tag:hover svg {
    opacity: 0.8;
}

/* Negative tags - Active (selected) */
.taste-tag.negative-tag.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.7);
    color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3),
                0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    animation: pulseWarning 2s ease-in-out infinite;
}

.taste-tag.negative-tag.active svg {
    opacity: 1;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.3),
                    0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 24px rgba(239, 68, 68, 0.5),
                    0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* AI Suggestion Banner */
/* AI Suggestion Banner - Clean Dashboard Style */
.ai-suggestion-banner {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.25), rgba(150, 75, 170, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    margin-bottom: 20px;
    animation: slideIn 0.4s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    z-index: 10;
}

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

.ai-banner-glow {
    display: none;
}

.ai-suggestion-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-suggestion-icon .material-symbols-rounded {
    font-size: 24px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ai-suggestion-icon .ai-icon-gradient {
    background: linear-gradient(135deg, #a855f7, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-suggestion-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-suggestion-content h4 {
    display: none;
}

.ai-suggestion-content p {
    margin: 0;
    font-size: 14px;
    color: #f0abfc;
    line-height: 1.5;
}

.ai-suggestion-content strong {
    color: #f0abfc;
    font-weight: 700;
    text-transform: capitalize;
}

.ai-fix-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.25), rgba(150, 75, 170, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    color: #f0abfc;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.ai-fix-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.35), rgba(150, 75, 170, 0.35));
    border-color: rgba(168, 85, 247, 0.6);
}

.ai-fix-btn .ai-icon-gradient {
    background: linear-gradient(135deg, #a855f7, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    filter: drop-shadow(0 0 8px rgba(232, 121, 249, 0.5));
}

.ai-fix-btn:active {
    transform: translateY(0);
}

.ai-fix-btn .material-symbols-rounded {
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Modal Footer */
.recipe-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid rgba(168, 107, 62, 0.15);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 24px 24px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    gap: 16px;
}

/* Footer Left Actions */
.footer-left-actions {
    display: flex;
    gap: 8px;
}

/* Sleek Icon Buttons */
.btn-icon-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 107, 62, 0.1);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 10px;
    color: #d4a574;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-icon-action:hover {
    background: rgba(168, 107, 62, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    color: #f2cf7b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-icon-action:active {
    transform: translateY(0);
}

.btn-icon-action svg {
    width: 18px;
    height: 18px;
}

/* Tooltip for icon buttons */
.btn-icon-action::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(5, 5, 5, 0.95);
    color: #f2cf7b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 107, 62, 0.3);
}

.btn-icon-action:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* AI Button - Dashboard Style */
.btn-modal-ai {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.25), rgba(150, 75, 170, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    color: #f0abfc;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-modal-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.35), rgba(150, 75, 170, 0.35));
    border-color: rgba(168, 85, 247, 0.6);
}

.btn-modal-ai:active {
    transform: translateY(0);
}

.btn-modal-ai .ai-icon-gradient {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #a855f7, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
}

.btn-modal-ai:hover .ai-icon-gradient {
    filter: drop-shadow(0 0 8px rgba(232, 121, 249, 0.5));
}

.btn-modal-ai .material-symbols-rounded.spinning {
    animation: spin 1s linear infinite;
}

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

/* AI Results Modal */
.ai-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-results-overlay.active {
    opacity: 1;
}

.ai-results-modal {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-results-overlay.active .ai-results-modal {
    transform: scale(1);
    opacity: 1;
}

.ai-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.ai-results-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.ai-results-header button {
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: #a855f7;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-results-header button:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: rotate(90deg);
}

.ai-results-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-analysis,
.ai-changes,
.ai-expected {
    padding: 20px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.ai-analysis h3,
.ai-changes h3,
.ai-expected h3 {
    font-size: 16px;
    font-weight: 700;
    color: #c084fc;
    margin: 0 0 12px 0;
}

.ai-analysis p,
.ai-expected p {
    color: rgba(196, 181, 160, 0.9);
    margin: 0;
    line-height: 1.6;
}

.change-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
}

.change-label {
    font-weight: 700;
    color: #a855f7;
    min-width: 60px;
}

.change-before {
    color: rgba(196, 181, 160, 0.6);
    text-decoration: line-through;
}

.change-arrow {
    color: #a855f7;
    font-weight: 700;
}

.change-after {
    color: #22c55e;
    font-weight: 700;
}

.ai-results-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.btn-undo,
.btn-apply {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-undo {
    background: rgba(168, 107, 62, 0.1);
    border: 1px solid rgba(168, 107, 62, 0.3);
    color: #d4a574;
}

.btn-undo:hover {
    background: rgba(168, 107, 62, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
}

.btn-apply {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: #fff;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 12px;
    color: #f2cf7b;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .recipe-modal-header {
        grid-template-columns: 1fr;
    }
    
    .recipe-cover-upload {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .brewing-params-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .milk-params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recipe-modal {
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }
    
    .recipe-modal-header,
    .recipe-modal-content,
    .recipe-modal-footer {
        padding: 20px;
    }
    
    .coffee-details-grid {
        grid-template-columns: 1fr;
    }
    
    .brewing-params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .param-card {
        padding: 16px 12px;
    }
    
    .param-card input {
        font-size: 22px;
    }
    
    .milk-params-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-meta-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .brew-type-selector,
    .privacy-toggle,
    .favorite-toggle {
        width: 100%;
    }
    
    .recipe-modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-left-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-modal-ai {
        width: 100%;
        justify-content: center;
    }
    
    .tasting-tags {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .recipe-modal-title {
        font-size: 24px;
    }
    
    .brewing-params-grid {
        grid-template-columns: 1fr;
    }
    
    .tasting-tags {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tag-category {
        padding: 12px;
    }
    
    .tag-group {
        gap: 6px;
    }
    
    .taste-tag {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .taste-tag.negative-tag svg {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
}

/* ========================================
   VERSION 4: SIDE-NAV MASTERY STYLES
   ======================================== */

/* Side Navigation */
.side-nav {
    width: 280px;
    background: rgba(5, 5, 5, 0.95);
    border-right: 1px solid rgba(168, 107, 62, 0.2);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    overflow-y: auto;
}

.side-nav-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(168, 107, 62, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.side-nav-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #f2cf7b 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
}

.side-nav-title:focus {
    filter: brightness(1.2);
}

.side-nav-subtitle {
    font-size: 12px;
    color: rgba(196, 181, 160, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.roaster-inline-input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(196, 181, 160, 0.6);
    font-size: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.roaster-inline-input:focus {
    color: #d4a574;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(168, 107, 62, 0.1);
}

.stat-item {
    padding: 10px 12px;
    background: rgba(168, 107, 62, 0.08);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #f2cf7b;
    display: block;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 10px;
    color: rgba(196, 181, 160, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Items */
.nav-items {
    padding: 12px 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    margin-bottom: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #f2cf7b;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(168, 107, 62, 0.2);
    color: #d4a574;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(168, 107, 62, 0.15);
    border-color: rgba(242, 207, 123, 0.3);
    color: #f2cf7b;
    box-shadow: 0 4px 12px rgba(242, 207, 123, 0.1);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(168, 107, 62, 0.2);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #d4a574;
}

.nav-item.active .nav-badge {
    background: rgba(242, 207, 123, 0.3);
    color: #f2cf7b;
}

/* Progress Bar */
.progress-section {
    padding: 16px;
    border-top: 1px solid rgba(168, 107, 62, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(196, 181, 160, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(168, 107, 62, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f2cf7b, #d4a574);
    border-radius: 3px;
    width: 75%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(242, 207, 123, 0.5);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Top Bar */
.top-bar {
    padding: 20px 32px;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid rgba(168, 107, 62, 0.15);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* Top Bar Cover Upload */
.recipe-cover-upload-topbar {
    width: 100px;
    height: 100px;
    background: rgba(10, 10, 10, 0.6);
    border: 2px dashed rgba(168, 107, 62, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.recipe-cover-upload-topbar:hover {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.recipe-cover-upload-topbar.drag-over {
    background: rgba(20, 20, 20, 0.9);
    border-color: #f2cf7b;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.2);
}

.recipe-cover-placeholder-topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(196, 181, 160, 0.5);
}

.recipe-cover-placeholder-topbar svg {
    color: rgba(168, 107, 62, 0.3);
}

.recipe-cover-placeholder-topbar p {
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.6);
    margin: 0;
}

.recipe-cover-image-topbar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Top Bar Controls */
.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brew-type-selector-topbar {
    display: flex;
    gap: 6px;
}

.brew-type-btn-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brew-type-btn-topbar:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
    color: #d4a574;
}

.brew-type-btn-topbar.active {
    background: rgba(212, 165, 116, 0.15);
    border-color: #f2cf7b;
    color: #f2cf7b;
}

.privacy-btn-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    color: rgba(196, 181, 160, 0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-btn-topbar:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
}

.privacy-btn-topbar.private {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.privacy-btn-topbar.public {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.favorite-btn-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(168, 107, 62, 0.05);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn-topbar svg {
    width: 20px;
    height: 20px;
    fill: #ef4444;
    stroke: #ef4444;
    stroke-width: 2;
    filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.4));
    transition: all 0.3s ease;
}

.favorite-btn-topbar:hover {
    background: rgba(168, 107, 62, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
    transform: scale(1.05);
}

.favorite-btn-topbar:not(.inactive) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.favorite-btn-topbar.inactive svg {
    fill: none;
    stroke: rgba(168, 107, 62, 0.5);
    filter: none;
}

.favorite-btn-topbar.inactive:hover svg {
    stroke: rgba(212, 165, 116, 0.9);
    filter: drop-shadow(0 2px 6px rgba(212, 165, 116, 0.3));
}

.favorite-btn-topbar:active {
    transform: scale(0.98);
}

.favorite-btn-topbar.animating svg {
    animation: heartBeat 0.5s ease;
}

.top-bar-actions {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 100;
    flex-shrink: 0;
}

.action-btn {
    padding: 10px 16px;
    background: rgba(168, 107, 62, 0.1);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 10px;
    color: #d4a574;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(168, 107, 62, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    color: #f2cf7b;
    transform: translateY(-2px);
}

.action-btn-primary {
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.4), rgba(150, 75, 170, 0.4));
    border-color: rgba(168, 85, 247, 0.5);
    color: #f0abfc;
}

.action-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

/* Content Sections */
.content-sections {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 0;
}

.content-section {
    display: none;
    animation: fadeInUp 0.4s ease;
    min-height: 100%;
}

.content-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #f4f1ea;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header p {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.6);
    margin: 0;
}

/* Enhanced Param Cards */
.params-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.param-card-enhanced {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(168, 107, 62, 0.15);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.param-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f2cf7b, #d4a574);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.param-card-enhanced:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(168, 107, 62, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.param-card-enhanced:hover::before {
    transform: scaleX(1);
}

.param-card-enhanced .param-icon {
    margin: 0 auto 12px;
}

.param-value {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0;
    display: block;
}

.param-unit {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.5);
    margin-left: 4px;
}

.param-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(196, 181, 160, 0.6);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.overview-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.overview-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f4f1ea;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.star-large {
    width: 24px;
    height: 24px;
    fill: #f2cf7b;
    color: #f2cf7b;
}

.star-large.filled {
    fill: #f2cf7b;
}

.rating-text {
    font-size: 32px;
    font-weight: 800;
    color: #f2cf7b;
    margin-left: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(168, 107, 62, 0.1);
}

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

.stat-row-label {
    color: rgba(196, 181, 160, 0.7);
    font-size: 13px;
}

.stat-row-value {
    color: #f2cf7b;
    font-weight: 700;
}

/* Equipment Card */
.equipment-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.equipment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.equipment-name {
    font-size: 18px;
    font-weight: 700;
    color: #f2cf7b;
}

.equipment-badge {
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
}

/* Tags Showcase */
.tags-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tag-category-enhanced {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.category-header-enhanced {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(168, 107, 62, 0.15);
}

.category-header-enhanced h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f4f1ea;
    margin: 0;
}

/* Close button adjustment */
.recipe-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Scrollbar styling for side nav */
.side-nav::-webkit-scrollbar {
    width: 6px;
}

.side-nav::-webkit-scrollbar-track {
    background: rgba(168, 107, 62, 0.05);
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(168, 107, 62, 0.3);
    border-radius: 3px;
}

.content-sections::-webkit-scrollbar {
    width: 8px;
}

.content-sections::-webkit-scrollbar-track {
    background: rgba(168, 107, 62, 0.05);
}

.content-sections::-webkit-scrollbar-thumb {
    background: rgba(168, 107, 62, 0.3);
    border-radius: 4px;
}

/* Responsive adjustments for Side-Nav Version */
@media (max-width: 1024px) {
    .recipe-modal {
        flex-direction: column;
        max-width: 95vw;
    }
    
    .side-nav {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(168, 107, 62, 0.2);
    }
    
    .nav-items {
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }
    
    .nav-item {
        margin-bottom: 0;
        margin-right: 6px;
        white-space: nowrap;
    }
    
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .top-bar-left {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .top-bar-controls {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-actions {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .params-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

