/* Panel Designer Cyber Theme Styles */

.panel-designer-page {
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.03) 2px, rgba(0, 255, 65, 0.03) 4px);
    padding: 4rem 0;
    min-height: 100vh;
}

.panel-designer-container {
    background: rgba(0, 255, 65, 0.02);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2),
                inset 0 0 60px rgba(0, 255, 65, 0.05);
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.designer-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(135deg, #00ff41 0%, #39ff14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.designer-subtitle {
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.format-select-wrapper {
    margin-bottom: 2rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: end;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.panel-designer-page input[type="number"],
.panel-designer-page select {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    color: var(--light-text);
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.panel-designer-page input[type="number"]:focus,
.panel-designer-page select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.clear-inputs-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-inputs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.info {
    background: rgba(0, 255, 65, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--light-text);
}

.results {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none;
}

.results.active {
    display: block;
}

.result-item {
    text-align: center;
}

.result-label {
    color: var(--gray-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.result-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.image-upload-section {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none;
}

.image-upload-section.active {
    display: block;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
}

.upload-label {
    display: block;
    padding: 0.875rem;
    background: linear-gradient(135deg, #00ff41 0%, #39ff14 100%);
    color: #000000;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

#imageUpload {
    display: none;
}

.reset-btn {
    padding: 0.875rem;
    background: rgba(108, 117, 125, 0.8);
    color: white;
    border: 2px solid rgba(108, 117, 125, 0.5);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(90, 98, 104, 1);
    transform: translateY(-2px);
}

.zoom-control {
    margin-bottom: 1.5rem;
}

.zoom-control:last-child {
    margin-bottom: 0;
}

.zoom-control label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 600;
}

#zoomSlider, #rotateSlider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.2);
    outline: none;
    cursor: pointer;
}

#zoomSlider::-webkit-slider-thumb,
#rotateSlider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

#zoomSlider::-moz-range-thumb,
#rotateSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.panel-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
    text-align: center;
}

.panel-preview.active {
    display: block;
}

.panel-preview h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.preview-info {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ffc107;
    line-height: 1.6;
    text-align: left;
}

.preview-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffca2c;
}

.canvas-wrapper {
    margin-bottom: 1rem;
    display: inline-block;
}

#panelCanvas {
    border: 1px solid rgba(0, 255, 65, 0.3);
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    cursor: grab;
}

#panelCanvas:active {
    cursor: grabbing;
}

.download-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #00ff41 0%, #39ff14 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    text-transform: uppercase;
}

.download-btn.active {
    display: block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .panel-designer-container {
        padding: 2rem 1.5rem;
    }

    .designer-title {
        font-size: 2rem;
    }

    .input-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .button-row {
        grid-template-columns: 1fr;
    }

    .panel-preview {
        padding: 1.5rem 1rem;
    }
}
