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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nav-bar button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}

.nav-bar button:hover { background: #f0f0f0; }

.nav-info {
    font-size: 15px;
    font-weight: 500;
}

.nav-info .reviewed-badge {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.jump-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.progress {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}

.recipe-header {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.recipe-header h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.recipe-header .meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.recipe-header .description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.recipe-header .keywords {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.recipe-header .keywords span {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.ingredients-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.ingredients-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.ingredients-section .section-header h3 { font-size: 16px; }

.btn-add {
    padding: 6px 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-add:hover { background: #1557b0; }

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 8px 12px;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

td {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

tr:hover { background: #fafafa; }

td input[type="text"], td input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

td input.modified {
    border-color: #f59e0b;
    background: #fffbeb;
}

td select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

td select.modified {
    border-color: #f59e0b;
    background: #fffbeb;
}

.metric-col {
    color: #888;
    font-size: 13px;
}

.btn-delete {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-delete:hover { background: #ffebee; }

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-save {
    background: #fff;
    border: 1px solid #ddd !important;
}

.btn-save:hover { background: #f0f0f0; }

.btn-approve {
    background: #4caf50;
    color: #fff;
}

.btn-approve:hover { background: #388e3c; }

.instructions-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.instructions-section .section-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructions-section .section-header h3 { font-size: 16px; }

.instructions-body {
    padding: 16px;
}

.instructions-body.collapsed { display: none; }

.instruction-group { margin-bottom: 16px; }

.instruction-group h4 {
    font-size: 14px;
    color: #1a73e8;
    margin-bottom: 8px;
}

.instruction-group ol {
    padding-left: 20px;
}

.instruction-group li {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 4px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
}

.toast.show { opacity: 1; }

.new-row input, .new-row select {
    border-color: #4caf50 !important;
    background: #f1f8e9 !important;
}
