@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* RDR2 Farbpalette */
    --color-primary: #8B4513;
    --color-primary-dark: #654321;
    --color-primary-darker: #3D2817;
    --color-secondary: #D2691E;
    --color-accent: #CD853F;
    --color-gold: #DAA520;
    --color-bg: #0f0f0f;
    --color-bg-light: #1a1a1a;
    --color-bg-card: #1e1e1e;
    --color-bg-hover: #2a2a2a;
    --color-text: #f5f5dc;
    --color-text-muted: #a0a0a0;
    --color-border: rgba(139, 69, 19, 0.4);
    --color-border-light: rgba(139, 69, 19, 0.2);
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(210, 105, 30, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(210, 105, 30, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
    border-bottom: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 36px;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.nav-link:hover {
    background: rgba(210, 105, 30, 0.2);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-color: var(--color-gold);
    color: var(--color-text);
    box-shadow: var(--shadow-md), 0 0 15px rgba(218, 165, 32, 0.4);
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.page-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Cards */
.section-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(210, 105, 30, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-secondary);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2), var(--shadow-md);
}

.search-box i {
    color: var(--color-text-muted);
    font-size: 20px;
    margin-right: 15px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-clear:hover {
    color: var(--color-text);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filter-tag {
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.filter-tag:hover {
    border-color: var(--color-secondary);
    background: rgba(210, 105, 30, 0.1);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-color: var(--color-gold);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.recipe-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.recipe-card:hover::before {
    transform: scaleX(1);
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.recipe-name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

.recipe-category {
    padding: 6px 12px;
    background: rgba(210, 105, 30, 0.2);
    border: 1px solid var(--color-secondary);
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
}

.recipe-description {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.recipe-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
}

.item-badge.has-item {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--color-success);
    color: var(--color-success);
}

.item-badge.missing-item {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--color-error);
    color: var(--color-error);
}

.item-badge.partial-item {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.item-quantity {
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content.modal-large {
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--color-error);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
}

.form-group .input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group .input-field:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
}

/* Select Dropdown Styling */
.form-group select.input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D2691E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select.input-field:hover {
    border-color: var(--color-secondary);
}

.form-group select.input-field:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
}

.form-group select.input-field option {
    background: var(--color-bg-card);
    color: var(--color-text);
    padding: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

/* Item Editor in Recipe */
.item-editor {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.item-editor input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 14px;
}

.item-editor .item-quantity {
    width: 80px;
}

.item-editor .btn-remove {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.item-editor .btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

/* Needed Items Grid */
.needed-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.needed-item-card {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--color-error);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.needed-item-card:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.needed-item-card.priority-high {
    border-color: var(--color-error);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.needed-item-card.priority-medium {
    border-color: var(--color-warning);
    background: rgba(251, 191, 36, 0.1);
}

.needed-item-card.priority-low {
    border-color: var(--color-text-muted);
    background: rgba(160, 160, 160, 0.1);
}

.needed-item-info {
    flex: 1;
}

.needed-item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--color-text);
}

.needed-item-quantity {
    font-size: 14px;
    color: var(--color-text-muted);
}

.needed-item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-secondary);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.location-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.location-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.location-card:hover::before {
    transform: scaleX(1);
}

.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.location-card-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
}

.location-card-location {
    color: var(--color-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-card-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--color-border);
}

.location-card-description {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.location-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

/* Warenlager Grid */
.warenlager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.warenlager-item {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.warenlager-item:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.warenlager-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(210, 105, 30, 0.1);
    border: 1px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.warenlager-item-info {
    flex: 1;
    min-width: 0;
}

.warenlager-item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warenlager-item-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warenlager-item-input input {
    width: 100px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.warenlager-item-input input:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
}

.btn-remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    border-radius: 6px;
    color: var(--color-error);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-remove-item:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Upload Styles */
.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-border);
}

.upload-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-tab:hover {
    color: var(--color-text);
}

.upload-tab.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.upload-tab-content {
    display: none;
}

.upload-tab-content.active {
    display: block;
}

.upload-form {
    margin-bottom: 20px;
}

.upload-label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-area {
    margin-bottom: 15px;
}

.file-upload-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-dropzone:hover {
    border-color: var(--color-secondary);
    background: rgba(210, 105, 30, 0.05);
}

.file-upload-dropzone.dragover {
    border-color: var(--color-secondary);
    background: rgba(210, 105, 30, 0.1);
    transform: scale(1.02);
}

.file-upload-dropzone i {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    display: block;
}

.file-upload-dropzone p {
    color: var(--color-text);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.file-info {
    color: var(--color-text-muted);
    font-size: 12px;
}

.upload-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-gold));
    border-radius: 5px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
    display: block;
}

.image-preview {
    margin-top: 20px;
    min-height: 100px;
}

.image-preview-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.preview-image {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.preview-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 13px;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: rgba(74, 222, 128, 0.9);
    color: #1a1a1a;
    border: 1px solid var(--color-success);
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: 1px solid var(--color-error);
}

.notification i {
    font-size: 18px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-text);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Recipe Count */
.recipe-count {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .needed-items-grid {
        grid-template-columns: 1fr;
    }

    .warenlager-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}
