:root {
    --primary-color: #d73814;
    --secondary-color: #f8f1e9;
    --accent-color: #4a6741;
    --text-color: #333;
    --light-gray: #f2f2f2;
    --border-radius: 10px;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fcfcfc;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.subtitle {
    color: var(--accent-color);
    font-style: italic;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.calculator, .result {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1 1 350px;
}

.calculator {
    border-top: 5px solid var(--primary-color);
}

.result {
    border-top: 5px solid var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

input[type="number"]:hover {
    border-color: #bbb;
}

.section-title {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

tr:hover {
    background-color: var(--secondary-color);
}

.ingredient-value {
    font-weight: bold;
}

.instructions {
    margin-top: 20px;
}

.instructions h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 5px;
}

.pizza-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.total-row {
    font-weight: bold;
    border-top: 2px solid var(--accent-color);
}

.step-time {
    font-weight: bold;
    color: var(--primary-color);
}

.process-steps {
    margin-top: 30px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.timeline-container {
    margin-top: 20px;
    position: relative;
}

.timeline-item {
    padding-bottom: 20px;
    padding-left: 30px;
    position: relative;
    border-left: 2px solid var(--primary-color);
    margin-left: 15px;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -11px;
    top: 0;
}

.timeline-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.btn {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background-color: #b52e0f;
}

.btn-secondary {
    background-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #3a5334;
}

.settings-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .calculator, .result {
        padding: 20px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 5px;
        font-size: 14px;
    }
    
    .settings-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .calculator, .result {
        padding: 15px;
    }
}
