/* ============ ESTILOS PARA TEMAS E CORES ============ */
.theme-section, .customization-section, .font-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.theme-title {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-title:before {
    content: '';
    width: 4px;
    height: 16px;
    background: #667eea;
    border-radius: 2px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.theme-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-item:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.theme-item.active {
    border-color: #667eea;
    border-width: 2px;
}

.theme-preview {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.theme-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.theme-colors {
    color: #718096;
    font-size: 11px;
}

.check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background: #667eea;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.theme-item.active .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* PERSONALIZAÇÃO DE CORES */
.color-pickers {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .color-pickers {
        grid-template-columns: repeat(3, 1fr);
    }
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
}

.color-picker span {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    font-family: monospace;
}

/* PREVIEW DO TEMA PERSONALIZADO */
.preview-area {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.preview-area h5 {
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.theme-preview-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 300px;
    margin: 0 auto;
}

.preview-header {
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.preview-text {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.preview-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.preview-links {
    padding: 15px;
}

.preview-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.preview-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* OPÇÕES DE FONTE */
.font-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .font-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.font-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.font-option:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.font-option.active {
    border-color: #667eea;
}

.font-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.font-option span {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* ============ ESTILOS PARA TEMPLATES ============ */
.templates-section, .customization-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.templates-title, .customization-title {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.templates-title:before, .customization-title:before {
    content: '';
    width: 4px;
    height: 16px;
    background: #667eea;
    border-radius: 2px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.template-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.template-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.template-item.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.template-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.template-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.template-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.template-colors {
    font-size: 11px;
    color: #718096;
}

.template-item .check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Color pickers */
.color-pickers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
}

.color-picker span {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    min-width: 70px;
}

/* Font selector */
.font-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.font-selector label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

.font-selector select {
    padding: 10px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-selector select:hover {
    border-color: #667eea;
}

.font-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ADICIONAR FONTES EXTERNAS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap');