/* Dog Calorie Calculator Styles */
.dog-calorie-calculator-tool {
    min-height: 100vh;
    background: white;
    padding: 2rem 1rem;
}

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

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.tool-header h1 i {
    margin-right: 0.75rem;
    color: #e53e3e;
}

.tool-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* Calculator Card */
.calculator-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Life Stage Tabs */
.life-stage-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #edf2f7;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.life-stage-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.life-stage-tab:hover {
    background: #cbd5e0;
    color: #2d3748;
}

.life-stage-tab.active {
    background: #e53e3e;
    color: white;
}

.life-stage-tab i {
    font-size: 1rem;
}

/* Form Styles */
.calculator-form {
    margin-top: 1.5rem;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-label i {
    color: #e53e3e;
    width: 16px;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.input-with-toggle {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-toggle .form-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.toggle-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #cbd5e0;
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #edf2f7;
    color: #e53e3e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.toggle-btn:hover {
    background: #e53e3e;
    color: white;
}

.age-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-input {
    flex: 1;
    min-width: 80px;
}

.unit-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.input-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Puppy-specific fields */
.puppy-only {
    display: none;
}

.puppy-stage .puppy-only {
    display: flex;
}

/* Action Controls */
.action-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calculate-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

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

.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #cbd5e0;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.results-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header h2 i {
    color: #e53e3e;
}

.copy-result-btn {
    background: #38a169;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-result-btn:hover {
    background: #2f855a;
    transform: translateY(-1px);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

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

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.card-header i {
    color: #e53e3e;
    font-size: 1.2rem;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.card-unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Specific card colors */
.calories-card {
    border-left: 4px solid #f6ad55;
}

.food-card {
    border-left: 4px solid #68d391;
}

.frequency-card {
    border-left: 4px solid #63b3ed;
}

.meal-card {
    border-left: 4px solid #b794f6;
}

/* Breakdown and Guidelines */
.breakdown-section,
.guidelines-section {
    margin-bottom: 2rem;
}

.breakdown-section h3,
.guidelines-section h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-section h3 i,
.guidelines-section h3 i {
    color: #e53e3e;
}

.breakdown-content,
.guidelines-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    border-left: 4px solid #e53e3e;
}

/* Examples Section */
.examples-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.examples-section h3 i {
    color: #f6ad55;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.example-item {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-2px);
    border-color: #e53e3e;
    background: #e53e3e;
    color: white;
}

.example-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #e53e3e;
}

.example-item:hover .example-icon {
    color: #ffd700;
}

.example-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.example-item:hover .example-label {
    color: white;
}

.example-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
}

.example-item:hover .example-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Related Tools Section */
.related-tools-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.related-tools-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tools-header h3 i {
    color: #e53e3e;
}

.related-tools-header p {
    color: #4a5568;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-tool-link {
    background: white;
    border: 2px solid #e2e8f0;
    color: #e53e3e;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tool-link:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.related-tool-link i {
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dog-calorie-calculator-tool {
        padding: 1rem 0.5rem;
    }
    
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .calculator-card,
    .results-section,
    .examples-section {
        padding: 1.5rem;
    }
    
    .life-stage-tabs {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .life-stage-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .calculate-btn,
    .clear-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .age-input-container {
        flex-wrap: wrap;
    }

    .related-tools-section {
        padding: 1.5rem;
    }

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

    .related-tool-link {
        padding: 0.75rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }

    .related-tool-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .life-stage-tab {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
    }
    
    .life-stage-tab i {
        font-size: 0.9rem;
    }
    
    .card-value {
        font-size: 2rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }

    .related-tools-section {
        padding: 1rem;
    }

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

    .related-tool-link {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        text-align: left;
    }
}
