/* snowflake.css */
/* Contains styles specifically for the Debt Snowflakes section, */
/* including the container, input area, button, and list. */

.snowflake-section {
    border: 1px dashed var(--secondary-color);
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: var(--light-gray);
    transition: background-color 0.3s ease;
}
.snowflake-section > label { /* Target the main label */
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

/* Area containing the input groups */
.snowflake-input-area {
    display: flex; /* Keep inputs side-by-side */
    flex-wrap: wrap;
    gap: 15px;
    align-items: baseline; /* Change from flex-start to baseline */
    margin-bottom: 10px; /* Space below inputs, before button */
}
.snowflake-input-area .input-group {
    flex: 1; /* Allow input groups to grow */
    min-width: 150px; /* Minimum width */
    margin-bottom: 0; /* Remove bottom margin from input groups here */
}
.snowflake-input-area .input-group label {
     margin-bottom: 3px;
     font-size: 0.9em;
}
.snowflake-input-area input[type="number"] {
    width: 100%;
    padding: 10px;
    min-height: 40px;
    box-sizing: border-box;
}

/* Style for the Add Snowflake button in its new position */
.snowflake-section > button#add-snowflake {
    display: block;       /* Make it block-level */
    margin-top: 15px;     /* Add space above the button */
    /* Keep other button styles consistent: */
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    min-height: 40px;
    cursor: pointer;
    font-weight: bold;
    width: auto;          /* Or set a specific width if desired */
    margin-right: 0;      /* Reset default button margin if needed */
    margin-left: 0;       /* Reset default button margin if needed */
    /* Optionally center it: */
    /* margin-left: auto; */
    /* margin-right: auto; */
}
.snowflake-section > button#add-snowflake:hover {
    opacity: 0.9; /* Keep hover effect */
}


#snowflake-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    max-height: 150px; /* Limit height and make scrollable */
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 5px;
    background-color: var(--background-color); /* Match page background */
}
#snowflake-list li {
    padding: 6px 10px; /* Adjust padding */
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}
#snowflake-list li:last-child { border-bottom: none; }

/* Note: .remove-snowflake-btn styles moved to components.css */
