/* App base styles */


.gd-gen-app {
    margin-bottom:6rem;
}

/* main wrapper for controls */
.gd-gen-form-container {
    width: 100%;
    max-width: 60rem;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
}

/* Tabs */
.gd-gen-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #EBECEF;
}

.gd-gen-tabs__item {
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #7C7C7C;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.gd-gen-tabs__item:hover {
    color: #1F1F1F;
}

.gd-gen-tabs__item--active {
    color: #568fff;
    font-weight: 600;
}

.gd-gen-tabs__item--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #568fff;
    border-radius: 2px 2px 0 0;
}

/* Panels */
.gd-gen-panel {
    display: block;
}

.gd-gen-panel--hidden {
    display: none;
}

.gd-gen-panel__placeholder {
    padding: 3rem;
    text-align: center;
    color: #7C7C7C;
}

/* Tools Panel */
.gd-gen-tools {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gd-gen-tools__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #F9F9F9;
    border-radius: 0.625rem;
    min-width: 10rem;
}

.gd-gen-tools__item--color {
    padding: 0;
    background: none;
    min-width: auto;
}

.gd-gen-tools__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* Range Input */
.gd-gen-range {
    -webkit-appearance: none;
    appearance: none;
    width: 8rem;
    height: 0.375rem;
    background: #EBECEF;
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
}

.gd-gen-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    background: #568fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.gd-gen-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.gd-gen-range::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background: #568fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Color Input */
.gd-gen-color-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.625rem;
    background-color: #F9F9F9;
    border-radius: 0.625rem;
    cursor: pointer;
}

.gd-gen-color-input {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0;
    background: none;
}

.gd-gen-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.gd-gen-color-input::-webkit-color-swatch {
    border: 1px solid #EBECEF;
    border-radius: 0.25rem;
}

.gd-gen-color-input::-moz-color-swatch {
    border: 1px solid #EBECEF;
    border-radius: 0.25rem;
}

.gd-gen-color-arrow {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}


/* Canvas Wrapper */
.gd-gen-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 20rem;
    border: 1px solid #EBECEF;
    border-radius: 0.625rem;
    overflow: hidden;
    background-color: #fff;
}

#drawing-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.gd-gen-canvas-tip {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: #ccc;
    font-size: 0.85rem;
}
    /* Clean Button */
    .gd-gen-canvas-clean {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #F5F5F5;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.gd-gen-canvas-clean:hover {
    background-color: #EBECEF;
}

.gd-gen-canvas-clean__icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Actions */
.gd-gen-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.gd-gen-form-btn--download {
    min-width: 8rem;
}

/* select field */
.gd-gen-form-select {
       font-size: 0.875rem;
    height: 3rem;
    border: 1px solid #f9f9f9;
    background: #F9F9F9;
    border-radius: 10px;
   
    box-sizing: border-box;
    padding: 0 1rem;
    outline: none;
    -webkit-appearance: none;

    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 20px) calc(1em + 0.5em), calc(100% - 15px) calc(1em + 0.5em), calc(100% - 2.5em);
    background-size: 5px 5px, 5px 5px, 1px 0;
    background-repeat: no-repeat;
}

/* input textbox */
.gd-gen-form-field {
    font-size: 0.875rem;
    height: 3rem;
    border: 2px solid #EBECEF;
    background: #FFFFFF;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    outline: none;
    -webkit-appearance: none;
}



/* buttons,  BUTTON tag  */

.gd-gen-form-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    height: 2.5rem;
    color: #fff;
    background-color: #558fff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    outline: none;
    border: none;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background-color 0.15s linear;
}

.gd-gen-form-btn--alternate {
    background-color: #E5EFFF;
    color: #558FFF;
}

.gd-gen-form-btn--result {
    background-color: #0DC268;
}

/* Stamp Panel Layout */
.gd-gen-stamp-layout {
    display: flex;
    gap: 1.5rem;
}

.gd-gen-stamp-tools {
    flex: 0 0 auto;
    width: 16rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gd-gen-stamp-preview {
    flex: 1;
    min-width: 0;
}

/* Stamp Modes */
.gd-gen-stamp-modes {
    display: flex;
    gap: 0.5rem;
}

.gd-gen-stamp-mode {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #F9F9F9;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.gd-gen-stamp-mode:hover {
    background-color: #EBECEF;
}

.gd-gen-stamp-mode__icon {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.gd-gen-stamp-mode--active {
    background-color: #E5EFFF;
}

.gd-gen-stamp-mode--active .gd-gen-stamp-mode__icon {
    opacity: 1;
}

/* Stamp Fields */
.gd-gen-stamp-field {
    display: flex;
    flex-direction: column;
}

.gd-gen-stamp-select {
    width: 100%;
}

.gd-gen-stamp-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.gd-gen-stamp-select--size {
    width: 5.5rem;
    flex-shrink: 0;
}

/* Stamp Opacity */
.gd-gen-stamp-opacity {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #F9F9F9;
    border-radius: 0.625rem;
}

.gd-gen-stamp-opacity .gd-gen-range {
    flex: 1;
}

/* Stamp Canvas */
.gd-gen-stamp-canvas-wrapper {
    width: 100%;
    height: 20rem;
    border: 1px solid #EBECEF;
    border-radius: 0.625rem;
    overflow: hidden;
    background-color: #fff;
}

#stamp-canvas {
    width: 100%;
    height: 100%;
}

/* Responsive: Stack on mobile */
@media screen and (max-width: 750px) {
    .gd-gen-stamp-layout {
        flex-direction: column;
    }

    .gd-gen-stamp-tools {
        width: 100%;
    }

    .gd-gen-stamp-row {
        flex-wrap: wrap;
    }
}
