@import url('../css/fonts/inter/inter.css');

:root {
    --primary-gradient: linear-gradient(90deg, #ff00cc, #3333ff);
    --secondary-gradient: linear-gradient(90deg, #00ffcc, #0066ff);
    --neon-gradient: linear-gradient(90deg, #00eaff, #ff00f7);
    --background-color: #0a0a14;
    --text-color: #ffffff;
    --card-bg: rgba(20, 20, 35, 0.8);
    --nav-bg: rgba(20, 20, 30, 0.95);
    --border-radius: 8px;
    --heading-font: 'Segoe UI', 'Inter', sans-serif;
    --body-font: 'Segoe UI', 'Inter', sans-serif;
    --error-color: #ff3e6c;
    --success-color: #00e676;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, rgba(76, 0, 255, 0.2), transparent 70%);
    z-index: -1;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    float: left;
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-accent {
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
}

.error-code {
    font-size: 5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-weight: 900;
    margin: 0.5rem 0;
    line-height: 1;
}

.error-details {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
}

.error-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    word-break: break-word;
}

.stack-trace {
    font-family: monospace;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    overflow-x: auto;
    color: #c6c6c6;
}

.text-italic {
    font-style: italic;
}

.btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Header and Navigation Styling */
header {
    background: linear-gradient(45deg, #0a0a0a, #2d2d2d);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

header h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.7;
    font-weight: bold;
    margin: 0;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    font-size: 5rem;
    position: absolute;
    bottom: -1.25rem;
    right: -0.25rem;
    text-align: right;
    z-index: 0;
}
header h1 .beta-tag {
    background-color: var(--bs-warning);
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.2em;
    position: absolute;
    top: 0.4rem;
    left: -1.7rem;
    }

header .greeting-container {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
}

header .greeting-container a,
header .greeting-container i {
    color: var(--bs-white);
}
@media (max-width: 768px) {
    header .greeting-container {
        font-size: 0.8rem;
    }
}
nav {
    background: var(--nav-bg);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1010;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

nav ul li, footer ul li {
    margin: 0.25rem 0.5rem;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: var(--card-bg);
    color: var(--text-light);
    text-align: center;
}

footer .logo {
    display: flex;
    align-items: center;
}

footer .logo img {
    height: 50px;
    margin-right: 15px;
}

footer .logo h1 {
    margin-top: 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    color: var(--bs-tertiary-color);
    margin-top: 10px;
    clear: both;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #8a2be2);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bs-tertiary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bs-primary-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}


/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

nav ul li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--neon-gradient);
    border-radius: 4px;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--neon-gradient);
    border-radius: 4px;
}

/* Remove the nav-spacer since we're using flexbox positioning */
.nav-spacer {
    display: none;
}

/* Language Dropdown Styling */
.language-dropdown {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.language-dropdown select {
    background: rgba(30, 30, 40, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
}

.language-dropdown select:hover {
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.3);
}

/* Theme Toggle Styling */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    order: 2;
}

.theme-toggle {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.3);
}

.theme-toggle svg {
    display: block;
}

footer {
    background: rgba(20, 20, 35, 0.9);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    padding-top: 3rem;
}

/* Authentication Forms Styling */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--neon-gradient);
}

.auth-title {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.gradient-text {
    background: linear-gradient(to right, #00bcd4, #6a11cb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: bold;
}

.gradient-bg {
    background: var(--neon-gradient);
    transition: all 0.3s ease;
}

.gradient-border {
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: 
        linear-gradient(to right, var(--card-bg), var(--card-bg)),
        var(--neon-gradient);
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 234, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 234, 255, 0.2);
}

.form-control-sm {
    min-height: calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: var(--bs-border-radius-sm);
  }

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--neon-gradient);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.social-auth-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-light {
    background-color: white;
    color: #333;
}

.btn-dark {
    background-color: #000;
    color: white;
}

.social-icon {
    width: 30px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    background-color: white;
    border-radius: 4px;
    padding: 4px;
    display: block;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: white;
    text-decoration: underline;
}

.validation-feedback {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.valid {
    color: var(--success-color);
}

.invalid {
    color: var(--error-color);
}

.password-requirements {
    margin-top: 5px;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.requirements-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.requirement {
    position: relative;
    padding-left: 25px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.requirement:before {
    content: "✗";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--error-color);
}

.requirement.valid:before {
    content: "✓";
    color: var(--success-color);
}

.validation-feedback {
    margin-top: 5px;
    font-size: 0.9rem;
}

.validation-feedback.valid {
    color: var(--success-color);
}

.validation-feedback.invalid {
    color: var(--error-color);
}

/* Modal styling */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-close {
    color: white;
    opacity: 0.8;
}

/* Account Page Styles */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control-static {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    min-height: 2.5rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.danger-zone {
    border-left: 4px solid var(--error-color);
}

.warning-text {
    color: var(--error-color);
    font-weight: 500;
}

.btn-danger {
    background: linear-gradient(90deg, #ff3e6c, #ff604f);
    color: white;
}

.btn-warning {
    background: linear-gradient(90deg, #ffa000, #ff7e00);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-success {
    background: var(--success-color);
    color: #000;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ml-2 {
    margin-left: 0.5rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.alert-info {
    background: rgba(0, 149, 255, 0.1);
    border: 1px solid rgba(0, 149, 255, 0.3);
}

.alert-warning {
    background: rgba(255, 160, 0, 0.1);
    border: 1px solid rgba(255, 160, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 10vh auto;
    animation: slideDown 0.3s ease;
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    margin-left: 0.5rem;
}

/* Dark/Light Mode specific styles */
.light-mode {
    --background-color: #f5f5f5;
    --text-color: #333333;
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

.light-mode body::before {
    background: radial-gradient(circle at 75% 50%, rgba(76, 0, 255, 0.1), transparent 70%);
}

.light-mode .card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.light-mode .table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .table th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.light-mode .table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.light-mode .form-control-static {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .text-muted {
    color: rgba(0, 0, 0, 0.6);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.3s forwards, fadeOut 0.3s 2.7s forwards;
    position: relative;
    max-width: 350px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-warning {
    border-left: 4px solid #ffa000;
}

.toast-info {
    border-left: 4px solid #00b0ff;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
} 

@keyframes fadeOut {
    to { opacity: 0; }
}

/* SweetAlert2 Custom Styling */
.swal-neon-gradient {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swal-neon-gradient .swal2-title {
    color: #fff !important;
    /*background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
    font-weight: bold;
}

.swal-neon-gradient .swal2-html-container {
    color: rgba(255, 255, 255, 0.9) !important;
}

.swal-neon-gradient .swal2-confirm {    
    background: linear-gradient(90deg, #228B22, #32CD32) !important;
    border: none !important;
}

.swal-neon-gradient .swal2-cancel {
    background: linear-gradient(90deg, #333, #444) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Recipe modal styles */
.ingredients-table td {
    padding: 0.35rem;
}

.recipe-modal-container .swal2-popup {
    padding: 1.5rem;
}

.recipe-header {
    margin-bottom: 1.5rem;
}

.recipe-title {
    margin-bottom: 0.5rem;
    color: #6a11cb;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.recipe-type {
    text-transform: capitalize;
}

.recipe-body {
    margin-bottom: 1.5rem;
}

.recipe-steps ol {
    padding-left: 1.5rem;
    text-align: left;
}

.recipe-steps li {
    margin-bottom: 0.75rem;
    text-align: left;
}

.ingredients-list h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #6a11cb;
}

.ingredients-list ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.recipe-nutrition {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.recipe-nutrition h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #6a11cb;
}

.ingredients-table {
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    background-color: transparent;
    border: solid 1px var(--bs-light);
    border-radius: var(--bs-border-radius);
}

.ingredients-table .amount-cell {
    width: 30%;
    white-space: nowrap;
    padding-right: 1rem;
    font-weight: 500;
}

.ingredients-table .name-cell {
    width: 70%;
}

.recipe-meta .badge {
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.recipe-meta i {
    margin-right: 0.35rem;
}

.recipe-modal-content .recipe-type.meal-type {
    width: auto;
    min-width: 100px;
}

.print-recipe .print-ingredients h4 {
    display: none;
}

footer .language-dropdown {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    width: 100%;
}

@media (min-width: 768px) {
    .mobile-tab-bar,
    .mobile-nav-container {
        display: none;
    }
    
    nav {
        display: flex;
        align-items: center;
    }
    
    nav ul {
        order: 1;
        flex: 1;
        margin-right: 1rem;
    }
    
    .theme-toggle-wrapper {
        order: 2;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 70px; /* Position above the mobile tab bar */
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    /* Shrink logo and header text */
    header .logo {
        width: 60px;
        height: 60px;
    }
    
    header h1 {
        font-size: 3.5rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        z-index: 1009;
        flex-direction: column;
        padding: 0.5rem 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 16px rgba(184, 184, 184, 0.7);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
    }
    
    nav ul li a {
        padding: 0.8rem 1.5rem;
        display: block;
        width: 100%;
    }
    
    nav ul li a.active {
        background-color: #353535;
        font-weight: bold;
    }
    
    nav ul li a.active::after {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 1rem;
    }
    
    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Bottom Tab Bar (Mobile Only) */
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .mobile-tab-bar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 0;
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.8rem;
    }
    
    .mobile-tab-bar a i {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
    }
    
    .mobile-tab-bar a.active {
        background-color: #353535;
        color: white;
    }
       
    /* Add margin to footer to accommodate the fixed bottom tab bar */
    footer {
        margin-bottom: 60px;
    }

    .recipe-modal-content ol {
        font-size: 0.8rem;
    }

    .recipe-modal-container .swal2-popup {
        padding: 0rem;
    }    
    
    .recipe-modal-container h2 {
        font-size: 1.2rem;
    } 

    .recipe-modal-container .recipe-meta .badge {
        padding: 0.25em 0.6em;
    }

    .recipe-modal-container .nutrition-info {
        display: flex;
        flex-wrap: wrap !important;
    }

    #mealoptions-container #meal-options-grid .meal-option {
        display: block;
    }
    
    #mealoptions-container #meal-options-grid .meal-actions {
        margin-top: 1rem;
        align-items: flex-start;
        width: 100%;
    }

    #mealoptions-container #meal-options-grid .family-ratings-container {
        width: 100%;
    }

    #mealoptions-container #meal-options-grid .family-ratings {
        width: 100%;
        font-size: 0.75rem
    }

    #mealoptions-container #meal-options-grid .badges-row {
        display: flex;
        flex-direction: wrap;
        align-items: flex-start;
    }
    #mealoptions-container #meal-options-grid .badges-row .badge {
        box-sizing: border-box;
        margin-bottom: 0px;
        justify-content: flex-start;
        text-align: left;
    }

    #mealoptions-container #meal-options-grid .nutrition-info {
        display: flex;
        flex-direction: wrap;
        align-items: flex-start;
    }
    #mealoptions-container #meal-options-grid .nutrition-info .badge {
        flex: 0 0 48%;
        box-sizing: border-box;
        margin-bottom: 0px;
        justify-content: flex-start;
        text-align: left;
    }

    .meal-rating {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .badges-row {
        flex-wrap: wrap;
    }
    
    .meal-actions-secondary {
        width: 100%;
    }
    
    .weekday-row .card {
        width: 100%;
        padding: 0px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .weekday-row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .weekday-row .card-header {
        padding: 0.75rem 1rem;
    }

    .container {
        padding: 0.1rem;
    }

    .shopping-list-actions .btn-group {
        width: 100%;
        display: flex;
    }
    
    .shopping-list-actions .btn-group .btn {
        flex: 1;
    }
    
    .shopping-item {
        padding: 0.5rem !important;
    }
    
    .shopping-item .item-name {
        font-size: 1rem;
    }
    
    .shopping-item .badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

}

/* Shopping List Styles */
.shopping-list-container {
    max-width: 1000px;
}

.neon-gradient-header h1 {
    margin-bottom: 0.5rem;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.neon-gradient-text {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.shopping-list-actions {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.ingredient-group {
    margin-bottom: 2rem;
}

.group-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shopping-item {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    padding: 0.75rem !important;
}

.shopping-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.shopping-item.checked {
    opacity: 0.7;
}

.shopping-item .form-check {
    margin: 0;
}

.shopping-item .item-name {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.shopping-item .badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.purchased-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* For light mode */
.light-mode .shopping-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.light-mode .shopping-item.checked {
    background-color: rgba(0, 0, 0, 0.02);
}

.light-mode .neon-gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-mode .neon-gradient-header h1 {
    background: var(--primary-gradient);
}

/* Shopping List Tile Styles */
.shopping-item .tile-content {
    transition: all 0.2s ease;
    color: #fff;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 2px 2px rgba(255, 255, 255, 0.75);
}

.shopping-item .tile-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.shopping-item.checked .tile-content {
    background-color: rgba(108, 117, 125, 0.6) !important;
}

.shopping-item .item-name {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.shopping-item .item-amount {
    margin-top: auto;
}

/* Ensure consistent tile heights */
.group-items.row,
#checked-items-list.row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

@media (max-width: 767.98px) {
    .shopping-item {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .shopping-item {
        width: 100%;
    }
}

/* --- Toned-Down Bootstrap Backgrounds --- */

  .bg-primary,
  .dark-mode .bg-primary { 
    background-color: hsl(210, 50%, 35%) !important;
    color: #fff !important; 
  }
  
  .bg-success,
  .dark-mode .bg-success {
    background-color: hsl(145, 50%, 30%) !important;
    color: #fff !important;
  }
  
  .bg-warning,
  .dark-mode .bg-warning {
    background-color: hsl(40, 60%, 40%) !important;
    color: #fff !important;
  }
  .bg-danger,
  .dark-mode .bg-danger {
    /* Choose a darker, less saturated red */
    color: #fff !important;
  }


/* Rating  */
.rating-buttons {
    margin-top: 0.25rem;
    width: 100%;
}

.rating-btn.active {
    background-color: #6a11cb;
    border-color: #6a11cb;
    color: white;
}

.overall-rating {
    font-weight: 600;
}

.favorite-star {
    color: #FFD700;
    margin-right: 0.25rem;
}
.rating-indicator-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 5px;
}

.rating-scale {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #FF0000, #FFD700);
    margin-bottom: 15px;
}

.rating-mark {
    position: absolute;
    transform: translateX(-50%);
    bottom: -15px;
    font-size: 10px;
    color: #666;
}
.rating-legend {
    display: block;
    text-align: center;
    font-size: 10px;
    width: 100%;
    color: #666;
}
.rating-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #ff7800;
    transform: translateX(-50%);
    bottom: 100%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}


/* Sub-Navigation MealPlan / ShoppingList */
.meal-plan-navigation, .shopping-list-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    width: 100%;
}

.meal-plan-navigation .btn, .shopping-list-navigation .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.meal-plan-navigation .btn:hover:not(.disabled), .shopping-list-navigation .btn:hover:not(.disabled) {
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.1), rgba(106, 17, 203, 0.1));
    border-color: #6a11cb;
}

.meal-plan-navigation .current-plan-date, .shopping-list-navigation .current-plan-date {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.1), rgba(106, 17, 203, 0.1));
    border: 2px solid white;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .meal-plan-navigation, .shopping-list-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .meal-plan-navigation .btn, .shopping-list-navigation .btn {
        flex: 0 0 auto;
        padding: 0.4rem 0.75rem;
    }
    
    .meal-plan-navigation .current-plan-date, .shopping-list-navigation .current-plan-date {
        flex: 1 0 100%;
        text-align: center;
        order: -1;
        margin-bottom: 0.5rem;
    }
}

.swal2-popup .recipe-result {
    text-align: left;
    cursor: pointer;
}

.swal2-popup .recipe-result:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.faq-toc {
    border: 1px solid var(--bs-border-color);
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.faq-toc-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-toc-list {
    list-style-type: none;
    padding-left: 5px;
}

.faq-toc-list li {
    margin-bottom: 8px;
}

.faq-toc-list a {
    color: var(--bs-warning);
    text-decoration: none;
}

.faq-toc-list a:hover {
    text-decoration: underline;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(60, 80, 120, 0.5);
}

.faq-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(60, 80, 120, 0.4);
}

.faq-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(60, 80, 120, 0.3);
    text-align: left;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(60, 80, 120, 0.3);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* Space for icon */
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--bs-warning);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover,
.faq-item.active .faq-question {
    color: var(--bs-warning);
}

.faq-answer {
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--bs-body-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Adjust as needed for content */
    opacity: 1;
    margin-top: 20px; /* Add space when expanded */
    transition: max-height 1s ease-in, margin-top 0.5s ease-in, opacity 0.5s ease-in;
}

/* Styles for API Docs Content */
.api-docs {
    background-color: var(--bs-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(60, 80, 120, 0.4);
    font-family: monospace;
}

.api-docs h1, .api-docs h2, .api-docs h3 {
    color: var(--bs-danger);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(60, 80, 120, 0.3);
    background: none;
}
.api-docs h1 { font-size: 1.8em; text-align: left; }
.api-docs h2 { font-size: 1.5em; text-align: left; }
.api-docs h3 { font-size: 1.3em; text-align: left; }

.api-docs p {
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--bs-dark);
}

.api-docs code:not(pre code) {
    background-color: rgba(60, 80, 120, 0.3);
    color: var(--bs-warning);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.95em;
}

.api-docs pre {
    background-color: var(--bs-dark);
    color: var(--bs-warning);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid rgba(60, 80, 120, 0.5);
}

.api-docs pre code {
    padding: 0;
    background-color: transparent;
    color: inherit;
    font-size: 1em;
}

.api-docs ul {
    margin-left: 20px;
    margin-bottom: 1em;
    list-style-type: disc;
}

.api-docs li {
    margin-bottom: 0.5em;
    color: #d0d0d0;
}

.api-docs a {
    color: #a2d2ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.api-docs a:hover {
    color: #ff7e5f; 
    text-decoration: underline;
}

.api-docs strong {
    font-weight: bold;
}

#searchResults span {
    width: 25%;
    border: 1px solid var(--bs-border-color);
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
}
@media (max-width: 767.98px) {
    #searchResults span {
        width: 100%;
    }
}