/* ShadCN-inspired modern design */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px;
}

/* Snackbar animations */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

footer p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin: 0;
}

/* Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.page-header h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h2 i {
    width: 28px;
    height: 28px;
}

h2, h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 i, h3 i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/static/banner.png') center/cover;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-out;
    width: 100%;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar h1 i {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 700;
}

.logo:visited,
.logo:hover,
.logo:active {
    color: #ffffff;
}

.logo-text {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-links > li.nav-more {
    display: none;
}

.nav-more .nav-link {
    color: #ffffff !important;
}

.nav-more .nav-link i,
.nav-more .nav-link svg {
    stroke: currentColor !important;
    color: #ffffff !important;
    width: 20px;
    height: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link i {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 0 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid hsl(var(--border));
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
}

.bottom-nav-link {
    color: hsl(var(--foreground));
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.8;
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
}

.bottom-nav-link span {
    font-size: 0.58rem;
    line-height: 1;
    white-space: nowrap;
}

.bottom-nav-shopping {
    position: relative;
}

.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    padding: 0 0.25rem;
    margin-left: 0;
}

.bottom-nav-link i {
    width: 20px;
    height: 20px;
}

.bottom-nav-link.active {
    color: #e67e22;
    opacity: 1;
}

.bottom-nav-primary {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(211,84,0,0.35);
    transform: translateY(-12px);
    opacity: 1;
    flex: 0 0 58px;
}

.bottom-nav-primary i {
    width: 22px;
    height: 22px;
}

.bottom-nav-primary span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
}

.bottom-nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.bottom-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#notificationDropdown {
    max-width: calc(100vw - 24px);
    z-index: 1000;
}

#notificationBtn {
    position: relative;
    z-index: 1002;
}

@media (max-width: 600px) {
    #notificationDropdown {
        position: fixed !important;
        top: 70px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-height: calc(100vh - 90px);
        transform: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }

    body {
        padding-bottom: 88px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar h1 {
        font-size: 1rem;
    }

    .nav-links > li {
        display: none;
    }

    .nav-links > li.nav-notification {
        display: flex;
    }

    .nav-links > li.nav-more {
        display: flex;
    }

    .nav-links > li.nav-user {
        display: none;
    }

    .nav-notification .nav-link,
    .nav-more .nav-link {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        min-width: 44px;
        min-height: 44px;
    }

    .nav-notification .nav-link i,
    .nav-notification .nav-link svg,
    .nav-more .nav-link i,
    .nav-more .nav-link svg {
        stroke: currentColor !important;
        color: #ffffff !important;
    }

}

.cart-badge {
    background: hsl(var(--destructive));
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.btn-icon {
    padding: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

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

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: calc(var(--radius) - 2px);
    background: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    min-width: 200px;
    transition: all 0.2s;
    color: hsl(var(--foreground));
}

.search-input::placeholder {
    color: rgba(0,0,0,0.5);
}

.search-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    background: white;
}

/* Quick Add Section */
.quick-add-section {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quick-add-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-add-section p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.quick-add-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-add-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.quick-add-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Filter Section */
.filter-section {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--muted-foreground));
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--accent));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
    background: hsl(var(--accent));
}

/* Tags */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: 9999px;
    border: 1px solid hsl(var(--border));
}

.inspiration-badge {
    background: hsl(47 100% 96%);
    color: hsl(45 86% 25%);
    border-color: hsl(45 93% 88%);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
}

.badge-easy {
    background: hsl(142 76% 96%);
    color: hsl(142 71% 25%);
}

.badge-medium {
    background: hsl(47 100% 96%);
    color: hsl(45 86% 25%);
}

.badge-hard {
    background: hsl(0 86% 96%);
    color: hsl(0 72% 35%);
}

.badge-borrelhap {
    background: hsl(262 83% 96%);
    color: hsl(262 58% 40%);
}

.badge-starter {
    background: hsl(204 93% 93%);
    color: hsl(204 100% 40%);
}

.badge-main {
    background: hsl(9 100% 96%);
    color: hsl(9 100% 40%);
}

.badge-dessert {
    background: hsl(332 90% 95%);
    color: hsl(332 80% 45%);
}

.badge-side {
    background: hsl(142 76% 96%);
    color: hsl(142 71% 25%);
}

/* Recipe Grid - Condensed */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.recipe-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipe-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: hsl(var(--ring) / 0.3);
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.recipe-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.recipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    flex-shrink: 0;
}

.recipe-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item .icon {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-item .icon i {
    width: 16px;
    height: 16px;
}

.recipe-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
}

.recipe-actions .btn {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    border: 1px dashed hsl(var(--border));
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    color: hsl(var(--muted-foreground));
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* Section Headers */
h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

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

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s;
}

.modal-close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.suggestions-list {
    display: grid;
    gap: 0.75rem;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--ring));
}

.loading {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--muted-foreground));
}

/* Recipe View Page */
.recipe-detail {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.recipe-header-main {
    flex: 1;
    min-width: 0;
}

.recipe-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.recipe-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.lead {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.recipe-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: calc(var(--radius) - 2px);
}

.info-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    width: 20px;
    height: 20px;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Serving Adjuster */
.serving-adjuster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.serving-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: calc(var(--radius) - 2px);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.serving-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.serving-input {
    width: 3rem;
    text-align: center;
    padding: 0.375rem 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 1rem;
    font-weight: 600;
}

.serving-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Recipe Content */
.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tags-section {
    margin-bottom: 2rem;
}

.ingredients-section,
.instructions-section {
    background: hsl(var(--muted) / 0.3);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.ingredients-section h3,
.instructions-section h3 {
    margin-bottom: 1rem;
}

.recipe-view {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.recipe-view h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.recipe-view .recipe-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.ingredients-list,
.instructions-list {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredient-section-header {
    background: transparent;
    padding: 0.5rem 0 !important;
    margin: 0.75rem 0 0.5rem 0;
    border: none !important;
    font-weight: 600;
    list-style: none;
}

.ingredient-section-header strong {
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ingredient-note {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.ingredient-quantity {
    color: hsl(var(--primary));
    font-weight: 600;
    min-width: 4rem;
}

.ingredient-name {
    flex: 1;
}

.ingredient-notes {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.instructions-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.instructions-list li {
    padding: 1rem 1rem 1rem 3.5rem;
    border-bottom: 1px solid hsl(var(--border));
    position: relative;
    line-height: 1.6;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.instructions-list ol {
    counter-reset: item;
}

/* Recipe Footer */
.recipe-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 2rem;
    flex-wrap: wrap;
}

.recipe-meta-footer {
    text-align: center;
    padding-top: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

/* Upload Section */
.upload-area {
    border: 2px dashed hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: hsl(var(--muted));
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: hsl(var(--ring));
    background: hsl(var(--accent));
}

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

/* Discount Page */
.discount-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.discount-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discount-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(142 71% 35%);
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: hsl(142 76% 96%);
    color: hsl(142 71% 25%);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Shopping List */
.shopping-list-container {
    max-width: 980px;
    margin: 0 auto;
}

@media (min-width: 1300px) {
    .shopping-list-container {
        max-width: 1100px;
    }
}

.shopping-summary-card {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.06), hsl(var(--accent)));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.shopping-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.shopping-summary-top h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.shopping-summary-top span {
    color: hsl(var(--muted-foreground));
    font-size: 0.85rem;
    font-weight: 500;
}

.shopping-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: hsl(var(--muted));
    overflow: hidden;
}

.shopping-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--muted-foreground)));
    border-radius: inherit;
    transition: width 0.2s ease;
}

.shopping-action-row {
    display: flex;
    gap: 1rem;
    margin: 0 0 1.25rem;
    flex-wrap: wrap;
}

.shopping-text-action {
    background: none;
    border: none;
    padding: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.shopping-text-action:hover {
    color: hsl(var(--foreground));
}

.add-item-section {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.add-item-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.add-item-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
}

.add-item-form textarea {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.shopping-list-items {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.shopping-list-items .empty-state {
    background: linear-gradient(180deg, hsl(var(--accent) / 0.65), hsl(var(--card)));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 2px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.shopping-list-items .empty-icon {
    color: hsl(var(--muted-foreground));
}

.shopping-list-items .empty-state .btn {
    margin-inline: auto;
}

.shopping-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shopping-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shopping-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shopping-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.section-count {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.shopping-completed-panel {
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--muted) / 0.25);
}

.shopping-completed-panel summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.shopping-completed-panel summary::-webkit-details-marker {
    display: none;
}

.shopping-completed-panel summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shopping-completed-panel .completed-items {
    padding: 0 0.75rem 0.75rem;
}

.shopping-section-empty {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    padding: 0.75rem;
    background: hsl(var(--muted) / 0.2);
    border: 1px dashed hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
}

.list-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shopping-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    background: hsl(var(--accent) / 0.5);
    border: 1px solid hsl(var(--border));
    border-left: 3px solid hsl(var(--primary) / 0.35);
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s;
}

.shopping-item:hover {
    background: hsl(var(--muted));
}

.shopping-item.checked {
    opacity: 0.72;
    border-left-color: hsl(var(--muted-foreground) / 0.4);
}

.shopping-item.checked .item-name {
    text-decoration: line-through;
}

.item-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.item-name {
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.item-remove {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s;
}

.item-remove:hover {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

/* User Menu Styling */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.user-menu .nav-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.user-display {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on input focus */
    }
    
    /* Hide text on mobile */
    .hide-on-mobile {
        display: none;
    }
    
    .show-on-mobile {
        display: inherit;
    }

    .recipe-header-actions {
        gap: 0.35rem !important;
    }

    .recipe-header-actions .btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.82rem;
        min-height: 34px;
    }

    .recipe-header-actions .btn i {
        width: 14px;
        height: 14px;
    }
    
    .container {
        padding: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.75rem;
        justify-content: space-between;
    }
    
    .navbar h1 {
        font-size: 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .navbar h1 i {
        width: 24px;
        height: 24px;
    }
    
    .nav-links {
        flex-direction: row;
        width: auto;
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links li {
        width: auto;
    }
    
    .nav-link {
        padding: 0.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.9);
        color: hsl(var(--foreground));
        border-radius: calc(var(--radius) - 2px);
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 1);
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link i {
        width: 20px;
        height: 20px;
    }
    
    /* Hide admin link on mobile */
    .navbar a[href*="admin_dashboard"] {
        display: none;
    }
    
    /* Collapse search by default on mobile */
    .search-form {
        position: relative;
    }
    
    .search-input {
        display: none;
        position: absolute;
        right: 44px;
        top: 0;
        width: 200px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        z-index: 100;
    }
    
    .search-form.expanded .search-input {
        display: block;
    }
    
    .btn-icon {
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Course tabs - 2 column grid on mobile */
    .course-tabs-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem !important;
    }
    
    .course-tab {
        font-size: 0.70rem;
        padding: 4px 0.5rem;
        justify-content: center;
    }
    
    .course-tab i {
        width: 12px;
        height: 12px;
    }
    
    /* Page Header */
    .page-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }
    
    /* Recipe Grid */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recipe-card {
        padding: 1rem;
    }
    
    .recipe-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .recipe-badges {
        width: 100%;
    }
    
    /* Recipe Detail */
    .recipe-detail {
        padding: 1rem;
    }
    
    .recipe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .recipe-header-main {
        width: 100%;
    }

    .recipe-header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.35rem;
    }
    
    .recipe-header h2 {
        font-size: 1.5rem;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .recipe-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 0.75rem;
    }
    
    .recipe-footer {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .recipe-footer > div {
        width: 100%;
        justify-content: stretch;
        display: flex;
        flex-wrap: wrap;
    }
    
    .recipe-footer .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Forms */
    .form-container {
        padding: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Quick Add */
    .quick-add-section {
        padding: 1rem;
    }
    
    .quick-add-form {
        flex-direction: column;
    }
    
    .quick-add-input {
        width: 100%;
        max-width: none !important;
    }
    
    .quick-add-form .btn {
        width: 100%;
    }
    
    /* Filter Section */
    .filter-section {
        padding: 1rem;
    }
    
    .search-section {
        padding: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .filter-panel {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    
    .filter-group label {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
    
    .filter-group .form-control {
        width: 100%;
        max-width: none !important;
    }
    
    .filter-group .btn {
        width: 100%;
    }
    
    /* Tags */
    .tags {
        gap: 0.375rem;
    }
    
    .tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Shopping List */
    .shopping-list-container {
        padding: 0;
    }

    .shopping-summary-card {
        padding: 0.9rem 1rem;
    }

    .shopping-summary-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 0.6rem;
    }

    .shopping-summary-top h3 {
        font-size: 0.92rem;
    }

    .shopping-summary-top span {
        font-size: 0.82rem;
    }

    .shopping-action-row {
        display: flex;
        gap: 0.9rem;
        flex-wrap: nowrap;
    }

    .shopping-text-action {
        font-size: 0.85rem;
    }
    
    .add-item-section {
        padding: 1rem;
    }
    
    .add-item-form {
        display: flex;
        flex-direction: column;
    }
    
    .add-item-form input,
    .add-item-form textarea {
        width: 100%;
        max-width: none !important;
    }
    
    .add-item-form .btn {
        width: 100%;
    }
    
    .shopping-list-items {
        padding: 1rem;
    }

    .shopping-section-header h3 {
        font-size: 0.95rem;
    }

    .section-count {
        min-width: 1.8rem;
        height: 1.8rem;
    }
    
    .shopping-item {
        padding: 0.6rem 0.75rem;
        gap: 0.75rem;
    }
    
    .item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Buttons */
    .btn {
        min-height: 44px; /* Touch target size */
        padding: 0.625rem 1rem;
    }
    
    /* Recipe Actions */
    .recipe-actions {
        flex-direction: column;
    }
    
    .recipe-actions .btn {
        width: 100%;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
    
    .item-checkbox input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .item-remove {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Modern Star Rating */
.star-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.star-btn:hover {
    transform: scale(1.2) !important;
    opacity: 0.6 !important;
}

.star-btn.selected {
    opacity: 1 !important;
    color: #fbbf24 !important;
}

/* Tab Buttons Transition */
.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: hsl(var(--foreground)) !important;
}

/* Form Controls */
.form-control {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: hsl(var(--radius));
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Analytics Dashboard */
.analytics-header {
    margin-bottom: 2rem;
}

.analytics-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.time-range-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-btn {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    color: hsl(var(--foreground));
}

.time-btn:hover {
    border-color: hsl(222.2 47.4% 11.2%);
}

.time-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-label {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.add-item-section h3 i {
    color: hsl(var(--muted-foreground));
}

.metric-sub {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recipes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recipe-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.recipe-item:last-child {
    border-bottom: none;
}

.recipe-info {
    flex: 1;
}

.recipe-name {
    font-weight: 500;
    word-break: break-word;
}

.recipe-meta {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.recipe-views {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
}

.no-data {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.analytics-table thead {
    background: hsl(var(--muted));
}

.analytics-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid hsl(var(--border));
}

.analytics-table th:nth-child(2),
.analytics-table th:nth-child(3) {
    text-align: right;
}

.analytics-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.analytics-table tbody tr:hover {
    background: hsl(var(--muted));
}

.analytics-table td:nth-child(2),
.analytics-table td:nth-child(3) {
    text-align: right;
    color: hsl(var(--muted-foreground));
}

.back-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* My Recipes Responsive Button */
.my-recipes-cta-desktop {
    display: flex !important;
}

.my-recipes-cta-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .my-recipes-cta-desktop {
        display: none !important;
    }

    .my-recipes-cta-mobile {
        display: block !important;
    }

    .my-recipes-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-subtitle {
        font-size: 0.75rem !important;
        font-weight: 400 !important;
    }
}

@media (min-width: 769px) {
    .hide-on-mobile {
        display: inherit !important;
    }

    .show-on-mobile {
        display: none !important;
    }
}

/* Quick add modal card subtitles */
.card-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

