/* ====================================
   GLOBAL STYLES
   ==================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* ====================================
   NAVBAR STYLES
   ==================================== */

.navbar {
    background-color: #667eea;
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 24px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.user-badge.admin {
    background-color: #ffc107;
    color: #333;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================
   COMMON COMPONENTS
   ==================================== */

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

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

/* Buttons */
button,
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

button:hover,
.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge-admin {
    background-color: #dc3545;
    color: white;
}

.badge-user {
    background-color: #007bff;
    color: white;
}

.badge-active {
    background-color: #28a745;
    color: white;
}

.badge-inactive {
    background-color: #6c757d;
    color: white;
}

/* Recipe Type Badges */
.recipe-type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.type-vegetarisch {
    background-color: #d4edda;
    color: #155724;
}

.type-vegan {
    background-color: #28a745;
    color: white;
}

.type-fleisch {
    background-color: #f8d7da;
    color: #721c24;
}

.type-fisch {
    background-color: #cce5ff;
    color: #004085;
}

.type-gemischt {
    background-color: #fff3cd;
    color: #856404;
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.difficulty-einfach {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-mittel {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-schwer {
    background-color: #f8d7da;
    color: #721c24;
}

/* ====================================
   LOGIN PAGE
   ==================================== */

.login-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 40px;
    min-width: 480px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.demo-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ====================================
   STARTMENU PAGE
   ==================================== */

body.startmenu-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.startmenu-page .container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 60px 40px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    color: #333;
    font-size: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1 .icon {
    font-size: 60px;
}

.header p {
    color: #666;
    font-size: 20px;
    margin-bottom: 40px;
}

.menu-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.menu-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.menu-button:hover {
    background-color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

.menu-button.secondary {
    background-color: #48bb78;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.menu-button.secondary:hover {
    background-color: #38a169;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.6);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 24px;
}

.feature p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 15px 30px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ====================================
   RECIPES LIST & DETAIL
   ==================================== */

.recipe-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.recipe-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recipe-card h2 {
    margin-top: 0;
    color: #333;
}

.recipe-card h2 a {
    color: #007bff;
    text-decoration: none;
}

.recipe-card h2 a:hover {
    text-decoration: underline;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
    color: #666;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-meta-item strong {
    color: #333;
}

.recipe-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recipe-card-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    float: left;
}

.recipe-detail {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.recipe-detail h1 {
    color: #333;
    margin-top: 0;
}

.recipe-section {
    margin: 30px 0;
}

.recipe-section h3 {
    color: #555;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.ingredient-list,
.step-list {
    list-style-type: none;
    padding: 0;
}

.ingredient-list li {
    padding: 10px;
    background-color: white;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.step-list {
    counter-reset: step-counter;
    list-style-type: none;
}

.step-list li {
    padding: 15px;
    background-color: white;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    padding-left: 60px;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 15px;
    background-color: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tag {
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.no-recipes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Nutrition Info */
.nutrition-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.nutrition-info h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.nutrition-item {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nutrition-item .value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 5px;
}

.nutrition-item .label {
    font-size: 14px;
    color: #666;
}

/* Print Styles */
@media print {
    .navbar, button, .btn {
        display: none !important;
    }
    
    .recipe-image {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
}

/* ====================================
   RECIPE FORM (CREATE/EDIT)
   ==================================== */

.recipe-preview {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.recipe-preview h3 {
    margin-top: 20px;
    color: #333;
}

.recipe-preview .ingredient-list li,
.recipe-preview .step-list li {
    padding: 8px;
    background-color: white;
    margin-bottom: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.recipe-preview .recipe-meta-item {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.recipe-preview .recipe-meta-item strong {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.editable-section {
    margin-top: 30px;
}

.editable-section h3 {
    color: #555;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.dynamic-list {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f8f9fa;
}

.dynamic-item {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: start;
}

.dynamic-item input,
.dynamic-item textarea {
    flex: 1;
}

small {
    color: #666;
    display: block;
    margin-top: 5px;
}

/* ====================================
   USER MANAGEMENT
   ==================================== */

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #555;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

tr:hover {
    background-color: #f8f9fa;
}

.actions {
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* ====================================
   WOCHENPLANER (WEEK PLANNER)
   ==================================== */

.wochenplaner-page {
    background-color: #f5f6fa;
}

.wochenplaner-page .container {
    max-width: 1800px;
}

.wochenplaner-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-nav button {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.week-nav button:hover {
    background-color: #0056b3;
}

.week-info {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
}

.recipe-carousel-container {
    background-color: white;
    border-radius: 10px;
    border: 2px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.recipe-carousel-container h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.carousel-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background-color: #fafafa;
    overflow: hidden;
}

.carousel-scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 123, 255, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-scroll-btn:hover {
    background-color: rgba(0, 86, 179, 0.9);
}

.carousel-scroll-btn.top {
    top: -10px;
    transform: translateX(-50%) rotate(90deg);
}

.carousel-scroll-btn.bottom {
    bottom: -10px;
    transform: translateX(-50%) rotate(90deg);
}

.recipe-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 5px;
    scrollbar-width: auto;
    scrollbar-color: #007bff #e0e0e0;
    flex: 1;
}

.recipe-carousel::-webkit-scrollbar {
    width: 12px;
}

.recipe-carousel::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.recipe-carousel::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.recipe-carousel::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.main-layout {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.week-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.day-column {
    background-color: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.day-header {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #007bff;
    padding-right: 12px;
    flex-shrink: 0;
}

.day-drop-zone {
    flex: 1;
    min-height: 100px;
    max-height: 150px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: auto;
    align-items: flex-start;
}

.day-drop-zone.drag-over {
    background-color: #e7f3ff;
    border-color: #007bff;
}

.day-drop-zone::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.day-drop-zone::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.day-drop-zone::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.day-drop-zone::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.planned-recipe {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    position: relative;
    cursor: move;
    min-width: 200px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.planned-recipe:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.planned-recipe .title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.planned-recipe .time {
    font-size: 12px;
    color: #666;
}

.planned-recipe .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3546;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.planned-recipe:hover .remove-btn {
    opacity: 1;
}

.planned-recipe .remove-btn:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.planned-recipe .show-btn {
    position: absolute;
    top: 36px;
    right: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.planned-recipe:hover .show-btn {
    opacity: 1;
}

.planned-recipe .show-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.planned-recipe .portionen-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.planned-recipe .portionen-container label {
    color: #666;
    font-weight: normal;
    margin: 0;
    flex-shrink: 0;
}

.planned-recipe .portionen-input {
    width: 45px;
    max-width: 45px;
    min-width: 45px;
    padding: 3px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
}

.planned-recipe .portionen-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.recipe-item {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    cursor: grab;
    transition: transform 0.2s;
    width: 100%;
}

.recipe-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

.recipe-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-item:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.recipe-item:active {
    cursor: grabbing;
}

.recipe-item .title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.recipe-item .meta {
    font-size: 12px;
    color: #666;
}

.wochenplaner-page .recipe-type-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* ====================================
   RESPONSIVE MEDIA QUERIES
   ==================================== */

@media (max-width: 1200px) {
    .main-layout {
        flex-direction: column;
    }
    
    .recipe-carousel-container {
        width: 100%;
        max-height: 300px;
    }
    
    .recipe-carousel {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .carousel-scroll-btn.top {
        top: 50%;
        left: -10px;
        transform: translateY(-50%) rotate(0deg);
    }
    
    .carousel-scroll-btn.bottom {
        top: 50%;
        bottom: auto;
        right: -10px;
        left: auto;
        transform: translateY(-50%) rotate(0deg);
    }
    
    .recipe-item {
        flex: 0 0 180px;
        min-width: 180px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .day-column {
        flex-direction: column;
    }
    
    .day-header {
        border-right: none;
        border-bottom: 2px solid #007bff;
        padding-right: 0;
        padding-bottom: 10px;
        min-width: auto;
    }
    
    .recipe-item {
        flex: 0 0 160px;
        min-width: 160px;
        width: auto;
    }
    
    .recipe-carousel::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }
    
    .carousel-scroll-btn {
        display: none;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .menu-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .login-container {
        min-width: auto;
        padding: 30px 20px;
    }
}
