/* Cocktail Alcohol Calculator Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
    color: #f39c12;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Title */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h1 i {
    color: #e91e63;
    margin-right: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    text-align: center;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: inline-flex;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 3rem;
}

.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.calculator-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.calculator-card > p {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

/* Cocktail Header */
.cocktail-header {
    margin-bottom: 2rem;
}

.cocktail-header .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.cocktail-header label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.cocktail-header input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s;
}

.cocktail-header input:focus {
    outline: none;
    border-color: #e91e63;
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title h3 i {
    color: #e91e63;
}

.add-ingredient-btn {
    background: #e91e63;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.add-ingredient-btn:hover {
    background: #c2185b;
}

/* Ingredients Container */
.ingredients-container {
    margin-bottom: 2rem;
}

.ingredient-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    position: relative;
}

.ingredient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ingredient-number {
    background: #e91e63;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.remove-ingredient-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-ingredient-btn:hover {
    background: #c0392b;
}

.ingredient-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 2;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #e91e63;
}

.input-with-unit select,
.input-group select {
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.input-group select {
    max-width: none;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #e91e63;
}

/* Recipe Presets */
.recipe-presets {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.recipe-presets h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preset-btn {
    background: white;
    border: 2px solid #e91e63;
    color: #e91e63;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.preset-btn:hover {
    background: #e91e63;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.preset-btn:hover i {
    color: white !important;
}

.preset-btn:hover span {
    color: white !important;
}

.preset-btn i {
    font-size: 1.5rem;
    color: #e91e63;
    transition: color 0.3s;
}

.preset-btn span {
    color: #e91e63;
    transition: color 0.3s;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #c2185b, #ad1457);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Results Section */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.results-section h3 i {
    color: #e91e63;
}

/* Main Results */
.main-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #dee2e6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.result-card.primary {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
}

.result-card.primary .result-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.result-icon {
    font-size: 1.8rem;
    color: #e91e63;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-info {
    flex: 1;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.result-card.primary .result-label {
    color: rgba(255,255,255,0.9);
}

.result-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

.result-card.primary .result-value {
    color: white;
}

/* Ingredient Breakdown */
.ingredient-breakdown {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.ingredient-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-breakdown h4 i {
    color: #e91e63;
}

.breakdown-table {
    display: grid;
    gap: 0.5rem;
}

.breakdown-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: #e91e63;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.breakdown-row:nth-child(even) {
    background: #f8f9fa;
}

/* Strength Indicator */
.strength-indicator {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.strength-indicator h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strength-indicator h4 i {
    color: #e91e63;
}

.strength-bar {
    position: relative;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e67e22, #e74c3c);
    border-radius: 15px;
    transition: width 0.5s ease;
    width: 0%;
}

.strength-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.strength-description {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1rem;
}

/* Recipe Actions */
.recipe-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* How It Works Section */
.how-it-works {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.how-it-works h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Strength Guide Section */
.strength-guide {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.strength-guide h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.strength-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.strength-card {
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.strength-card.weak {
    background: linear-gradient(135deg, #d5f4e6, #e8f8f5);
    border-color: #27ae60;
}

.strength-card.moderate {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #f39c12;
}

.strength-card.strong {
    background: linear-gradient(135deg, #ffe8d1, #ffcc9a);
    border-color: #e67e22;
}

.strength-card.very-strong {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #e74c3c;
}

.strength-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.strength-header i {
    font-size: 1.5rem;
}

.strength-card.weak .strength-header i {
    color: #27ae60;
}

.strength-card.moderate .strength-header i {
    color: #f39c12;
}

.strength-card.strong .strength-header i {
    color: #e67e22;
}

.strength-card.very-strong .strength-header i {
    color: #e74c3c;
}

.strength-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.strength-content p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.strength-content strong {
    color: #2c3e50;
}

/* Ingredients Reference Section */
.ingredients-reference {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.ingredients-reference h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.reference-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.reference-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reference-category h3 i {
    color: #e91e63;
}

.reference-category ul {
    list-style: none;
    padding: 0;
}

.reference-category li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.reference-category li::before {
    content: '•';
    color: #e91e63;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Bartending Tips Section */
.bartending-tips {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.bartending-tips h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tip-card i {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.related-tools h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tool-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tool-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tool-link:hover {
    background: #2980b9;
}

/* Safety Information Section */
.safety-info {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #ffcdd2;
    margin-bottom: 3rem;
}

.safety-info h2 {
    text-align: center;
    color: #c62828;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.safety-info h2 i {
    margin-right: 0.5rem;
}

.safety-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.disclaimer,
.safety-tips {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ffcdd2;
}

.disclaimer h3,
.safety-tips h3 {
    color: #c62828;
    margin-bottom: 1rem;
}

.disclaimer p,
.safety-tips li {
    color: #666;
    line-height: 1.6;
}

.safety-tips ul {
    list-style: none;
    padding: 0;
}

.safety-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.safety-tips li::before {
    content: '🍸';
    position: absolute;
    left: 0;
}

/* Updated Responsive Design */
@media (max-width: 1024px) {
    .ingredient-inputs {
        grid-template-columns: 1fr;
    }

    .main-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .strength-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety-content {
        grid-template-columns: 1fr;
    }

    .breakdown-header,
    .breakdown-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .main-results {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .recipe-actions {
        grid-template-columns: 1fr;
    }

    .strength-categories {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .breakdown-header,
    .breakdown-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .breakdown-header {
        display: none;
    }

    .breakdown-row {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
    }

    .safety-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .calculator-card,
    .how-it-works,
    .strength-guide,
    .ingredients-reference,
    .bartending-tips,
    .faq-section,
    .related-tools,
    .safety-info {
        padding: 1.5rem;
    }

    .section-title {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .input-with-unit {
        flex-direction: column;
    }

    .input-with-unit select {
        max-width: none;
    }

    .ingredient-item {
        padding: 1rem;
    }

    .ingredient-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .result-card {
        padding: 1rem;
    }

    .result-value {
        font-size: 1.1rem;
    }

    .action-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .preset-btn {
        padding: 0.75rem;
    }

    .preset-btn i {
        font-size: 1.2rem;
        color: #e91e63;
    }

    .preset-btn span {
        color: #e91e63;
    }

    .preset-btn:hover i,
    .preset-btn:hover span {
        color: white !important;
    }

    .ingredient-breakdown,
    .strength-indicator {
        padding: 1rem;
    }

    .strength-card,
    .reference-category,
    .tip-card,
    .faq-item,
    .tool-card,
    .disclaimer,
    .safety-tips {
        padding: 1rem;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ingredient-inputs {
        grid-template-columns: 1fr;
    }

    .main-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .breakdown-header,
    .breakdown-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .main-results {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .recipe-actions {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .breakdown-header,
    .breakdown-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .breakdown-header {
        display: none;
    }

    .breakdown-row {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .calculator-card,
    .how-it-works {
        padding: 1.5rem;
    }

    .section-title {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .input-with-unit {
        flex-direction: column;
    }

    .input-with-unit select {
        max-width: none;
    }

    .ingredient-item {
        padding: 1rem;
    }

    .ingredient-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .result-card {
        padding: 1rem;
    }

    .result-value {
        font-size: 1.1rem;
    }

    .action-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .preset-btn {
        padding: 0.75rem;
    }

    .preset-btn i {
        font-size: 1.2rem;
    }

    .ingredient-breakdown,
    .strength-indicator {
        padding: 1rem;
    }
}
