{% extends bambu_run_base_template %}

{% block content %}
<div class="container-fluid">
    <div class="row mb-4">
        <div class="col">
            <h1>Delete Filament Color</h1>
        </div>
    </div>

    <div class="card">
        <div class="card-body">
            <div class="alert alert-warning">
                <h5><i class="bi bi-exclamation-triangle"></i> Warning</h5>
                <p>Are you sure you want to delete this filament color?</p>
            </div>

            <div class="mb-4">
                <h5>Color Details:</h5>
                <div class="row">
                    <div class="col-md-2">
                        <div style="width: 100px; height: 100px; background-color: {{ object.get_hex_color }}; border-radius: 8px; border: 2px solid #ddd;"></div>
                    </div>
                    <div class="col-md-10">
                        <p><strong>Color Name:</strong> {{ object.color_name }}</p>
                        <p><strong>Hex Code:</strong> <span class="font-monospace">{{ object.get_hex_color }}</span></p>
                        <p><strong>Type:</strong> {{ object.filament_type }}</p>
                        <p><strong>Sub Type:</strong> {{ object.filament_sub_type|default:"-" }}</p>
                        <p><strong>Brand:</strong> {{ object.brand }}</p>
                    </div>
                </div>
            </div>

            <form method="post">
                {% csrf_token %}
                <div class="d-flex justify-content-between">
                    <a href="{% url 'bambu_run:filament_color_list' %}" class="btn btn-secondary">Cancel</a>
                    <button type="submit" class="btn btn-danger">
                        <i class="bi bi-trash"></i> Yes, Delete Color
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
