/*
 * File: css/qr-generator.css
 * Description: GOLD STANDARD Glassy Styles for QR Generator
 * Updated: Matches Aservus Design System
 */

.full-width-container {
    max-width: 1200px; /* Aligned with main container */
}

.qr-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Gives more room to inputs */
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

/* --- GLASSY PANELS (Gold Standard) --- */
.panel {
    background: rgba(255, 255, 255, 0.7); /* Translucent */
    backdrop-filter: blur(12px);          /* The Frost Effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 15px 40px rgba(147, 112, 219, 0.15); /* Purple glow */
    background: rgba(255, 255, 255, 0.85);
}

/* Sticky Preview Panel */
.preview-panel {
    position: sticky;
    top: 90px; /* clear header */
    min-height: 400px;
    background: rgba(255, 255, 255, 0.8); /* Slightly more opaque for contrast */
    border: 1px solid rgba(147, 112, 219, 0.2); /* Subtle purple border */
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- TABS (Modern Pill Style) --- */
.data-type-tabs {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.03);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(255,255,255,0.5);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* --- INPUTS (Soft & Clean) --- */
.form-group {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.1);
}

/* --- STYLE SECTION --- */
.style-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.color-grid {
    display: flex;
    gap: 20px;
}

.color-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.color-item input[type="color"] {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 4px solid white;
    border-radius: 50%; /* Circular color pickers */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: none;
}

/* --- PREVIEW CANVAS --- */
.qr-canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    margin-bottom: 25px;
    min-height: 320px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

/* --- ACTIONS --- */
.download-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.download-actions button {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .qr-workspace {
        grid-template-columns: 1fr;
    }
    .preview-panel {
        position: relative;
        top: 0;
    }
}