/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Recipe List */
.recipe-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.recipe-item {
    border-bottom: 1px solid #e0e0e0;
}

.recipe-item:last-child {
    border-bottom: none;
}

.recipe-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recipe-label:hover {
    background-color: #f0f0f0;
}

.recipe-checkbox {
    margin-right: 1rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.recipe-details {
    flex: 1;
}

.recipe-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.recipe-meta {
    font-size: 0.85rem;
    color: #666;
}

.yield-badge {
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Schedule Display */
.schedule-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-date {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.schedule-recipe {
    color: #333;
    font-weight: 500;
}

/* Shopping List */
.shopping-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.shopping-summary {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.shopping-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.shopping-item:last-child {
    border-bottom: none;
}

.shopping-checkbox {
    margin-right: 1rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.shopping-item-text {
    color: #333;
}

.shopping-checkbox:checked + .shopping-item-text {
    text-decoration: line-through;
    color: #999;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
}

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

.btn-secondary:hover {
    background: #5a6268;
}

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

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

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.empty-state p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Scrollbar Styling */
.recipe-list::-webkit-scrollbar {
    width: 8px;
}

.recipe-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.recipe-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.recipe-list::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}
