* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #222222;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background-color: #333333;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    background-color: #444444;
}

.tab-btn.active {
    background-color: #555555;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.search-box input::placeholder {
    color: #888;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.item-btn {
    background-color: #333333;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.3s;
}

.item-btn:hover {
    background-color: #444444;
}

.recipe-view {
    background-color: #333333;
    padding: 20px;
    border-radius: 5px;
    min-height: 200px;
}

.recipe-view h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.recipe-tree {
    margin: 20px 0;
    padding-left: 20px;
}

.recipe-node {
    margin: 10px 0;
    padding: 10px;
    background-color: #444444;
    border-radius: 5px;
    border-left: 3px solid #666;
}

.recipe-node.base {
    border-left-color: #4CAF50;
}

.recipe-ingredients {
    margin-left: 20px;
    font-size: 14px;
    color: #ccc;
}

.stats {
    margin-top: 20px;
    padding: 15px;
    background-color: #444444;
    border-radius: 5px;
}

.stats h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.stat-item {
    margin: 5px 0;
    font-size: 14px;
}

.fruit-name {
    color: #4CAF50;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}
