/* ==========================================================================
   1. Overall Plugin Container
   ========================================================================== */

#component-configurator-app {
    max-width: 800px;
    margin: 40px auto; /* Center the container on the page */
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Step-by-Step Styling
   ========================================================================== */

.config-step {
    margin-bottom: 35px; /* Space between each step */
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.config-step:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.config-step h2 {
    font-size: 22px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ==========================================================================
   3. Form Element Styling (Inputs & Buttons)
   ========================================================================== */

/* Style for <select> dropdowns */
#component-configurator-app select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    -webkit-appearance: none; /* Removes default browser styling */
    -moz-appearance: none;
    appearance: none;
    /* Add a custom dropdown arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230073aa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

/* Clear visual feedback for disabled dropdowns */
#component-configurator-app select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Style for the final action button */
#generate-pdf-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa; /* A common WordPress blue */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

#generate-pdf-button:hover {
    background-color: #005f8c; /* A slightly darker blue for hover */
}


/* ==========================================================================
   4. Helper & Utility Classes
   ========================================================================== */

/* The loading spinner GIF */
.loading {
    display: inline-block; /* Allows it to sit next to other elements */
    vertical-align: middle;
    width: 24px;
    margin-left: 15px;
    /* It's hidden/shown with JavaScript, so no 'display: none' here is needed
       unless you want it hidden by default before JS loads. */
}


/* ==========================================================================
   5. Responsive Design (for Tablets & Mobiles)
   ========================================================================== */

@media (max-width: 768px) {
    #component-configurator-app {
        padding: 20px;
    }

    .config-step h2 {
        font-size: 20px;
    }
    
    #component-configurator-app select,
    #generate-pdf-button {
        font-size: 15px;
        padding: 10px 12px;
    }
}
