/* Base styles */
.poke-calculator {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Tab Navigation */
.tab-navigation {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.2s ease;
    color: #4b5563;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.tab-button:hover {
    background-color: #f3f4f6;
}

.tab-button:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

.tab-button.active {
    color: #047857;
    background-color: #ecfdf5;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #047857;
}

/* Type Buttons */
.type-button {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.type-button:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

.type-button.selected {
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.2);
}

/* Type Badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Effectiveness Groups */
.effectiveness-group {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

/* Reset Button */
.reset-button {
    transition: all 0.2s ease;
}

.reset-button:hover {
    transform: translateY(-1px);
}

.reset-button:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Error Message */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .type-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .effectiveness-group {
        padding: 0.75rem;
    }
    
    .type-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}