/* Kitchen Tool Styles */
.wkht-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tabs */
.wkht-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.wkht-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.wkht-tab:hover {
    color: #333;
    background: #f5f5f5;
}

.wkht-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.wkht-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wkht-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forms */
#wkht-add-ingredient-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#wkht-add-ingredient-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#wkht-add-ingredient-form button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

#wkht-add-ingredient-form button:hover {
    background: #45a049;
}

/* Ingredients List */
.wkht-ingredient-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s;
}

.wkht-ingredient-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wkht-ingredient-card.expiring {
    border-left: 4px solid #ff9800;
}

.wkht-ingredient-card.expired {
    border-left: 4px solid #f44336;
    opacity: 0.7;
}

/* Buttons */
.wkht-primary-btn {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.wkht-primary-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Suggestions */
.wkht-suggestion-card {
    padding: 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.wkht-suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wkht-suggestion-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.wkht-matching-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Meal Planner */
.wkht-week-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.wkht-week-navigation button {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.wkht-meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wkht-meal-slot {
    min-height: 150px;
    padding: 15px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.wkht-meal-slot:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.wkht-meal-slot.filled {
    border-style: solid;
    border-color: #4CAF50;
    background: #f0f8f0;
}

.wkht-meal-slot h4 {
    margin: 0 0 10px 0;
    color: #666;
}

.wkht-meal-slot .wkht-meal-recipe {
    padding: 8px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Grocery List */
.wkht-grocery-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wkht-grocery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s;
}

.wkht-grocery-item.purchased {
    opacity: 0.5;
    text-decoration: line-through;
}

.wkht-grocery-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Recipe Search */
.wkht-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wkht-search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.wkht-search-box input:focus {
    border-color: #4CAF50;
    outline: none;
}

.wkht-recipe-card {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.wkht-recipe-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wkht-recipe-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.wkht-recipe-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.wkht-recipe-ingredient-tag {
    padding: 4px 10px;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 15px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .wkht-tabs {
        flex-wrap: wrap;
    }
    
    .wkht-tab {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }
    
    #wkht-add-ingredient-form {
        grid-template-columns: 1fr;
    }
    
    .wkht-meal-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.wkht-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: wkht-spin 1s linear infinite;
}

@keyframes wkht-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.wkht-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #333;
    color: white;
    border-radius: 6px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.wkht-toast.success {
    background: #4CAF50;
}

.wkht-toast.error {
    background: #f44336;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}