/* Generator Bara Cookies - seotoolpro.ro */

.cbg-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Panel setari */
.cbg-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

.cbg-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cbg-section:last-child {
    border-bottom: none;
}

.cbg-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
    margin-bottom: 14px;
}

.cbg-row {
    margin-bottom: 12px;
}

.cbg-row:last-child {
    margin-bottom: 0;
}

.cbg-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.cbg-row input[type="text"],
.cbg-row input[type="number"],
.cbg-row textarea,
.cbg-row select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13px;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fff;
}

.cbg-row input:focus,
.cbg-row textarea:focus,
.cbg-row select:focus {
    border-color: #7c3aed;
}

.cbg-row textarea {
    resize: vertical;
}

/* Grid 2 si 3 coloane */
.cbg-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cbg-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Color fields */
.cbg-color-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.cbg-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 7px;
    padding: 4px 10px 4px 6px;
    background: #fff;
    transition: border-color 0.2s;
}

.cbg-color-wrap:focus-within {
    border-color: #7c3aed;
}

.cbg-color-wrap input[type="color"] {
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
    background: none;
    outline: none;
}

.cbg-color-wrap input[type="text"] {
    border: none;
    padding: 0;
    font-size: 13px;
    font-family: monospace;
    width: 72px;
    color: #374151;
    outline: none;
}

/* Previzualizare */
.cbg-preview-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 20px;
}

.cbg-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cbg-preview-screen {
    background: #f3f4f6;
    border-radius: 8px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Continut fals in preview */
.cbg-fake-content {
    padding: 24px;
}

.cbg-fake-line {
    height: 12px;
    background: #d1d5db;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
}

.cbg-fake-title {
    height: 18px;
    width: 60%;
    background: #9ca3af;
    margin-bottom: 14px;
}

.cbg-fake-short {
    width: 75%;
}

/* Cod generat */
.cbg-code-wrap {
    background: #1e1e2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.cbg-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2a2a3e;
    border-bottom: 1px solid #3a3a5e;
}

.cbg-code-label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0c0;
}

.cbg-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cbg-copy-btn:hover {
    background: #6d28d9;
}

.cbg-copy-btn.copinat {
    background: #059669;
}

#cbg-cod {
    padding: 20px;
    margin: 0;
    color: #cdd6f4;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 360px;
    overflow-y: auto;
}

/* Scrollbar cod */
#cbg-cod::-webkit-scrollbar { width: 6px; }
#cbg-cod::-webkit-scrollbar-track { background: #1e1e2e; }
#cbg-cod::-webkit-scrollbar-thumb { background: #3a3a5e; border-radius: 3px; }

@media (max-width: 600px) {
    .cbg-2col,
    .cbg-3col {
        grid-template-columns: 1fr;
    }
    .cbg-section {
        padding: 16px;
    }
}
