/* Logo Generator Frontend Styles */
.logo-generator-wizard {

    margin: 40px auto;
    background: #fff;
    border-radius: 8px;

    padding: 20px;
}

/* Logo Hover Overlay Styles */
.logo-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-item:hover {
    transform: scale(1.02);
}

.logo-preview {
    position: relative;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: 10;
}

.logo-preview:hover .logo-overlay {
    opacity: 1;
}

.logo-overlay span {
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-overlay span::before {
    content: "✏️";
    font-size: 18px;
}

/* Logo Editor Modal */
.logo-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.logo-editor-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 50px 20px rgba(100, 100, 200, 0.4);
    position: relative;
    border-radius: 20px !important;
}

.logo-canvas-container {
    flex: 2;
    background: #f5f5f5;
    background-image: 
        linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.canvas-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.editor-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#logo-canvas {
    max-width: 400px;
    max-height: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   border-radius: 20px !important;
}

#logo-canvas svg
{
    border-radius: 20px;
}

#text-color-1, #text-color-2, #bg-color-1, #bg-color-2, #element-color-1, #element-color-2
{
    border-radius: 10px !important;
    overflow: hidden !important;
}

.editor-controls {
    flex: 2 !important;
    padding: 30px;
    background: #191020;
    overflow-y: auto;
    border-left: 1px solid #555;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.editor-controls h3 {
    color: #fff;
    font-family: 'Inter';
}

.control-group {
    margin-bottom: 25px;
    padding: 20px;

    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    flex: 1;
}

.color-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.control-row:last-child {
    border-bottom: none;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.control-colors {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-icon {
    width: 20px;
    height: 20px;
    fill: #6A6BCF;
}

.control-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff !important;
    margin: 0;
}

.control-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-picker-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px !important;
}

.color-input {
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.color-input:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(106, 107, 207, 0.3);
}

.color-label {
    font-size: 10px;
    color: #ccc !important;
    font-weight: 400;
    text-align: center;

    letter-spacing: 0.5px;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #555;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6A6BCF;
    cursor: pointer;
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6A6BCF;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-weight: 600;
    color: #fff !important;
    background: rgba(106, 107, 207, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    min-width: 35px;
    text-align: center;
}

.editor-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.btn-reset {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #6A6BCF;
    border: 2px solid #6A6BCF;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background: #6A6BCF;
    color: white;
    transform: scale(1.05);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-outline:hover {
    background: #007cba;
    color: white;
}

/* SVG Editor Specific Styles */
.svg-element-selected {
    stroke: #007cba !important;
    stroke-width: 2px !important;
    stroke-dasharray: 5,5 !important;
}

.svg-element-hover {
    stroke: #007cba !important;
    stroke-width: 1px !important;
    stroke-dasharray: 3,3 !important;
    opacity: 0.8;
}

.svg-drag-handle {
    fill: #007cba;
    stroke: white;
    stroke-width: 2;
    cursor: move;
}

.svg-resize-handle {
    fill: #007cba;
    stroke: white;
    stroke-width: 2;
    cursor: nw-resize;
}

/* Hide controls for elements that don't exist */
#element-colors-group {
    display: none;
}

#border-width-group {
    display: none;
}

/* Progress Steps */
.wizard-progress {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #eee;
    margin: 0 auto 10px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid #eee;
}

.step-active .step-number {
    border-color: #007cba;
    background: #007cba;
    color: #fff;
}

.step-complete .step-number {
    border-color: #baf0bf;
    background: #d2fcd5;
    color: black;
}

.step-label {
    font-size: 14px;
    color: #666;
}

/* Wizard Steps */
.wizard-content {
    padding: 20px 0;
}

.wizard-step {
    display: none;
    min-height: 400px;
}

.wizard-step.active {
    display: block;
}

.wizard-step h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.wizard-step p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

/* Brand Name Input */
.brand-name-input {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 0 10px 10px rgba(0,0,0,0.03);
}

.brand-name-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.brand-name-input input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.brand-name-input input[type="text"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.brand-name-input .input-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Font Style Options */
.font-style-options {
    display: grid;
    gap: 30px;
}

.style-group {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.style-group h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.style-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.style-box {
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 35px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.box-label {
    font-size: 24px;
    color: #333;
    line-height: 1.2;
}

/* Font style warning message */
.font-warning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
}

.font-warning h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Color Palettes */
.palette-section {
    margin-bottom: 40px;
}

.selection-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.color-palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: center;
}

.color-palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.color-palette-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

.color-palette-item.selected {
    background-color: #f0f9ff;
    box-shadow: 0 3px 10px rgba(0, 123, 186, 0.2);
    border: 1px solid #007cba;
}

.color-wheel {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    overflow: hidden;
}

.color-wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.color-slice {
    transition: transform 0.2s ease;
    transform-origin: center;
    cursor: pointer;
}

.color-slice:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.palette-name {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logo Generation */
.font-match-info {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

#font-match-count {
    font-size: 16px;
    color: #333;
}

#font-match-details {
    flex-basis: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#font-match-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

#font-match-criteria ul {
    margin: 0;
    padding-left: 20px;
}

.hidden {
    display: none;
}

.logo-grid, .generated-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.logo-option, .logo-item svg {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-option svg:hover, .logo-item svg:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #bbb;
}

.logo-option.selected {
    border-color: #007cba;
    box-shadow: 0 5px 15px rgba(0,123,186,0.2);
}

.logo-option.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #007cba;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.logo-option svg {
    width: 100%;
    height: auto;
    max-height: 150px;
    margin-bottom: 15px;
}

.logo-info {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.font-name {
    font-size: 14px;
    color: #666;
}

.loading-logos, .loading-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
}

.spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 123, 186, 0.2);
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-container {
    text-align: center;
    margin: 20px 0 40px;
}

.selected-logo-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.selected-logo-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.selected-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.selected-logo svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.logo-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.error-message {
    grid-column: 1 / -1;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

/* Icon Display */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.icon-item {
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-item.selected {
    border-color: #007cba;
    background-color: #f0f9ff;
}

.icon-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Navigation */
.wizard-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.wizard-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #f0f0f1;
    color: #2c3338;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next {
    background-color: #007cba;
    color: #fff;
}

.btn-next:hover {
    background-color: #006ba1;
}


.style-box
{
    padding: 35px 15px;
}

.transitional div{
    font-size: 28px;
}

.modern div{
    font-size: 28px;
}

.neutral div
{
    font-size: 28px;
}

.mature div
{
    font-size: 33px;
}

.style-boxes .light div
{
    font-size: 30px;
}

.style-boxes .regular div
{
    font-size: 26px;
} 

.style-boxes .bold div
{
    font-size: 30px;
}

.minimal div
{
    font-size: 30px;
}

.balanced div
{
    font-size: 32px;
}

.decorative div
{
    font-size: 28px;
}

.style-boxes .rounded div
{
    font-size: 26px;
}

.moderate div
{
    font-size: 32px;
}

.sharp div
{
    font-size: 32px;
}

.literal div
{
    font-size: 34px;
}

.stylized div
{
    font-size: 30px;
}

.abstract div
{
    font-size: 28px;
}


.style-box
{
    background: white;
    border-width: 0px;
    border-color: white;
    box-shadow: 0 0 10px 10px rgba(0,0,0,0.03);
    border-radius: 20px !important;
    
}


.style-box.selected {
    border: 4px solid #baf0bf;
    background-color: #66c2fc;
}


.style-box.selected div
{
    color: white;
}

.style-box.rounded
{
    border-radius:  20px !important;;
}

.style-box:hover
{

    background-color: #66c2fc;
}

.style-box:hover div
{
    color: white;
}



.btn-prev
{
    background: none !important;
    border-radius: 100px;
    border: 1px solid #825CFF;
    color: #825CFF;
    padding: 10px 30px;
    text-align: center !important;
}

.btn-prev:hover{
    background: #825CFF !important;
    color: white !important;
}

.btn-prev:before 
{
    content: "←";
    margin-right: 5px;
    vertical-align: baseline;
    line-height: 1;
}

.btn-next
{    
    background: #825CFF !important;
    border-radius: 100px;
    border: 1px solid #825CFF;
    color: white;
    padding: 10px 30px;
    text-align: center !important;
}

.btn-next:hover
{
    background: #37B4FA !important;
}

.btn-next::after
{
    content: "→";
    margin-left: 5px;
    vertical-align: baseline;
    line-height: 1;
}


.button
{
    background: none !important;
    border-radius: 100px;
    border: 1px solid #825CFF;
    color: #825CFF;
    padding: 10px 20px;
    text-align: center !important;
}

.button:hover{
    background: #825CFF !important;
    color: white !important;
}

.category-box
{
    box-shadow: 0 0 8px 8px rgba(0,0,0,0.03);
    font-size: 20px;;
    background: white !important;
    margin: 5px;
    padding: 20px 40px !important;
    border-radius: 10px !important;;
}

.category-box:hover
{
    background-color: #37B4FA !important;
}

.category-box::before
{
    content: "";
    background-size: 24px;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    margin-bottom: 5px;
}

.category-box.active
{
    background-color: #b7a4fc !important;
    color: black !important;
}

.category-animals::before
{
    background: url('/wp-content/uploads/icons/Animals/elephant/297485.svg') no-repeat center center;
}

.category-nature::before
{
    background: url('/wp-content/uploads/icons/Nature & Plants/leaf/23442.svg') no-repeat center center;
}

.category-abstract::before
{
    background: url('/wp-content/uploads/icons/Abstract & Geometric/star/68516.svg') no-repeat center center;
}

.category-technology::before
{
    background: url('/wp-content/uploads/icons/Technology & Science/rocket/107568.svg') no-repeat center center;
}

.category-business::before
{
    background: url('/wp-content/uploads/icons/Business & Finance/chart/234068.svg') no-repeat center center;
}

.category-sports::before
{
    background: url('/wp-content/uploads/icons/Sports & Fitness/ball/72359.svg') no-repeat center center;
}

.category-food::before
{
    background: url('/wp-content/uploads/icons/Food & Drinks/pizza/1835.svg') no-repeat center center;
}

.category-lifestyle::before
{
    background: url('/wp-content/uploads/icons/Lifestyle & Hobbies/camera/114029.svg') no-repeat center center;
}

.category-symbols::before
{
    background: url('/wp-content/uploads/icons/Symbols/heart/49754.svg') no-repeat center center;
}

.category-construction::before
{
    background: url('/wp-content/uploads/icons/Construction/crane/179997.svg') no-repeat center center;
}

.category-beauty::before
{
    background: url('/wp-content/uploads/icons/Beauty/makeup/100104.svg') no-repeat center center;
}


.icons-display
{
    min-height: auto !important;

}

.control-colors input{
    width: 60px !important;
    height: 40px !important;
    border-radius: 10px;;
    overflow: hidden !important;

}

.slider-control input{
    border-radius: 100px !important;
    height: 30px !important;
}

#save-logo
{
    border-radius: 100px !important;
   
}


.body #logo-editor-modal .control-group
{
    display: flex !important;
}

.color-picker-compact input{
    border: 0.5 solid white !important;
    box-shadow: 0 0 5px 5px rgba(255,255,255,0.2) !important;
    ;
}