/**
 * CSS styles for the Glass Calculator App plugin.
 * Version 1.2.0
 */

/* Main container for the entire application */
.glass-app-container {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #e0e0e0;
}

.app-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Flex container for the top control panel */
.glass-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Styling for each group of controls (label + input) */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-left: 4px;
}

/* Common styles for inputs and selects */
.gc-input, .gc-select {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gc-input:focus, .gc-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Container for the output canvas and its controls */
.glass-output {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    /* Remove horizontal scrolling */
    overflow-x: hidden; 
}

/* Basic styling for the download controls container. Layout is now handled by JS. */
.download-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* The drawing canvas itself */
#glass-canvas {
    background-color: #ffffff;
    border-radius: 8px;
    display: block;
    /* Make the canvas responsive to fit the container */
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    margin: 0 auto;
}

/* General styling for buttons */
.gc-button {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    height: 42px;
}

.gc-button:hover {
    transform: translateY(-2px);
}

.gc-button.primary {
    background-color: #4CAF50;
    color: white;
}
.gc-button.primary:hover {
    background-color: #45a049;
}

.gc-button.secondary {
    background-color: #0073aa;
    color: white;
}
.gc-button.secondary:hover {
    background-color: #005a87;
}
